Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6e5be78

Browse filesBrowse files
authored
Update install-arduino-ide.sh
1 parent e2452c0 commit 6e5be78
Copy full SHA for 6e5be78

File tree

Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed

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

Copy file name to clipboardExpand all lines: .github/scripts/install-arduino-ide.sh
+9-3Lines changed: 9 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.