You've already forked Nano-Banana-AI-Image-Editor
新增 现在支持编译为Windows桌面端
This commit is contained in:
47
package.json
47
package.json
@@ -8,13 +8,24 @@
|
||||
"type": "git",
|
||||
"url": "https://git.pandorastudio.cn/yuantao/Nano-Banana-AI-Image-Editor.git"
|
||||
},
|
||||
"author": {
|
||||
"name": "Mark Fulton",
|
||||
"email": "markfulton@example.com",
|
||||
"url": "https://markfulton.com"
|
||||
},
|
||||
"main": "electron/index.js",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build": "vite build && node copy-favicon.js",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch"
|
||||
"test:watch": "jest --watch",
|
||||
"electron:dev": "node electron/dev-runner.js",
|
||||
"electron:build": "vite build && copy public\\favicon.svg dist\\ && electron-builder --win --x64",
|
||||
"electron:preview": "node electron/prod-runner.js",
|
||||
"electron:compile": "tsc -p tsconfig.electron.json",
|
||||
"postinstall": "echo Skipping electron-builder install-app-deps"
|
||||
},
|
||||
"dependencies": {
|
||||
"@google/genai": "^1.16.0",
|
||||
@@ -25,6 +36,8 @@
|
||||
"@tanstack/react-query": "^5.85.5",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"date-fns": "^4.1.0",
|
||||
"electron-squirrel-startup": "^1.0.1",
|
||||
"fabric": "^6.7.1",
|
||||
"idb-keyval": "^6.2.2",
|
||||
"konva": "^9.3.22",
|
||||
@@ -46,6 +59,8 @@
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@vitejs/plugin-react": "^4.3.1",
|
||||
"autoprefixer": "^10.4.18",
|
||||
"electron": "^38.2.1",
|
||||
"electron-builder": "^26.0.12",
|
||||
"eslint": "^9.9.1",
|
||||
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.11",
|
||||
@@ -53,10 +68,38 @@
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"jest-environment-jsdom": "^30.1.2",
|
||||
"postcss": "^8.4.35",
|
||||
"pump": "^3.0.3",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"tar": "^7.4.3",
|
||||
"ts-jest": "^29.4.3",
|
||||
"typescript": "^5.5.3",
|
||||
"typescript-eslint": "^8.3.0",
|
||||
"vite": "^5.4.2"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.nanobanana.editor",
|
||||
"productName": "Nano Banana AI Image Editor",
|
||||
"npmRebuild": false,
|
||||
"electronDownload": {
|
||||
"mirror": "https://npmmirror.com/mirrors/electron/",
|
||||
"customDir": "38.2.1",
|
||||
"customFilename": "electron-v38.2.1-win32-x64.zip"
|
||||
},
|
||||
"directories": {
|
||||
"output": "release",
|
||||
"buildResources": "build"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"electron/**/*",
|
||||
"package.json"
|
||||
],
|
||||
"win": {
|
||||
"target": [
|
||||
"nsis",
|
||||
"zip"
|
||||
],
|
||||
"icon": "build/icon.ico"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user