diff --git a/.github/autobuild/windows.ps1 b/.github/autobuild/windows.ps1 index c973d5049b..e5ce90456e 100644 --- a/.github/autobuild/windows.ps1 +++ b/.github/autobuild/windows.ps1 @@ -39,6 +39,10 @@ param( # Fail early on all errors $ErrorActionPreference = "Stop" +# Invoke-WebRequest is really slow by default because it renders a progress bar. +# Disabling this, improves vastly performance: +$ProgressPreference = 'SilentlyContinue' + $QtDir = 'C:\Qt' $ChocoCacheDir = 'C:\ChocoCache' $DownloadCacheDir = 'C:\AutobuildCache' @@ -179,7 +183,7 @@ Function Ensure-JACK $JACKInstallPath = "${DownloadCacheDir}\JACK64.exe" - & $JACKInstallPath $JACKInstallParms + Start-Process -Wait $JACKInstallPath -ArgumentList "$JACKInstallParms" if ( !$? ) { @@ -194,7 +198,7 @@ Function Ensure-JACK $JACKInstallPath = "${DownloadCacheDir}\JACK32.exe" - & $JACKInstallPath $JACKInstallParms + Start-Process -Wait $JACKInstallPath -ArgumentList "$JACKInstallParms" if ( !$? ) { diff --git a/windows/deploy_windows.ps1 b/windows/deploy_windows.ps1 index 16b6b91efb..7ea6092d5a 100644 --- a/windows/deploy_windows.ps1 +++ b/windows/deploy_windows.ps1 @@ -21,6 +21,10 @@ param ( # Fail early on all errors $ErrorActionPreference = "Stop" +# Invoke-WebRequest is really slow by default because it renders a progress bar. +# Disabling this, improves vastly performance: +$ProgressPreference = 'SilentlyContinue' + # change directory to the directory above (if needed) Set-Location -Path "$PSScriptRoot\..\"