release: update for flutter 3.13.0 (#204)
Signed-off-by: Hidenori Matsubayashi <Hidenori.Matsubayashi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4d747457cd
commit
dd7d8cb2c5
@@ -1 +1,2 @@
|
||||
efbf63d9c66b9f6ec30e9ad4611189aa80003d31
|
||||
3.13.0
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user