2022-06-13 00:44:20 +00:00

54 lines
2.2 KiB
JSON

{
"version": "4.45.2",
"description": "A platform for building proxies to bypass network restrictions.",
"homepage": "https://www.v2fly.org/en_US/",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/v2fly/v2ray-core/releases/download/v4.45.2/v2ray-windows-64.zip",
"hash": "sha512:b0179d456a13062ef72953c9cee2d35d65a4cbc7f0fcab77ce261bfc123d75bcceede86f1c93cd117ebb66f1433a9bf3eeaeca8dc11052cae7d94a3cb04bd050"
},
"32bit": {
"url": "https://github.com/v2fly/v2ray-core/releases/download/v4.45.2/v2ray-windows-32.zip",
"hash": "sha512:13ac6c9e33c02cefea2ff27c3bdcc434e39afe67cce53b4c349689d460711367c54bfd6dce34afb6612d97875975ee61a51db3f57d3d60f8f8d68f3ed1c94734"
}
},
"installer": {
"script": [
"#v2ctl.exe cannot recognize signature file when there are spaces in path. This is a workaround to eliminate spaces.",
"Write-Host 'Verifying V2Ray binary...' -f Yellow",
"$sig_dir = \"$Env:SystemRoot\\Temp\\v2ray\"",
"ensure $sig_dir | Out-Null",
"Invoke-WebRequest \"https://github.com/v2fly/v2ray-core/releases/download/v$version/Release\" -OutFile $sig_dir\\Release",
"if (!(Invoke-Expression \"&`\"$dir\\v2ctl.exe`\" verify --sig=$sig_dir\\Release `\"$dir\\v2ray.exe`\"\" | Select-String 'OK')) {",
" Write-Host 'V2Ray binary is corrupted!' -f Red",
" break",
"}",
"Remove-Item $sig_dir -Force -Recurse | Out-Null"
]
},
"bin": [
"v2ctl.exe",
"v2ray.exe",
"wv2ray.exe"
],
"persist": "config.json",
"checkver": {
"github": "https://github.com/v2fly/v2ray-core"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/v2fly/v2ray-core/releases/download/v$version/v2ray-windows-64.zip"
},
"32bit": {
"url": "https://github.com/v2fly/v2ray-core/releases/download/v$version/v2ray-windows-32.zip"
}
},
"hash": {
"url": "$url.dgst",
"regex": "SHA512= $sha512"
}
}
}