mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
22 lines
384 B
PowerShell
22 lines
384 B
PowerShell
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'
|
|
rm -Recurse -Force 'wintun.zip'
|
|
exit 0 |