mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 08:11:20 +00:00
v2ray: Fix install for v5 (#3888)
This commit is contained in:
parent
7fe6ae981a
commit
2addbf6556
@ -15,23 +15,19 @@
|
|||||||
},
|
},
|
||||||
"installer": {
|
"installer": {
|
||||||
"script": [
|
"script": [
|
||||||
"#v2ctl.exe cannot recognize signature file when there are spaces in path. This is a workaround to eliminate spaces.",
|
"#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",
|
"Write-Host 'Verifying V2Ray binary...' -f Yellow",
|
||||||
"$sig_dir = \"$Env:SystemRoot\\Temp\\v2ray\"",
|
"$sig_dir = \"$Env:SystemRoot\\Temp\\v2ray\"",
|
||||||
"ensure $sig_dir | Out-Null",
|
"ensure $sig_dir | Out-Null",
|
||||||
"Invoke-WebRequest \"https://github.com/v2fly/v2ray-core/releases/download/v$version/Release\" -OutFile $sig_dir\\Release",
|
"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')) {",
|
"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",
|
" Write-Host 'V2Ray binary is corrupted!' -f Red",
|
||||||
" break",
|
" break",
|
||||||
"}",
|
"}",
|
||||||
"Remove-Item $sig_dir -Force -Recurse | Out-Null"
|
"Remove-Item $sig_dir -Force -Recurse | Out-Null"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": "v2ray.exe",
|
||||||
"v2ctl.exe",
|
|
||||||
"v2ray.exe",
|
|
||||||
"wv2ray.exe"
|
|
||||||
],
|
|
||||||
"persist": "config.json",
|
"persist": "config.json",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"github": "https://github.com/v2fly/v2ray-core"
|
"github": "https://github.com/v2fly/v2ray-core"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user