Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari authored and gh-action-runner committed May 23, 2024
1 parent f5d918e commit 99dfbdb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## v1.12.2

### Fixed
- **Rebuilt the CLI binary with the correct version number:** The CLI binary included in the `1.12.1` package was built with an incorrect version number causing a version mismatch when attempting to execute code generation.

## v1.12.1

### Fixed
Expand Down
Binary file modified CLI/apollo-ios-cli.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion Sources/Apollo/Constants.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation

public enum Constants {
public static let ApolloVersion: String = "1.12.1"
public static let ApolloVersion: String = "1.12.2"
}
18 changes: 18 additions & 0 deletions scripts/cli-version-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

directory=$(dirname "$0")
projectDir="$directory/../CLI"

APOLLO_VERSION=$(sh "$directory/get-version.sh")
FILE_PATH="$projectDir/apollo-ios-cli.tar.gz"
tar -xf "$FILE_PATH"
CLI_VERSION=$(./apollo-ios-cli --version)

echo "Comparing Apollo version $APOLLO_VERSION with CLI version $CLI_VERSION"

if [ "$APOLLO_VERSION" = "$CLI_VERSION" ]; then
echo "Success - matched!"
else
echo "Failed - mismatch!"
exit 1
fi

0 comments on commit 99dfbdb

Please sign in to comment.