mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
15 lines
445 B
PowerShell
15 lines
445 B
PowerShell
param([string]$OutputPath)
|
|
$name="xray-core.zip"
|
|
$address="https://github.com/XTLS/Xray-core/releases/download/v1.4.2/Xray-windows-64.zip"
|
|
|
|
..\scripts\download.ps1 $name $address
|
|
if (-Not $?) { exit $lastExitCode }
|
|
|
|
..\scripts\extract.ps1 $name "xray-core"
|
|
if (-Not $?) { exit $lastExitCode }
|
|
|
|
Move-Item -Force "xray-core\xray.exe" $OutputPath
|
|
|
|
Remove-Item -Recurse -Force xray-core
|
|
Remove-Item -Recurse -Force xray-core.zip
|
|
exit 0 |