Skip to content

Commit

Permalink
release: update for flutter 3.13.0 (#204)
Browse files Browse the repository at this point in the history
Signed-off-by: Hidenori Matsubayashi <[email protected]>
  • Loading branch information
HidenoriMatsubayashi authored Aug 17, 2023
1 parent 4d74745 commit dd7d8cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/internal/flutter.version
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
efbf63d9c66b9f6ec30e9ad4611189aa80003d31
3.13.0
6 changes: 4 additions & 2 deletions bin/internal/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,19 @@ 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.
export GIT_DIR="$FLUTTER_DIR/.git"
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
Expand Down

0 comments on commit dd7d8cb

Please sign in to comment.