mirror of
https://github.com/netchx/netch.git
synced 2026-05-03 22:25:50 +08:00
13 lines
504 B
PowerShell
13 lines
504 B
PowerShell
param([string]$OutputPath)
|
|
$address="https://github.com/v2fly/v2ray-core/releases/download/v4.40.1/v2ray-windows-64.zip"
|
|
|
|
Invoke-WebRequest -Uri $address -OutFile v2ray-core.zip
|
|
Expand-Archive -Force -Path v2ray-core.zip -DestinationPath v2ray-core
|
|
|
|
Move-Item -Force v2ray-core\v2ctl.exe $OutputPath
|
|
Move-Item -Force v2ray-core\v2ray.exe $OutputPath
|
|
Move-Item -Force v2ray-core\wv2ray.exe $OutputPath
|
|
|
|
Remove-Item -Recurse -Force v2ray-core
|
|
Remove-Item -Recurse -Force v2ray-core.zip
|
|
exit 0 |