Skip to content

Commit

Permalink
distinguish jq installment depending on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
michalziolkowski committed Mar 23, 2024
1 parent 59e97a0 commit cbfa34d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/expo-example/eas-hooks/eas-build-on-success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ fi

if [[ "$EAS_BUILD_PROFILE" == "preview" ]]; then

# Install jq to parse JSON
sudo apt-get install jq -y

if [[ "$EAS_BUILD_PLATFORM" == "android" ]]; then
# Install jq to parse JSON
sudo apt-get install jq -y

# Details on Android build paths: https://docs.expo.dev/build-reference/android-builds/
android_path=$(jq -r '.builds.android."'"$EAS_BUILD_PROFILE"'"."applicationArchivePath"' eas.json)
Expand All @@ -30,6 +30,9 @@ if [[ "$EAS_BUILD_PROFILE" == "preview" ]]; then
fi

if [[ "$EAS_BUILD_PLATFORM" == "ios" ]]; then
# Install jq to parse JSON
brew update
brew install jq

# Details on iOS build paths: https://docs.expo.dev/build-reference/ios-builds/
ios_path=$(jq -r '.builds.ios."'"$EAS_BUILD_PROFILE"'"."applicationArchivePath"' eas.json)
Expand Down

0 comments on commit cbfa34d

Please sign in to comment.