mirror of
https://github.com/netchx/netch.git
synced 2026-04-01 19:15:09 +08:00
14 lines
497 B
PowerShell
14 lines
497 B
PowerShell
param([string]$OutputPath)
|
|
$address="https://github.com/XTLS/Xray-core/releases/download/v1.4.2/Xray-windows-64.zip"
|
|
|
|
Invoke-WebRequest -Uri $address -OutFile xray-core.zip
|
|
Expand-Archive -Force -Path xray-core.zip -DestinationPath xray-core
|
|
|
|
Move-Item -Force xray-core\xray.exe $OutputPath
|
|
Move-Item -Force xray-core\geoip.dat $OutputPath
|
|
Move-Item -Force xray-core\geosite.dat $OutputPath
|
|
|
|
Remove-Item -Recurse -Force xray-core
|
|
Remove-Item -Recurse -Force xray-core.zip
|
|
exit 0
|