I maybe should have been more specific. Post #16; Arduino IDE 2.0 Portable - #16 by Kasinatorhh
In that post, the Arduino15 directory is 'changed' as well as the sketchbook folder. So you have (or can create):
- Dedicated directories for Arduino15; each directory tailored for a specific boards package.
- Dedicated directories for your sketchbook, each with its own libraries.
And the batch file can link (or copy) the correct ones.
I haven't had a chance to test it yet. How I see it:
somedirectory
|
+---- IDE 2.0 install (zip)
|
+---- IDE_AVR
| |
| +---- Arduino15
| | |
| | +---- board package
| |
| +---- Sketchbook
|
+---- IDE_ESP_x
| |
| +---- Arduino15
| | |
| | +---- board package
| |
| +---- Sketchbook
|
+---- IDE_ESP_y (different board package)
| |
| +---- Arduino15
| | |
| | +---- board package
| |
| +---- Sketchbook
And an associated batch file / bash script for each.