diff --git a/electron/build/template-package.json b/electron/build/template-package.json index f28a6c8e1..9b5af5cde 100644 --- a/electron/build/template-package.json +++ b/electron/build/template-package.json @@ -20,8 +20,7 @@ "shelljs": "^0.8.3" }, "scripts": { - "build": "yarn download:plugins && theia build --mode development && yarn patch", - "build:publish": "yarn download:plugins && theia build --mode production && yarn patch", + "build": "yarn download:plugins && theia build --mode production && yarn patch", "rebuild": "yarn theia rebuild:electron", "package": "cross-env DEBUG=* && electron-builder --publish=never", "package:publish": "cross-env DEBUG=* && electron-builder --publish=always", diff --git a/electron/packager/index.js b/electron/packager/index.js index 8557add35..bda003da7 100644 --- a/electron/packager/index.js +++ b/electron/packager/index.js @@ -227,8 +227,7 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()} 'Installing dependencies' ); exec( - `yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : '' - }`, + `yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build`, `Building the ${productName} application` ); exec( @@ -488,7 +487,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()} )}.` ); shell.exit(1); - process.exit(1); } if (expectedVersion) { if (!versions.has(expectedVersion)) { @@ -497,7 +495,6 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()} }'.` ); shell.exit(1); - process.exit(1); } } }