- 修改设备移除时的本地清理方法,统一调用 clearLocalAuth - 优化设备数量限制校验逻辑,避免重复计算当前设备- 移除冗余的设备状态检查,简化设备移除流程- 调整 Redis 连接超时与等待时间,提升连接稳定性- 增强 MySQL 数据库连接配置,添加自动重连机制 -优化 Druid 连接池参数,提高数据库连接性能 - 简化客户端认证与数据上报逻辑,提升处理效率 - 移除过期设备状态更新逻辑,减少不必要的数据库操作- 调整慢 SQL 记录阈值,便于及时发现性能问题-优化版本分布与数据类型统计查询逻辑,提高响应速度
92 lines
1.9 KiB
JSON
92 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"
|
|
]
|
|
}
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "update-helper.bat",
|
|
"to": "../update-helper.bat"
|
|
},
|
|
{
|
|
"from": "public",
|
|
"to": "./",
|
|
"filter": ["erp_client_sb-*.jar"]
|
|
}
|
|
]
|
|
}
|