From c7f1b76bc2195307853a793ff3e7824c4fd2ad75 Mon Sep 17 00:00:00 2001 From: HUMORCE Date: Tue, 25 Oct 2022 05:36:51 +0000 Subject: [PATCH] v2ray: Remove binary verification step(installer.script) (#4058) --- bucket/v2ray.json | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/bucket/v2ray.json b/bucket/v2ray.json index fc5098c7ae..24fc6891d2 100644 --- a/bucket/v2ray.json +++ b/bucket/v2ray.json @@ -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": {