blob: 80e64f7da0372e376b7934dd9eefb52f4abb9fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
@echo off
set DOWNLOAD_URL=https://aka.ms/vs/17/release/vc_redist.%TARGET_ARCHITECTURE%.exe
set DOWNLOAD_FOLDER=..\BuildDependencies\downloads\vcredist\2015-2022
set DOWNLOAD_FILE=vcredist_%TARGET_ARCHITECTURE%.exe
:: Following commands expect this script's parent directory to be the current directory, so make sure that's so
PUSHD %~dp0
if not exist %DOWNLOAD_FOLDER% mkdir %DOWNLOAD_FOLDER%
if not exist %DOWNLOAD_FOLDER%\%DOWNLOAD_FILE% (
echo Downloading vc143 redist...
curl --retry 5 --retry-all-errors --retry-connrefused --retry-delay 5 --location --output %DOWNLOAD_FOLDER%\%DOWNLOAD_FILE% %DOWNLOAD_URL%
)
:: Restore the previous current directory
POPD
|