mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Add wintun.ps1
This commit is contained in:
21
scripts/deps/wintun.ps1
Normal file
21
scripts/deps/wintun.ps1
Normal 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
|
||||
Reference in New Issue
Block a user