-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 2.43 KB
/
package.json
File metadata and controls
94 lines (94 loc) · 2.43 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "gravity-launcher",
"version": "1.0.0",
"description": "Gravity - Yunzai Portable Launcher",
"main": "electron/main.js",
"author": "Gravity",
"license": "MIT",
"scripts": {
"start": "concurrently \"npm run start:server\" \"npm run start:client\"",
"start:server": "cd server && node index.js",
"start:client": "cd client && npm run dev",
"install:all": "npm install && cd client && npm install && cd ../server && npm install",
"build:client": "cd client && npm run build",
"electron": "electron .",
"electron:dev": "concurrently \"npm run start:server\" \"npm run start:client\" \"wait-on http://localhost:5173 && electron .\"",
"dist": "npm run build:client && electron-builder",
"dist:portable": "npm run build:client && electron-builder --win portable",
"dist:installer": "npm run build:client && electron-builder --win nsis"
},
"keywords": [
"yunzai",
"launcher",
"electron"
],
"devDependencies": {
"concurrently": "^8.2.2",
"electron": "^33.4.11",
"electron-builder": "^25.1.8",
"png-to-ico": "^3.0.1",
"wait-on": "^7.2.0"
},
"build": {
"appId": "com.gravity.launcher",
"productName": "Gravity",
"directories": {
"output": "dist",
"buildResources": "."
},
"files": [
"electron/**/*",
"client/dist/**/*",
"icon.png",
"!**/node_modules/**",
"!**/temp/**",
"!**/team/**",
"!**/*.log",
"!**/*.map"
],
"extraResources": [
{
"from": "server",
"to": "server",
"filter": [
"**/*",
"!node_modules/**"
]
},
{
"from": "node_modules",
"to": "server/node_modules",
"filter": [
"**/*",
"!**/.cache/**",
"!**/typescript/**",
"!**/@types/**",
"!**/vite/**",
"!**/electron/**",
"!**/electron-builder/**",
"!**/esbuild/**",
"!**/7zip-bin/**"
]
},
{
"from": "bin",
"to": "bin"
}
],
"win": {
"target": "portable",
"icon": "icon.png",
"sign": null
},
"portable": {
"artifactName": "Gravity-Portable-${version}.exe"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"installerIcon": "icon.png",
"uninstallerIcon": "icon.png",
"artifactName": "Gravity-Setup-${version}.exe"
}
}
}