appveyor: pass --proto-redir =https option

Follow-up to 500820682c #21757

Closes #22130
This commit is contained in:
Viktor Szakats 2026-06-22 12:45:44 +02:00
parent f7d4e11f4b
commit d824266425
No known key found for this signature in database

View file

@ -59,7 +59,7 @@ if [ -n "${CMAKE_GENERATOR:-}" ]; then
fn="cmake-${CMAKE_VERSION}-win64-x64"
fi
curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 --retry-connrefused \
--location "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${fn}.zip" --output pkg.bin
--location --proto-redir =https "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${fn}.zip" --output pkg.bin
sha256sum pkg.bin && sha256sum pkg.bin | grep -qwF -- "${CMAKE_SHA256}" && 7z x -y pkg.bin >/dev/null && rm -f pkg.bin
PATH="$PWD/${fn}/bin:$PATH"
fi