From bf2c5d5e5c71d89292840271ba0c3bacd3881a84 Mon Sep 17 00:00:00 2001 From: Netch Date: Tue, 20 Jul 2021 09:06:49 +0800 Subject: [PATCH] Add v2ray-plugin --- scripts/deps/v2ray-plugin.ps1 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/deps/v2ray-plugin.ps1 diff --git a/scripts/deps/v2ray-plugin.ps1 b/scripts/deps/v2ray-plugin.ps1 new file mode 100644 index 00000000..87b2d0ce --- /dev/null +++ b/scripts/deps/v2ray-plugin.ps1 @@ -0,0 +1,18 @@ +param([string]$OutputPath) +$name="v2ray-plugin.tar.gz" +$address="https://github.com/teddysun/v2ray-plugin/releases/download/v4.40.1/v2ray-plugin-windows-amd64-v4.40.1.tar.gz" + +..\scripts\download.ps1 $name $address +if (-Not $?) { exit $lastExitCode } + +7z x $name +if (-Not $?) { exit $lastExitCode } + +7z x "v2ray-plugin.tar" +if (-Not $?) { exit $lastExitCode } + +Move-Item -Force "v2ray-plugin_windows_amd64.exe" "$OutputPath\v2ray-plugin.exe" + +Remove-Item -Recurse -Force $name +Remove-Item -Recurse -Force v2ray-plugin.tar +exit 0 \ No newline at end of file