Issac Lin 16238bef2e
v2ray: Fix issue in 'path with space' (#3079)
* v2ray: Fix issue in 'path with space'

* update comment
2021-12-13 23:19:38 +08:00

54 lines
2.2 KiB
JSON

{
"version": "4.44.0",
"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.44.0/v2ray-windows-64.zip",
"hash": "sha512:533f372906ae7a94acc02c2e1feb4e7d78f66598583a705a32c09aba45109c9b39ed040c0882309a9234626123637b8a18af001fd975980694e5fa16ae704aa5"
},
"32bit": {
"url": "https://github.com/v2fly/v2ray-core/releases/download/v4.44.0/v2ray-windows-32.zip",
"hash": "sha512:270d2e6ba656b1936a09385102ee4e4afd31205e87710a20ca32dc0e738d618d1b474a1be23ed15d3da279a2edbca7d9d746547d492c30e0be8ce41d993e4bc8"
}
},
"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"
}
}
}