install_deps.ps1: Use empty user agent when downloading boost from jfrog to avoid being treated as a browser

This commit is contained in:
Kamil Śliwak 2021-08-23 21:15:00 +02:00
parent a6683e3226
commit bc68e95221

View File

@ -10,7 +10,9 @@ if ( -not (Test-Path "$PSScriptRoot\..\deps\boost") ) {
tar -xf cmake.zip
mv cmake-3.18.2-win64-x64 "$PSScriptRoot\..\deps\cmake"
Invoke-WebRequest -URI "https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip
# FIXME: The default user agent results in Artifactory treating Invoke-WebRequest as a browser
# and serving it a page that requires JavaScript.
Invoke-WebRequest -URI "https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.zip" -OutFile boost.zip -UserAgent ""
tar -xf boost.zip
cd boost_1_74_0
.\bootstrap.bat