We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d72d53 commit dd6f633Copy full SHA for dd6f633
install.sh
@@ -104,8 +104,12 @@ downloadFile() {
104
get TAG_JSON https://api.github.com/repos/arduino/arduino-cli/releases/latest
105
TAG=$(echo $TAG_JSON | python -c 'import json,sys;obj=json.load(sys.stdin, strict=False);sys.stdout.write(obj["tag_name"])')
106
echo "TAG=$TAG"
107
- # arduino-cli_0.4.0-rc1_Linux_64bit.tar.gz
108
- CLI_DIST="arduino-cli_${TAG}_${OS}_${ARCH}.tar.gz"
+ # arduino-cli_0.4.0-rc1_Linux_64bit.[tar.gz, zip]
+ if [ "$OS" == "Windows" ]; then
109
+ CLI_DIST="arduino-cli_${TAG}_${OS}_${ARCH}.zip"
110
+ else
111
+ CLI_DIST="arduino-cli_${TAG}_${OS}_${ARCH}.tar.gz"
112
+ fi
113
echo "CLI_DIST=$CLI_DIST"
114
DOWNLOAD_URL="https://downloads.arduino.cc/arduino-cli/$CLI_DIST"
115
CLI_TMP_FILE="/tmp/$CLI_DIST"
0 commit comments