mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 11:02:21 +03:00
a4ff91a991
When running System.Net.WebClient locally it results in a non-descriptive "An exception occurred during a WebClient request" error message. Invoke-WebRequest is an alternative that works so switch to that.
12 lines
603 B
PowerShell
12 lines
603 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
|
|
New-Item -Force -ItemType Directory -Path ".\deps\"
|
|
Invoke-WebRequest 'https://github.com/nelsonjchen/mDNSResponder/releases/download/v2019.05.08.1/x64_RelWithDebInfo.zip' -OutFile 'deps\BonjourSDKLike.zip' ;
|
|
Write-Output 'Downloaded BonjourSDKLike Zip'
|
|
Write-Output 'Unzipping BonjourSDKLike Zip'
|
|
Remove-Item -Recurse -Force -ErrorAction Ignore .\deps\BonjourSDKLike
|
|
Expand-Archive .\deps\BonjourSDKLike.zip -DestinationPath .\deps\BonjourSDKLike
|
|
Write-Output 'Installed BonjourSDKLike Zip'
|
|
Remove-Item deps\BonjourSDKLike.zip
|
|
Write-Output 'Deleted BonjourSDKLike Zip'
|