Arduino IDE 2.0 Portable

Think I managed to make it portable, only partially tested on windows 11,

  1. Download arduino-cli from GitHub.
  2. In file /configuration/configuration.go, change functions getDefaultArduinoDataDir() and getDefaultUserDir(). Instead of "win32.GetLocalAppDataFolder()", use "os.Getwd()". Also, comment this line “github.com/arduino/go-win32-utils”.
  3. Build arduino-cli.exe following this guide: How to contribute - Arduino CLI.
  4. Download Arduino IDE portable.
  5. Look in file /resources/app/node_modules/arduino-ide-extension/lib/node/theia/env-variables/env-variables-server.js line 20. Change "os_1.homedir" to "process.cwd".
  6. Copy arduino-cli.exe to /resources/app/node_modules/arduino-ide-extension/build.
  7. Start the application.

ps: delete file /.arduinoIDE/arduino-cli.yaml. when moving or copying

1 Like