File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 4848 export ARDUINO_USR_PATH=" $HOME /Arduino"
4949fi
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+
5157if [ ! -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
You can’t perform that action at this time.
0 commit comments