-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (93 loc) · 2.74 KB
/
Copy pathpackage.json
File metadata and controls
93 lines (93 loc) · 2.74 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
{
"name": "gatecontrol-client",
"version": "1.20.7",
"description": "GateControl WireGuard Client für Windows",
"main": "src/main/main.js",
"author": "GateControl",
"license": "MIT",
"scripts": {
"start": "electron .",
"dev": "cross-env NODE_ENV=development electron .",
"build": "electron-builder --win",
"build:portable": "electron-builder --win portable",
"build:installer": "electron-builder --win nsis",
"postinstall": "electron-builder install-app-deps",
"syntax": "node -e \"const fs=require('fs'),path=require('path'),{execFileSync}=require('child_process');let ok=0,fail=0;const check=d=>{for(const f of fs.readdirSync(d,{withFileTypes:true})){const p=path.join(d,f.name);if(f.isDirectory()&&f.name!=='node_modules')check(p);else if(f.name.endsWith('.js')){try{execFileSync(process.execPath,['--check',p]);ok++}catch(e){console.error('FAIL:',p);fail++}}}};check('src');console.log(ok+' files OK'+(fail?' '+fail+' FAILED':''));if(fail)process.exit(1)\"",
"test": "npm run syntax && node --test \"test/**/*.test.js\""
},
"dependencies": {
"@gatecontrol/client-core": "file:../gatecontrol-client-core"
},
"devDependencies": {
"cross-env": "^7.0.3",
"electron": "^41.2.0",
"electron-builder": "^26.8.1"
},
"overrides": {
"@xmldom/xmldom": "0.8.13",
"fast-uri": "3.1.2",
"ip-address": "10.1.1"
},
"build": {
"appId": "com.gatecontrol.client",
"productName": "GateControl Community Client",
"copyright": "Copyright © 2026 GateControl",
"directories": {
"output": "dist",
"buildResources": "build"
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
}
],
"icon": "build/icon.ico",
"requestedExecutionLevel": "requireAdministrator"
},
"nsis": {
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": false,
"installerIcon": "build/icon.ico",
"uninstallerIcon": "build/icon.ico",
"installerHeaderIcon": "build/icon.ico",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "GateControl"
},
"portable": {
"artifactName": "${productName} ${version}.exe"
},
"files": [
"src/**/*",
"package.json"
],
"extraResources": [
{
"from": "node_modules/@gatecontrol/client-core/resources/",
"to": "resources/",
"filter": [
"**/*"
]
},
{
"from": "resources/",
"to": "resources/",
"filter": [
"**/*"
]
}
],
"publish": null
}
}