-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
119 lines (119 loc) · 2.88 KB
/
Copy pathpackage.json
File metadata and controls
119 lines (119 loc) · 2.88 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"name": "wsgrgui",
"version": "1.4.1",
"description": "AutoWSGR 图形界面 — MVP",
"main": "dist/electron/main.js",
"scripts": {
"build:css": "sass src/view/styles/main.scss src/view/styles/styles.css --no-source-map --style=expanded",
"clean": "node -e \"fs.rmSync('dist/src',{recursive:true,force:true});fs.rmSync('dist/electron',{recursive:true,force:true});console.log('dist cleaned')\" ",
"build": "npm run clean && npm run build:css && tsc && node scripts/bundle.js",
"start": "chcp 65001 >nul && npm run build && electron .",
"dev": "chcp 65001 >nul && npm run clean && npm run build:css && tsc && node scripts/bundle.js && electron .",
"prepare-python": "node scripts/prepare-python.js",
"prepare-adb": "node scripts/prepare-adb.js",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run prepare-python && npm run prepare-adb && npm run build && electron-builder"
},
"devDependencies": {
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.0.0",
"electron": "^33.0.0",
"electron-builder": "^26.8.1",
"esbuild": "^0.27.3",
"sass": "^1.98.0",
"typescript": "^5.6.0"
},
"dependencies": {
"electron-updater": "^6.8.3",
"js-yaml": "^4.1.0"
},
"build": {
"appId": "com.autowsgr.gui",
"productName": "AutoWSGR-GUI",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"src/view/**/*",
"scripts/**/*",
"!node_modules/.cache"
],
"extraResources": [
{
"from": "resource",
"to": "resource",
"filter": [
"**/*"
]
},
{
"from": "plans",
"to": "plans",
"filter": [
"**/*"
]
},
{
"from": "setup.bat",
"to": "setup.bat"
},
{
"from": "debug_deps.bat",
"to": "debug_deps.bat"
}
],
"extraFiles": [
{
"from": "python",
"to": "python",
"filter": [
"**/*",
"!site-packages",
"!site-packages/**"
]
},
{
"from": "redist",
"to": "redist",
"filter": [
"**/*"
]
},
{
"from": "adb",
"to": "adb",
"filter": [
"**/*"
]
}
],
"win": {
"icon": "resource/images/logo.png",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"runAfterFinish": true,
"include": "build/installer.nsh",
"artifactName": "${productName}-Setup-${version}.${ext}"
},
"toolsets": {
"winCodeSign": "1.1.0"
},
"publish": {
"provider": "github",
"owner": "yltx",
"repo": "AutoWSGR-GUI"
}
}
}