升级electron egg脚手架版本

This commit is contained in:
2025-10-16 20:14:55 +08:00
parent c04be0264a
commit 7dac2b8c7d
18 changed files with 860 additions and 148 deletions

View File

@@ -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'],

View File

@@ -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"
}