Skip to content

Commit 6e5be78

Browse files
authoredNov 3, 2020
Update install-arduino-ide.sh
1 parent e2452c0 commit 6e5be78

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎.github/scripts/install-arduino-ide.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,22 @@ else
4848
export ARDUINO_USR_PATH="$HOME/Arduino"
4949
fi
5050

51+
# Updated as of Nov 3rd 2020
52+
ARDUINO_IDE_URL="https://github.com/espressif/arduino-esp32/releases/download/1.0.4/arduino-nightly-"
53+
54+
# Currently not working
55+
#ARDUINO_IDE_URL="https://www.arduino.cc/download.php?f=/arduino-nightly-"
56+
5157
if [ ! -d "$ARDUINO_IDE_PATH" ]; then
5258
echo "Installing Arduino IDE on $OS_NAME ..."
53-
echo "Downloading 'arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT' to 'arduino.$ARCHIVE_FORMAT' ..."
59+
echo "Downloading '$ARDUINO_IDE_URL$OS_NAME.$ARCHIVE_FORMAT' to 'arduino.$ARCHIVE_FORMAT' ..."
5460
if [ "$OS_IS_LINUX" == "1" ]; then
55-
wget -O "arduino.$ARCHIVE_FORMAT" "https://www.arduino.cc/download.php?f=/arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
61+
wget -O "arduino.$ARCHIVE_FORMAT" "$ARDUINO_IDE_URL$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
5662
echo "Extracting 'arduino.$ARCHIVE_FORMAT' ..."
5763
tar xf "arduino.$ARCHIVE_FORMAT" > /dev/null
5864
mv arduino-nightly "$ARDUINO_IDE_PATH"
5965
else
60-
curl -o "arduino.$ARCHIVE_FORMAT" -L "https://www.arduino.cc/download.php?f=/arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
66+
curl -o "arduino.$ARCHIVE_FORMAT" -L "$ARDUINO_IDE_URL$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
6167
echo "Extracting 'arduino.$ARCHIVE_FORMAT' ..."
6268
unzip "arduino.$ARCHIVE_FORMAT" > /dev/null
6369
if [ "$OS_IS_MACOS" == "1" ]; then

0 commit comments

Comments
 (0)
Please sign in to comment.