electron常用打包命令

Electron 常用的打包命令

1
2
3
4
5
6
7
8
9
10
11
"build": "node .electron-vue/build.js && electron-builder",
"win32": "node .electron-vue/build.js && electron-builder --platform=win32 --arch=ia32",
"mac": "node .electron-vue/build.js && electron-builder --platform=mac ",
"build:dir": "node .electron-vue/build.js && electron-builder --dir",
"build:clean": "cross-env BUILD_TARGET=clean node .electron-vue/build.js",
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
"dev": "node .electron-vue/dev-runner.js",
"pack": "npm run pack:main && npm run pack:renderer",
"pack:main": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.main.config.js",
"pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js",
"postinstall": ""