mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-15 05:01:19 +00:00
54 lines
2.2 KiB
JSON
54 lines
2.2 KiB
JSON
{
|
|
"version": "4.45.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.45.0/v2ray-windows-64.zip",
|
|
"hash": "sha512:b92fc30c2454cc319511f100351ab3f469b4eec9b257dab7846e82eed6835f659ba31aae16d813263c2421925c8f648ae2612e2e518261958f64f134a340436c"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/v2fly/v2ray-core/releases/download/v4.45.0/v2ray-windows-32.zip",
|
|
"hash": "sha512:1f6b92f8ea4ecc8bb4bef8f8c0f505346292f403707728b01104e5fe457cd1d7a6df389d831ee33812de73dacc5c84d0584923689adbd33e193e6598c8e5deba"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|