Files
37duAutomation/desktop/electron-shell/package.json
T
puddy b891f07fd2 feat(electron-shell): 1.10.9 新增选文件接口 /api/dialog/file,通知 WS 补连与秒达
本机接口 POST /api/dialog/file:插件 UI 调原生选择文件对话框,只回绝对路径(默认过滤 xlsx/xlsm),补 /api/dialog/directory 只能选目录的缺口。

通知 WS:启动时未登录不再永久连不上(随 60s 轮询补连),旧连接 close 不再顶掉新连接;配套中心机 /ws/notifications 后通知秒达,轮询继续兜底。
2026-11-10 16:38:05 +08:00

79 lines
1.9 KiB
JSON

{
"name": "37du-electron-shell",
"productName": "37du 自动化工作台",
"version": "1.10.9",
"description": "37du 执行机 Node/Electron 客户端(替代 Python webhost 底座,插件保持 Python 子进程执行)",
"main": "electron/main.js",
"private": true,
"type": "commonjs",
"scripts": {
"start": "node electron/main.js --cli",
"dev": "node electron/main.js --cli --dev",
"electron": "electron .",
"pack": "electron-builder --win nsis",
"copy-renderer": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/copy-renderer.ps1"
},
"dependencies": {
"adm-zip": "^0.5.18",
"better-sqlite3": "12.4.1",
"ws": "^8.21.3"
},
"devDependencies": {
"electron": "^30.5.1",
"electron-builder": "^24.13.3"
},
"build": {
"appId": "com.37du.automation",
"productName": "37du 自动化工作台",
"asar": true,
"directories": {
"output": "dist-app"
},
"afterPack": "scripts/after-pack.js",
"files": [
"electron/**/*",
"renderer/**/*",
"package.json"
],
"extraResources": [
{
"from": ".env.packaged",
"to": ".env"
},
{
"from": "assets/icon.ico",
"to": "assets/icon.ico"
}
],
"asarUnpack": [
"**/node_modules/better-sqlite3/**"
],
"npmRebuild": false,
"win": {
"icon": "assets/icon.ico",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"artifactName": "setup-37du-shell-${version}.exe"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "37du 自动化工作台",
"runAfterFinish": true
}
},
"allowScripts": {
"electron@30.5.1": true,
"better-sqlite3@12.4.1": true
}
}