diff --git a/CHANGELOG.md b/CHANGELOG.md index af1781b116..d8b6836837 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CLI/apollo-ios-cli.tar.gz b/CLI/apollo-ios-cli.tar.gz index 2723a60e39..6aac895db6 100644 Binary files a/CLI/apollo-ios-cli.tar.gz and b/CLI/apollo-ios-cli.tar.gz differ diff --git a/Sources/Apollo/Constants.swift b/Sources/Apollo/Constants.swift index e1c26d9e2e..6699ccd08f 100644 --- a/Sources/Apollo/Constants.swift +++ b/Sources/Apollo/Constants.swift @@ -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" } diff --git a/scripts/cli-version-check.sh b/scripts/cli-version-check.sh new file mode 100755 index 0000000000..6935cd0d04 --- /dev/null +++ b/scripts/cli-version-check.sh @@ -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