59 lines
1.5 KiB
JSON
59 lines
1.5 KiB
JSON
{
|
|
"name": "37du-electron-shell",
|
|
"productName": "37du 自动化工作台",
|
|
"version": "1.0.0",
|
|
"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": "^13.0.3",
|
|
"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"
|
|
},
|
|
"files": [
|
|
"electron/**/*",
|
|
"renderer/**/*",
|
|
"package.json"
|
|
],
|
|
"win": {
|
|
"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
|
|
}
|
|
}
|
|
}
|