From f1218437a55c3f6d19f898447c89c3e15f7dd24b Mon Sep 17 00:00:00 2001 From: Netch Date: Sat, 14 Aug 2021 04:57:55 +0800 Subject: [PATCH] Add wintun.ps1 --- scripts/deps/wintun.ps1 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/deps/wintun.ps1 diff --git a/scripts/deps/wintun.ps1 b/scripts/deps/wintun.ps1 new file mode 100644 index 00000000..d5092da2 --- /dev/null +++ b/scripts/deps/wintun.ps1 @@ -0,0 +1,21 @@ +param ( + [string] + $OutputPath +) + +try { + Invoke-WebRequest ` + -Uri 'https://www.wintun.net/builds/wintun-0.13.zip' ` + -OutFile 'wintun.zip' +} +catch { + exit 1 +} + +7z x 'wintun.zip' +if ( -Not $? ) { exit $lastExitCode } + +mv -Force 'wintun\bin\amd64\wintun.dll' $OutputPath + +rm -Recurse -Force 'wintun' +exit 0 \ No newline at end of file