- 添加系统托盘创建和销毁逻辑- 实现窗口关闭行为配置(退出/最小化/托盘) - 添加配置文件读写功能 - 实现下载取消和清理功能 - 添加待更新文件检查机制 - 优化文件下载进度和错误处理 - 添加自动更新配置选项- 实现平滑滚动动画效果 - 添加试用期过期类型检查 -优化VIP状态刷新逻辑
95 lines
1.9 KiB
JSON
95 lines
1.9 KiB
JSON
{
|
|
"appId": "com.erp.client",
|
|
"productName": "erpClient",
|
|
"asar": {
|
|
"smartUnpack": false
|
|
},
|
|
"compression": "maximum",
|
|
"asarUnpack": [
|
|
"public/jre/**/*",
|
|
"public/icon/**/*",
|
|
"public/image/**/*",
|
|
"public/splash.html",
|
|
"public/config/**/*"
|
|
],
|
|
"directories": {
|
|
"output": "dist"
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"perMachine": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"shortcutName": "erpClient"
|
|
},
|
|
"win": {
|
|
"target": "nsis",
|
|
"icon": "public/icon/icon.png"
|
|
},
|
|
"files": [
|
|
"package.json",
|
|
{
|
|
"from": "build/main",
|
|
"to": "main",
|
|
"filter": ["**/*"]
|
|
},
|
|
{
|
|
"from": "build/renderer",
|
|
"to": "renderer",
|
|
"filter": ["**/*"]
|
|
},
|
|
{
|
|
"from": "src/main/static",
|
|
"to": "static",
|
|
"filter": ["**/*"]
|
|
},
|
|
{
|
|
"from": "public",
|
|
"to": "public",
|
|
"filter": [
|
|
"jre/**/*",
|
|
"icon/**/*",
|
|
"image/**/*",
|
|
"splash.html",
|
|
"config/**/*",
|
|
"!erp_client_sb-*.jar",
|
|
"!data/**/*",
|
|
"!jre/bin/jab*.exe",
|
|
"!jre/bin/jac*.exe",
|
|
"!jre/bin/jar*.exe",
|
|
"!jre/bin/jc*.exe",
|
|
"!jre/bin/jd*.exe",
|
|
"!jre/bin/jf*.exe",
|
|
"!jre/bin/jh*.exe",
|
|
"!jre/bin/ji*.exe",
|
|
"!jre/bin/jl*.exe",
|
|
"!jre/bin/jm*.exe",
|
|
"!jre/bin/jp*.exe",
|
|
"!jre/bin/jr*.exe",
|
|
"!jre/bin/jsh*.exe",
|
|
"!jre/bin/jst*.exe",
|
|
"!jre/bin/k*.exe",
|
|
"!jre/bin/rmi*.exe",
|
|
"!jre/bin/serial*.exe",
|
|
"!jre/include/**",
|
|
"!jre/lib/src.zip",
|
|
"!jre/lib/ct.sym",
|
|
"!jre/lib/jvm.lib"
|
|
]
|
|
},
|
|
"!build",
|
|
"!dist",
|
|
"!scripts"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "update-helper.bat",
|
|
"to": "../update-helper.bat"
|
|
},
|
|
{
|
|
"from": "public",
|
|
"to": "./",
|
|
"filter": ["erp_client_sb-*.jar"]
|
|
}
|
|
]
|
|
}
|