2021-04-11 15:55:11 +02:00

51 lines
1.9 KiB
JSON

{
"version": "4.37.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.37.2/v2ray-windows-64.zip",
"hash": "sha512:8bdf30f7d365034c2e62a28bbc08d162938d8c3409bc8a9d884d91fa9d32177536d8ffdbbe1ca8569b64a6119e5fb839a4f721504e59783033094aa4a2104308"
},
"32bit": {
"url": "https://github.com/v2fly/v2ray-core/releases/download/v4.37.2/v2ray-windows-32.zip",
"hash": "sha512:1d7c45bacdc137011eb7f28317c319c1b14147fe87393501ae64eb5c799c3b334af1f926a584cbadf4f672ef1a323494671f2086d6ec6a9f51604a352a41beb3"
}
},
"installer": {
"script": [
"Write-Host 'Verifying V2Ray binary...' -f Yellow",
"$sig = \"$dir\\Release\"",
"Invoke-WebRequest \"https://github.com/v2fly/v2ray-core/releases/download/v$version/Release\" -OutFile $sig",
"if (!(Invoke-Expression \"$dir\\v2ctl.exe verify --sig=$sig $dir\\v2ray.exe\" | Select-String 'OK')) {",
" Write-Host 'V2Ray binary is corrupted!' -f Red",
" exit 1",
"}"
]
},
"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"
}
}
}