mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-20 02:56:34 +00:00

- Support for multiple electron targe per platform. - Removed packager CLI. Changed the logic we calculate the app name. - Fixed various OS-specific tests: stubbed `os`. - Restructured the final ZIP formats for Windows and Linux. - Added packager tests. - Switched from `@grpc/grpc-js` to native `grpc`. - Updated the version from 0.0.5 to 0.0.6. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
14 lines
549 B
JavaScript
14 lines
549 B
JavaScript
const os = require('os');
|
|
const path = require('path');
|
|
|
|
// To be able to propagate the `process.versions.electron` to the backend main, so that we can load natives correctly.
|
|
process.env.THEIA_ELECTRON_VERSION = process.versions.electron;
|
|
|
|
process.env.THEIA_DEFAULT_PLUGINS = `local-dir:${path.resolve(__dirname, '..', 'plugins')}`;
|
|
process.env.THEIA_PLUGINS = [
|
|
process.env.THEIA_PLUGINS,
|
|
`local-dir:${path.resolve(os.homedir(), '.arduinoProIDE', 'plugins')}`
|
|
].filter(Boolean).join(',');
|
|
|
|
require('../src-gen/frontend/electron-main.js');
|