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