67 lines
1.8 KiB
JSON
67 lines
1.8 KiB
JSON
{
|
|
"name": "nano-banana-img",
|
|
"version": "1.0.0",
|
|
"description": "NanoBanana2 本地图片生成脚本与桌面应用",
|
|
"main": "electron/main.js",
|
|
"scripts": {
|
|
"dev": "node nano_banana_client.js",
|
|
"ui": "vite --open",
|
|
"electron": "electron .",
|
|
"app": "concurrently -k \"vite\" \"wait-on http://localhost:5173 && electron .\"",
|
|
"build": "vite build",
|
|
"start": "electron .",
|
|
"pack": "npm run build && electron-builder --dir",
|
|
"dist": "npm run build && cross-env ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ electron-builder --win",
|
|
"dist:clean": "rimraf release && npm run dist",
|
|
"deps:check": "node -e \"require('./core/generator.js'); console.log('主进程依赖完整');\""
|
|
},
|
|
"build": {
|
|
"appId": "com.nanobanana.img",
|
|
"productName": "NanoBanana生图",
|
|
"directories": {
|
|
"output": "release"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"electron/**/*",
|
|
"core/**/*",
|
|
"node_modules/**/*",
|
|
"package.json"
|
|
],
|
|
"win": {
|
|
"target": [
|
|
{ "target": "dir", "arch": ["x64"] }
|
|
],
|
|
"icon": null,
|
|
"signAndEditExecutable": false
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"installerLanguages": ["zh_CN"],
|
|
"shortcutName": "NanoBanana生图"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.7.0",
|
|
"form-data": "^4.0.0",
|
|
"combined-stream": "^1.0.8",
|
|
"delayed-stream": "^1.0.0",
|
|
"mime-types": "^2.1.35",
|
|
"mime-db": "^1.52.0",
|
|
"@aws-sdk/client-s3": "^3.700.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-react": "^4.2.0",
|
|
"vite": "^5.0.0",
|
|
"electron": "^28.0.0",
|
|
"electron-builder": "^24.9.1",
|
|
"cross-env": "^7.0.3",
|
|
"concurrently": "^8.2.0",
|
|
"wait-on": "^7.2.0",
|
|
"rimraf": "^5.0.5"
|
|
}
|
|
}
|