Add wintun.ps1

This commit is contained in:
Netch
2021-08-14 04:57:55 +08:00
parent e1432a8d5e
commit f1218437a5

21
scripts/deps/wintun.ps1 Normal file
View File

@@ -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