From c1f6d83360784c5222e4e1764f841ccee4912bf2 Mon Sep 17 00:00:00 2001 From: Philipp Lepold Date: Wed, 29 May 2024 12:48:52 +0200 Subject: [PATCH] Updated Xcode Cloud flutter version to stable release of 3.16.0 --- open_earable/ios/ci_scripts/ci_post_clone.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/open_earable/ios/ci_scripts/ci_post_clone.sh b/open_earable/ios/ci_scripts/ci_post_clone.sh index dc74923..a3df67b 100755 --- a/open_earable/ios/ci_scripts/ci_post_clone.sh +++ b/open_earable/ios/ci_scripts/ci_post_clone.sh @@ -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" @@ -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