-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
57 lines (57 loc) · 1.57 KB
/
package.json
File metadata and controls
57 lines (57 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"name": "photo-magic-ai-desktop",
"version": "1.0.0",
"description": "一个由Gemini驱动的照片魔法AI桌面应用",
"author": "AI Engineer",
"homepage": ".",
"main": "main.js",
"scripts": {
"build:web-bundle": "esbuild index.tsx --bundle --outfile=build/bundle.js --jsx=automatic --loader:.tsx=tsx",
"build:static": "shx mkdir -p build && shx cp -r index.html metadata.json build/",
"build": "shx rm -rf build && npm run build:static && npm run build:web-bundle",
"start:desktop": "npm run build && electron .",
"pack:desktop": "npm run build && electron-builder",
"android:add": "npm run build && npx cap add android",
"android:sync": "npm run build && npx cap sync android",
"android:open": "npx cap open android"
},
"dependencies": {
"@google/genai": "^1.26.0",
"dotenv": "^16.4.5",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@capacitor/android": "^6.1.0",
"@capacitor/cli": "^6.1.0",
"@capacitor/core": "^6.1.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"electron": "^28.3.3",
"electron-builder": "^24.13.3",
"esbuild": "^0.21.3",
"shx": "^0.3.4"
},
"build": {
"appId": "com.ai-engineer.photomagicai",
"productName": "照片魔法AI",
"files": [
"build/**/*",
"main.js",
"preload.js"
],
"directories": {
"buildResources": "assets",
"output": "dist"
},
"win": {
"target": "nsis"
},
"mac": {
"target": "dmg"
},
"linux": {
"target": "AppImage"
}
}
}