generated from Ash258/GenericBucket
/
v2ray-geoip.json
32 lines (32 loc) · 1.32 KB
/
v2ray-geoip.json
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
{
"version": "202110280028",
"description": "GeoIP data for V2Ray (official)",
"homepage": "https://github.com/v2ray/geoip",
"license": "MIT",
"depends": "mochi/v2ray",
"url": "https://download.fastgit.org/v2ray/geoip/releases/download/202110280028/geoip.dat",
"hash": "929c0527a1635634a2b9d6a5175a1f4bd064581aa61845d81a4cd4b287ea24fd",
"installer": {
"script": [
"if (-not (Test-Path \"$persist_dir\\v2ray-geoip\")) {",
" Copy-Item \"$(appdir v2ray $global)\\current\\geoip.dat\" -Destination \"$dir\\geoip.dat.bak\"",
"}",
"function LinkFile([String] $file, [String] $source = $file) {",
" Write-Host \"Creating hardlink for $file\"",
" New-Item -Force -ItemType HardLink -Path \"$(appdir v2ray $global)\\current\" -Name $file -Target \"$dir\\$source\" | Out-Null",
"}",
"LinkFile 'geoip.dat'"
]
},
"uninstaller": {
"script": "Copy-Item \"$dir\\geoip.dat.bak\" -Destination \"$(appdir v2ray $global)\\current\\geoip.dat\" -Force"
},
"persist": "geoip.dat.bak",
"checkver": "github",
"autoupdate": {
"url": "https://download.fastgit.org/v2ray/geoip/releases/download/$version/geoip.dat",
"hash": {
"url": "$url.sha256sum"
}
}
}