Skip to content

Commit

Permalink
v2ray: Remove binary verification step(installer.script) (#4058)
Browse files Browse the repository at this point in the history
  • Loading branch information
HUMORCE authored Oct 25, 2022
1 parent e8ce54e commit c7f1b76
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions bucket/v2ray.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@
"hash": "sha512:24757e80b4346493de5a9910dcc55adf4407de1da98a967f5c9310fc311f4b969474b28477292daf60d569aec053fead6435cb36c13de210aa742e13d02719d3"
}
},
"installer": {
"script": [
"#v2ray.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\\v2ray.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": "v2ray.exe",
"persist": "config.json",
"checkver": {
Expand Down

0 comments on commit c7f1b76

Please sign in to comment.