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 4848export  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 
5258echo  " 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 ' ..." 
5460if  [ " $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 
5662echo  " Extracting 'arduino.$ARCHIVE_FORMAT ' ..." 
5763tar xf " arduino.$ARCHIVE_FORMAT " >  /dev/null
5864mv arduino-nightly " $ARDUINO_IDE_PATH " 
5965else 
60- curl -o " arduino.$ARCHIVE_FORMAT " " https://www.arduino.cc/download.php?f=/arduino-nightly- $OS_NAME .$ARCHIVE_FORMAT " >  /dev/null 2>&1 
66+ curl -o " arduino.$ARCHIVE_FORMAT " " $ARDUINO_IDE_URL $OS_NAME$ARCHIVE_FORMAT " >  /dev/null 2>&1 
6167echo  " Extracting 'arduino.$ARCHIVE_FORMAT ' ..." 
6268unzip " arduino.$ARCHIVE_FORMAT " >  /dev/null
6369if  [ " $OS_IS_MACOS " ==  " 1" ;  then 
                         You can’t perform that action at this time. 
           
                  
0 commit comments