You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eliminate the use of sudo and use symbolic links for installation
Thanks to some advice from @majekw, I discovered that sudo was only necessary because of the use of /usr/local/share as the folder the Arduino IDE was installed to. By changing to the use of a subfolder of $HOME I was able to do without sudo. Hopefully this will decrease the build time.
I also am able to use symbolic links for installation, which makes it unnecessary to uninstall the IDE by moving it back to the version folder. This should be faster than using mv for installation and uninstallation.
# This runs the command contained in the $INSTALLED_IDE_VERSION_LIST_ARRAY string, thus declaring the array locally as $IDEversionListArray. This must be done in any function that uses the array
218
220
# Dummy declaration to fix the "referenced but not assigned" warning.
# Arduino IDE 1.5.6 - 1.5.7 load the GUI if you only set preferences without doing a verify. So I am doing an unnecessary verification just to set the preferences in those versions. Definitely a hack but I prefer to keep the preferences setting code all here instead of cluttering build_sketch and this will pretty much never be used.
# Retry the verification if arduino returns an exit code that indicates there may have been a temporary error not caused by a bug in the sketch or the arduino command
701
683
while [[ $arduinoExitCode-gt$HIGHEST_ACCEPTABLE_ARDUINO_EXIT_CODE&&$verifyCount-le$SKETCH_VERIFY_RETRIES ]];do
702
684
# Verify the sketch
703
-
arduino $VERBOSE_BUILD --verify "$sketchName" --board "$boardID"2>&1| tee "$VERIFICATION_OUTPUT_FILENAME";local arduinoExitCode="${PIPESTATUS[0]}"
685
+
${APPLICATION_FOLDER}/${IDE_INSTALLATION_FOLDER}/arduino $VERBOSE_BUILD --verify "$sketchName" --board "$boardID"2>&1| tee "$VERIFICATION_OUTPUT_FILENAME";local arduinoExitCode="${PIPESTATUS[0]}"
0 commit comments