Closed jcwren closed 5 years ago
The standard layout on any platform is to have an Arduino directory somewhere that contains 'hardware' and 'libraries' local to current user and to store projects in the same directory. You can change the script to work for your choice, or make a symlink.
Yeah, but the build.sh
script figures it out correctly. Seems like the update.sh
script just needs the same logic.
The build script doesn't need to find the libraries, but obviously the Arduino UI is able to find them. I started using the Arduino command line to locate certain directories in an attempt to work more easily across platforms, so that technique can be used here, as well.
Your Projects directory is not configured as your Sketchbook directory, and therefore the libraries and hardware are not found using relative access. Instead of assuming the parent of the current directory is the sketchbook directory, I will ask arduino, like I switched to using for locating tools.
Updated build.sh to provide update.sh functionality, removed update.sh. When switching platforms with -o (update core) your preferences.txt will be deleted. Found no other way to reliably get Arduino to pick correct platform.
Running the
update.sh
script does update the myClock app correctly, but is using the incorrect directory to update the libraries (at least on Mac OS).