-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #548 from machupicchubeta/simplyfy_setup_flutter
Simplify setup scripts by using the asdf-flutter patch version
- Loading branch information
Showing
3 changed files
with
12 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,13 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
if [ ! -x "$(command -v ghq)" ]; then | ||
echo "Install ghq command first." | ||
exit 1 | ||
fi | ||
|
||
: "${REPOSITORIES_PATH:=$HOME/Repositories}" | ||
if [ ! -d "$REPOSITORIES_PATH" ]; then | ||
mkdir "$REPOSITORIES_PATH" | ||
fi | ||
|
||
export GHQ_ROOT="${GHQ_ROOT:=$REPOSITORIES_PATH}" | ||
ghq get --update https://github.com/flutter/flutter | ||
|
||
export FLUTTER_ROOT="${FLUTTER_ROOT:=$REPOSITORIES_PATH/github.com/flutter/flutter}" | ||
git -C $FLUTTER_ROOT switch stable | ||
$FLUTTER_ROOT/bin/flutter channel stable | ||
|
||
unset REPOSITORIES_PATH | ||
# https://github.com/asdf-community/asdf-flutter/pull/52 | ||
# https://github.com/asdf-community/asdf-flutter/issues/33 | ||
# https://github.com/asdf-community/asdf-flutter/pull/36 | ||
mise plugins install flutter https://github.com/hleinone/asdf-flutter | ||
mise plugins update flutter | ||
mise install flutter@latest | ||
mise upgrade flutter@latest | ||
mise use --global flutter@latest | ||
mise prune --yes flutter | ||
mise reshim |