一、nsis打包自定义路径配置
vue 项目下package.json文件部分内容(使用的时候把注释去掉)
{
"scripts": {
"dev": "cross-env TERGET_ENV=development node .electron-vue/dev-runner.js",
"build": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder",
"build:win32": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder --win --ia32", // 32位打包
"build:win64": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder --win --x64", // 64位打包
},
"build": {
"asar": false,
"extraFiles": [],
"publish": [
{
"provider": "generic",
"url": "http://127.0.0.1"
}
],
"productName": "projectName", // .exe拓展名称
"appId": "org.Sky.electron-vue",
"