8000
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 9eb535e commit 64c53afCopy full SHA for 64c53af
build/update_arduino_cli.sh
@@ -0,0 +1,20 @@
1
+#!/bin/bash -ex
2
+
3
+VERSION=$1
4
+if [ -z $VERSION ]; then
5
+ echo Please specify an arduino-cli version
6
+ exit 1
7
+fi
8
9
+git rm arduino-cli*.sha -f
10
+rm -f arduino-cli_${VERSION}*
11
12
+for VARIANT in Linux_32bit.tar.gz Linux_64bit.tar.gz Linux_ARM64.tar.gz macOS_64bit.tar.gz Linux_ARMv7.tar.gz Windows_32bit.zip; do
13
+ wget https://downloads.arduino.cc/arduino-cli/arduino-cli_${VERSION}_${VARIANT}
14
+ shasum arduino-cli_${VERSION}_${VARIANT} | cut -d " " -f 1 > arduino-cli_${VERSION}_${VARIANT}.sha
15
+ git add arduino-cli_${VERSION}_${VARIANT}.sha
16
+done
17
18
+sed -i "s/\\(ARDUINO-CLI-VERSION\" value=\\)\"\\(.*\\)\"/\\1\"${VERSION}\"/" build.xml
19
+git add build.xml
20
0 commit comments