mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Add xray-plugin
This commit is contained in:
18
scripts/deps/xray-plugin.ps1
Normal file
18
scripts/deps/xray-plugin.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
param([string]$OutputPath)
|
||||
$name="xray-plugin.tar.gz"
|
||||
$address="https://github.com/teddysun/xray-plugin/releases/download/v1.4.2/xray-plugin-windows-amd64-v1.4.2.tar.gz"
|
||||
|
||||
..\scripts\download.ps1 $name $address
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
7z x $name
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
7z x "xray-plugin.tar"
|
||||
if (-Not $?) { exit $lastExitCode }
|
||||
|
||||
Move-Item -Force "xray-plugin_windows_amd64.exe" "$OutputPath\xray-plugin.exe"
|
||||
|
||||
Remove-Item -Recurse -Force $name
|
||||
Remove-Item -Recurse -Force xray-plugin.tar
|
||||
exit 0
|
||||
Reference in New Issue
Block a user