release: update for flutter 3.13.0 (#204)
Signed-off-by: Hidenori Matsubayashi <[email protected]>
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
efbf63d9c66b9f6ec30e9ad4611189aa80003d31
|
efbf63d9c66b9f6ec30e9ad4611189aa80003d31
|
||||||
|
3.13.0
|
||||||
|
|||||||
@@ -36,9 +36,12 @@ function update_flutter() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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.
|
# Clone flutter repo if not installed.
|
||||||
if [[ ! -d "$FLUTTER_DIR" ]]; then
|
if [[ ! -d "$FLUTTER_DIR" ]]; then
|
||||||
git clone --depth=1 "$FLUTTER_REPO" "$FLUTTER_DIR"
|
git clone --depth=1 "$FLUTTER_REPO" "$FLUTTER_DIR" -b "$tag"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# GIT_DIR and GIT_WORK_TREE are used in the git command.
|
# 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"
|
export GIT_WORK_TREE="$FLUTTER_DIR"
|
||||||
|
|
||||||
# Update flutter repo if needed.
|
# Update flutter repo if needed.
|
||||||
local version="$(cat "$ROOT_DIR/bin/internal/flutter.version")"
|
|
||||||
if [[ "$version" != "$(git rev-parse HEAD)" ]]; then
|
if [[ "$version" != "$(git rev-parse HEAD)" ]]; then
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git clean -xdf
|
git clean -xdf
|
||||||
|
|||||||
Reference in New Issue
Block a user