From 52d6893a00957840faaf9e71fbd1b0106a46074a Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Thu, 28 Nov 2024 15:35:47 -0800 Subject: [PATCH] Update forge.config.js (#632) --- package.js | 13 ++++++++----- publish/forge.config.js | 5 +++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.js b/package.js index efe4c9a2d7..87be5f416f 100644 --- a/package.js +++ b/package.js @@ -589,11 +589,14 @@ const forge = async() => { const command = read(); switch (command) { case 'install': { - await exec('npm install @electron-forge/cli@7.3.0'); - await exec('npm install @electron-forge/core@7.3.0'); - await exec('npm install @electron-forge/maker-snap@7.3.0'); - await exec('npm install @electron-forge/maker-dmg@7.3.0'); - await exec('npm install @electron-forge/maker-zip@7.3.0'); + const packages = [ + '@electron-forge/cli', + '@electron-forge/core', + '@electron-forge/maker-snap', + '@electron-forge/maker-dmg', + '@electron-forge/maker-zip' + ]; + await exec(`npm install ${packages.join(' ')} --no-save`); break; } case 'update': { diff --git a/publish/forge.config.js b/publish/forge.config.js index 1875e4c719..39d14b629e 100644 --- a/publish/forge.config.js +++ b/publish/forge.config.js @@ -50,6 +50,11 @@ export default { name: "Netron-${version}" /* eslint-enable no-template-curly-in-string */ } + }, + { + name: '@electron-forge/maker-snap', + config: { + } } ], publishers: [