{ "name": "37du-electron-shell", "productName": "37du 自动化工作台", "version": "1.8.1", "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 } }