From dd7d8cb2c5615a8c180c437dbb5f9ce387f8e0fc Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Thu, 17 Aug 2023 01:45:11 +0000 Subject: [PATCH] release: update for flutter 3.13.0 (#204) Signed-off-by: Hidenori Matsubayashi --- bin/internal/flutter.version | 1 + bin/internal/shared.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/internal/flutter.version b/bin/internal/flutter.version index 8be5dee..20999a3 100644 --- a/bin/internal/flutter.version +++ b/bin/internal/flutter.version @@ -1 +1,2 @@ efbf63d9c66b9f6ec30e9ad4611189aa80003d31 +3.13.0 diff --git a/bin/internal/shared.sh b/bin/internal/shared.sh index 912f902..68e9977 100644 --- a/bin/internal/shared.sh +++ b/bin/internal/shared.sh @@ -36,9 +36,12 @@ function update_flutter() { exit 1 fi + local version="$(head -n 1 "$ROOT_DIR/bin/internal/flutter.version")" + local tag="$(sed -n 2p "$ROOT_DIR/bin/internal/flutter.version")" + # Clone flutter repo if not installed. if [[ ! -d "$FLUTTER_DIR" ]]; then - git clone --depth=1 "$FLUTTER_REPO" "$FLUTTER_DIR" + git clone --depth=1 "$FLUTTER_REPO" "$FLUTTER_DIR" -b "$tag" fi # GIT_DIR and GIT_WORK_TREE are used in the git command. @@ -46,7 +49,6 @@ function update_flutter() { export GIT_WORK_TREE="$FLUTTER_DIR" # Update flutter repo if needed. - local version="$(cat "$ROOT_DIR/bin/internal/flutter.version")" if [[ "$version" != "$(git rev-parse HEAD)" ]]; then git reset --hard git clean -xdf