升级electron egg脚手架版本
This commit is contained in:
@@ -45,7 +45,7 @@ module.exports = {
|
||||
win64: {
|
||||
cmd: 'electron-builder',
|
||||
directory: './',
|
||||
args: ['--config=./cmd/builder.json', '-w=nsis', '--x64'],
|
||||
args: ['--config=./cmd/builder.json', '-w=dir', '--x64'],
|
||||
},
|
||||
win32: {
|
||||
args: ['--config=./cmd/builder.json', '-w=nsis', '--ia32'],
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"output": "out"
|
||||
},
|
||||
"asar": true,
|
||||
"asarUnpack": [
|
||||
"public/images/**/*"
|
||||
],
|
||||
"files": [
|
||||
"**/*",
|
||||
"!cmd/",
|
||||
@@ -17,28 +20,47 @@
|
||||
"!go/",
|
||||
"!python/"
|
||||
],
|
||||
"extraResources": {
|
||||
"from": "build/extraResources/",
|
||||
"to": "extraResources"
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
"allowElevation": true,
|
||||
"allowToChangeInstallationDirectory": true,
|
||||
"installerIcon": "build/icons/icon.ico",
|
||||
"uninstallerIcon": "build/icons/icon.ico",
|
||||
"installerHeaderIcon": "build/icons/icon.ico",
|
||||
"createDesktopShortcut": true,
|
||||
"createStartMenuShortcut": true,
|
||||
"shortcutName": "灿能检测"
|
||||
},
|
||||
"extraResources": [
|
||||
{
|
||||
"from": "build/extraResources/dll",
|
||||
"to": "extraResources/dll",
|
||||
"filter": ["**/*"]
|
||||
},
|
||||
{
|
||||
"from": "build/extraResources/java",
|
||||
"to": "extraResources/java",
|
||||
"filter": ["**/*"]
|
||||
},
|
||||
{
|
||||
"from": "build/extraResources/read.txt",
|
||||
"to": "extraResources/read.txt"
|
||||
},
|
||||
{
|
||||
"from": "scripts/",
|
||||
"to": "scripts",
|
||||
"filter": ["**/*"]
|
||||
}
|
||||
],
|
||||
"extraFiles": [
|
||||
{
|
||||
"from": "build/extraResources/mysql",
|
||||
"to": "mysql",
|
||||
"filter": ["**/*"]
|
||||
},
|
||||
{
|
||||
"from": "build/extraResources/jre",
|
||||
"to": "jre",
|
||||
"filter": ["**/*"]
|
||||
}
|
||||
],
|
||||
"win": {
|
||||
"icon": "build/icons/icon.ico",
|
||||
"artifactName": "${productName}-${os}-${version}-${arch}.${ext}",
|
||||
"target": [
|
||||
{
|
||||
"target": "portable"
|
||||
"target": "dir",
|
||||
"arch": ["x64"]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"compression": "store"
|
||||
}
|
||||
Reference in New Issue
Block a user