mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-05 03:36:35 +00:00
Updated the packager, included the debug extension
Note, I did not check in `/electron/packager/yarn.lock`. It should be checked in, see the `master`. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
5baf43bf25
commit
2b7bceada0
@ -4,7 +4,8 @@
|
||||
"main": "src-gen/frontend/electron-main.js",
|
||||
"author": "Arduino SA",
|
||||
"dependencies": {
|
||||
"arduino-ide-extension": "file:../working-copy/arduino-ide-extension"
|
||||
"arduino-ide-extension": "file:../working-copy/arduino-ide-extension",
|
||||
"arduino-debugger-extension": "file:../working-copy/arduino-debugger-extension"
|
||||
},
|
||||
"resolutions": {
|
||||
"**/fs-extra": "^4.0.3"
|
||||
|
@ -42,13 +42,13 @@
|
||||
// Copy the following items into the `working-copy` folder. Make sure to reuse the `yarn.lock`. |
|
||||
//----------------------------------------------------------------------------------------------+
|
||||
mkdir('-p', path('..', workingCopy));
|
||||
for (const name of ['arduino-ide-extension', 'electron-app', 'yarn.lock', 'package.json', 'lerna.json']) {
|
||||
for (const name of ['arduino-ide-extension', 'arduino-debugger-extension', 'electron-app', 'yarn.lock', 'package.json', 'lerna.json']) {
|
||||
cp('-rf', path(rootPath, name), path('..', workingCopy));
|
||||
}
|
||||
|
||||
//-----------------------------------------------------+
|
||||
//---------------------------------------------+
|
||||
// No need to build the `browser-app` example. |
|
||||
//-----------------------------------------------------+
|
||||
//---------------------------------------------+
|
||||
//@ts-ignore
|
||||
let pkg = require('../working-copy/package.json');
|
||||
const workspaces = pkg.workspaces;
|
||||
@ -72,6 +72,14 @@
|
||||
// We have to do it before changing the dependencies to `local-path`.
|
||||
const unusedDependencies = await utils.collectUnusedDependencies('../working-copy/electron-app/');
|
||||
|
||||
//-------------------------------------------------------------------------------------------------------------+
|
||||
// Change the regular NPM dependencies to `local-paths`, so that we can build them without any NPM registries. |
|
||||
//-------------------------------------------------------------------------------------------------------------+
|
||||
// @ts-ignore
|
||||
pkg = require('../working-copy/arduino-debugger-extension/package.json');
|
||||
pkg.dependencies['arduino-ide-extension'] = 'file:../arduino-ide-extension';
|
||||
fs.writeFileSync(path('..', workingCopy, 'arduino-debugger-extension', 'package.json'), JSON.stringify(pkg, null, 2));
|
||||
|
||||
//------------------------------------------------------------------------------------+
|
||||
// Merge the `working-copy/package.json` with `electron/build/template-package.json`. |
|
||||
//------------------------------------------------------------------------------------+
|
||||
|
Loading…
x
Reference in New Issue
Block a user