We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f59ff7b commit 26aa4d6Copy full SHA for 26aa4d6
setup.sh
@@ -9,6 +9,12 @@ FLUTTER_VERSION=${1:-3.0.2}
9
FLUTTER_CHANNEL=${2:-stable}
10
FLUTTER_OS=$OS
11
12
+# Detect the latest version
13
+if [[ $FLUTTER_VERSION == latest ]]
14
+then
15
+ FLUTTER_VERSION=$(curl -s https://storage.googleapis.com/flutter_infra_release/releases/releases_$OS.json | jq -r ".releases | map(select(.channel == \"${FLUTTER_CHANNEL}\")) | .[0].version")
16
+fi
17
+
18
# OS archive file extension
19
EXT="zip"
20
if [[ $OS == linux ]]
0 commit comments