diff --git a/.gitignore b/.gitignore index bd0362a7850..c1020df2ab0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ .DS_Store .DS_Store? dist/* -out/* node_modules/* third_party/* package-lock.json diff --git a/package.js b/package.js index e35884b2585..166dbea8549 100644 --- a/package.js +++ b/package.js @@ -584,14 +584,14 @@ const forge = async() => { const command = read(); switch (command) { case 'install': { - await exec('npm install @electron-forge/cli@7.2.0'); - await exec('npm install @electron-forge/core@7.2.0'); - await exec('npm install @electron-forge/maker-snap@7.2.0'); - await exec('npm install @electron-forge/maker-dmg@7.2.0'); - await exec('npm install @electron-forge/maker-zip@7.2.0'); + 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'); break; } - case 'build': { + case 'update': { const cwd = path.join(dirname(), '..', 'forge'); const node_modules = path.join(cwd, 'node_modules'); const links = path.join(cwd, '.links'); @@ -604,6 +604,9 @@ const forge = async() => { await exec(`yarn link @electron-forge/core --link-folder=${links}`); break; } + case 'build': { + await exec('npx electron-forge make'); + } default: { throw new Error(`Unsupported forge command ${command}.`); }