Skip notarizing when prepacking

This commit is contained in:
Junyoung Choi 2021-11-16 06:11:32 +09:00 committed by Junyoung Choi
parent 311b49bc60
commit d94d6a1de7
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,10 @@ const path = require('path')
const electron_notarize = require('electron-notarize')
module.exports = async function (params) {
if (process.env.PREPACK === 'true') {
console.log('skip notorizing(prepack)')
return
}
if (process.platform !== 'darwin') {
return
}

View File

@ -30,7 +30,7 @@
"build:electron-main-staging": "rimraf electron/index.js && env-cmd --file .env.staging ts-node -P tsconfig-webpack.json scripts/build-electron-main",
"build:electron-main-prod": "rimraf electron/index.js && env-cmd --file .env.production ts-node -P tsconfig-webpack.json scripts/build-electron-main",
"meta": "node scripts/meta.js",
"prepack": "rimraf dist && npm run meta && env-cmd --file .env.production electron-builder --dir",
"prepack": "rimraf dist && npm run meta && env-cmd --file .env.production cross-env PREPACK=true electron-builder --dir",
"pack": "rimraf dist && npm run meta && env-cmd --file .env.production electron-builder",
"release": "npm run build:electron && rimraf dist && npm run meta && env-cmd --file .env.production electron-builder -- --publish",
"build:cloud-staging": "rimraf compiled-cloud && env-cmd --file .env.staging cross-env TS_NODE_PROJECT=\"tsconfig-webpack.json\" webpack --mode production --config webpack.cloud.config.ts",