mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 14:21:19 +00:00
v2ray: Fix issue in 'path with space' (#3079)
* v2ray: Fix issue in 'path with space' * update comment
This commit is contained in:
parent
044ff45d96
commit
16238bef2e
@ -15,13 +15,16 @@
|
||||
},
|
||||
"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\\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')) {",
|
||||
"$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",
|
||||
" exit 1",
|
||||
"}"
|
||||
" break",
|
||||
"}",
|
||||
"Remove-Item $sig_dir -Force -Recurse | Out-Null"
|
||||
]
|
||||
},
|
||||
"bin": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user