Skip to content

Commit

Permalink
Updated Xcode Cloud flutter version to stable release of 3.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteen committed May 29, 2024
1 parent 55a5b1d commit c1f6d83
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions open_earable/ios/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
# Fail this script if any subcommand fails.
set -e

FLUTTER_URL="https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.0-stable.tar.xz"
FLUTTER_DIR="$HOME/flutter"

# by default, the execution directory of this script is the ci_scripts directory
# CI_WORKSPACE is the directory of your cloned repo
echo "🟩 Navigate from ($PWD) to ($CI_WORKSPACE_PATH)"
cd $CI_WORKSPACE_PATH

echo "🟩 Install Flutter"
time git clone https://github.com/flutter/flutter.git -b flutter-3.16-candidate.22 $HOME/flutter
mkdir -p $FLUTTER_DIR
time curl -L $FLUTTER_URL -o /tmp/flutter.tar.xz
time tar -xf /tmp/flutter.tar.xz -C $FLUTTER_DIR --strip-components=1
export PATH="$PATH:$HOME/flutter/bin"

echo "🟩 Flutter Precache"
Expand All @@ -25,7 +30,7 @@ echo "🟩 Install CocoaPods via Homebrew"
time HOMEBREW_NO_AUTO_UPDATE=1 brew install cocoapods

echo "🟩 build iOS"
flutter build ios --release --no-codesign
time flutter build ios --release --no-codesign

echo "🟩 Install CocoaPods dependencies..."
time cd ios && pod install
Expand Down

0 comments on commit c1f6d83

Please sign in to comment.