diff --git a/bin/install_prerequisites_windows.ps1 b/bin/install_prerequisites_windows.ps1 index 3e3a42200..b5ebd0263 100644 --- a/bin/install_prerequisites_windows.ps1 +++ b/bin/install_prerequisites_windows.ps1 @@ -9,8 +9,8 @@ git -C ((Get-command vcpkg).Source | Split-Path) pull # install libxml and libcurl[openssl] $vcpkg_dir=(Get-command vcpkg).Source -vcpkg install curl:x64-windows || true -vcpkg install libxml2[core,iconv]:x64-windows || true +vcpkg install --recurse --x-use-aria2 curl:x64-windows || true +vcpkg install --recurse --x-use-aria2 libxml2[core,iconv]:x64-windows || true vcpkg update if ($LASTEXITCODE) { Throw } diff --git a/contrib/windows/README.md b/contrib/windows/README.md index 0f99a7918..a481f0faf 100644 --- a/contrib/windows/README.md +++ b/contrib/windows/README.md @@ -57,8 +57,8 @@ $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" Install build libs requirement ```pwsh -vcpkg install curl:x64-windows -vcpkg install libxml2[core,iconv]:x64-windows +vcpkg install --recurse --x-use-aria2 curl:x64-windows +vcpkg install --recurse --x-use-aria2 libxml2[core,iconv]:x64-windows vcpkg integrate install Set-ItemProperty -Path HKCU:\Environment -Name VCPKGRS_DYNAMIC -Value "1" $env:VCPKGRS_DYNAMIC = [System.Environment]::GetEnvironmentVariable("VCPKGRS_DYNAMIC","User")