From e798f64fe3d778ee87c61b13fcccb5aa0f83b6ce Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Mon, 17 Apr 2023 12:56:33 +0200 Subject: [PATCH] Adds ProgressPreference SilentlyContinue We should use `$Global:ProgressPreference = 'SilentlyContinue';` to disable the progress bar during download. By doing so, information are directly written to the disk instead of written inside the memory and dumped to the disk afterwards --- doc/win-dev.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/win-dev.ps1 b/doc/win-dev.ps1 index 2202530c0..46ef653e0 100644 --- a/doc/win-dev.ps1 +++ b/doc/win-dev.ps1 @@ -91,6 +91,8 @@ if (-not $Env:GITHUB_ACTIONS) { ThrowOnNativeFailure } +# Disable the progress bar for downloads from the Web, which will speed up the entire download process +$Global:ProgressPreference = 'SilentlyContinue'; Install-Exe -Url "https://packages.icinga.com/windows/dependencies/boost_$($BoostVersion -join '_')-msvc-${MsvcVersion}-${Env:BITS}.exe" -Dir "C:\local\boost_$($BoostVersion -join '_')-Win${Env:BITS}"