-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathsing-box.json
More file actions
62 lines (62 loc) · 2.77 KB
/
sing-box.json
File metadata and controls
62 lines (62 loc) · 2.77 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
{
"version": "1.13.7",
"description": "The universal proxy platform.",
"homepage": "https://sing-box.sagernet.org/",
"license": "GPL-3.0-or-later",
"notes": [
"If you want to use TUN mode, please run sing-box with administrator privileges.",
"Your configuration and cache files are persisted in '$persist_dir'.",
"You can run with a directory of configs using: 'sing-box run -C $persist_dir\\config.d'"
],
"architecture": {
"64bit": {
"url": "https://github.com/SagerNet/sing-box/releases/download/v1.13.7/sing-box-1.13.7-windows-amd64.zip",
"hash": "c14609978b33552aa82da1351a0377110ef4370f2369fa5ce0d73a94aeb8a53a",
"extract_dir": "sing-box-1.13.7-windows-amd64"
},
"32bit": {
"url": "https://github.com/SagerNet/sing-box/releases/download/v1.13.7/sing-box-1.13.7-windows-386.zip",
"hash": "8ffdb8221416caeb441d71e42efc2653bd2803dc741e0037c3027b4d48a3665b",
"extract_dir": "sing-box-1.13.7-windows-386"
},
"arm64": {
"url": "https://github.com/SagerNet/sing-box/releases/download/v1.13.7/sing-box-1.13.7-windows-arm64.zip",
"hash": "5fdd834e3525ffc715291cd6fffc509f25cf3c25ad58ca0e9a066106608b87d2",
"extract_dir": "sing-box-1.13.7-windows-arm64"
}
},
"pre_install": [
"if (!(Test-Path \"$persist_dir\")) { New-Item -Path \"$persist_dir\" -ItemType Directory | Out-Null }",
"if (!(Test-Path \"$persist_dir\\config.json\")) {",
" $utf8NoBom = New-Object System.Text.UTF8Encoding($false)",
" [System.IO.File]::WriteAllText(\"$persist_dir\\config.json\", \"{}`n\", $utf8NoBom)",
"}",
"if (!(Test-Path \"$persist_dir\\cache.db\")) { New-Item -Path \"$persist_dir\\cache.db\" -ItemType File | Out-Null }"
],
"bin": "sing-box.exe",
"persist": [
"config",
"config.d",
"config.json",
"cache.db"
],
"checkver": {
"github": "https://github.com/SagerNet/sing-box/"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/SagerNet/sing-box/releases/download/v$version/sing-box-$version-windows-amd64.zip",
"extract_dir": "sing-box-$version-windows-amd64"
},
"32bit": {
"url": "https://github.com/SagerNet/sing-box/releases/download/v$version/sing-box-$version-windows-386.zip",
"extract_dir": "sing-box-$version-windows-386"
},
"arm64": {
"url": "https://github.com/SagerNet/sing-box/releases/download/v$version/sing-box-$version-windows-arm64.zip",
"extract_dir": "sing-box-$version-windows-arm64"
}
}
}
}