(Windows) Updated curl to 8.2.1

This commit is contained in:
Leon Styhre 2023-09-09 10:46:42 +02:00
parent ce18f24521
commit 28f880d995
2 changed files with 12 additions and 12 deletions

View file

@ -35,28 +35,28 @@ cd external
echo Setting up curl echo Setting up curl
if exist curl-8.1.2_3-win64-mingw\ ( if exist curl-8.2.1_11-win64-mingw\ (
rmdir /S /Q curl-8.1.2_3-win64-mingw rmdir /S /Q curl-8.2.1_11-win64-mingw
) )
if exist curl\ ( if exist curl\ (
rmdir /S /Q curl rmdir /S /Q curl
) )
if exist curl-8.1.2_3-win64-mingw.zip ( if exist curl-8.2.1_11-win64-mingw.zip (
del curl-8.1.2_3-win64-mingw.zip del curl-8.2.1_11-win64-mingw.zip
) )
curl -O https://curl.se/windows/dl-8.1.2_3/curl-8.1.2_3-win64-mingw.zip curl -O https://curl.se/windows/dl-8.2.1_11/curl-8.2.1_11-win64-mingw.zip
7z x curl-8.1.2_3-win64-mingw.zip 7z x curl-8.2.1_11-win64-mingw.zip
if not exist curl-8.1.2_3-win64-mingw\bin\ ( if not exist curl-8.2.1_11-win64-mingw\bin\ (
echo curl directory is missing, aborting. echo curl directory is missing, aborting.
cd .. cd ..
goto end goto end
) )
rename curl-8.1.2_3-win64-mingw curl rename curl-8.2.1_11-win64-mingw curl
cd curl\bin cd curl\bin

View file

@ -22,10 +22,10 @@ cd external
echo -e "\nSetting up curl" echo -e "\nSetting up curl"
rm -rf curl* rm -rf curl*
curl -O https://curl.se/windows/dl-8.1.2_3/curl-8.1.2_3-win64-mingw.zip curl -O https://curl.se/windows/dl-8.2.1_11/curl-8.2.1_11-win64-mingw.zip
unzip curl-8.1.2_3-win64-mingw.zip unzip curl-8.2.1_11-win64-mingw.zip
if [ ! -d curl-8.1.2_3-win64-mingw ]; then if [ ! -d curl-8.2.1_11-win64-mingw ]; then
echo "curl directory is missing, aborting." echo "curl directory is missing, aborting."
exit exit
fi fi
@ -33,7 +33,7 @@ fi
# Needed due to some kind of file system race condition that sometimes occurs on Windows. # Needed due to some kind of file system race condition that sometimes occurs on Windows.
sleep 3 sleep 3
mv curl-8.1.2_3-win64-mingw curl mv curl-8.2.1_11-win64-mingw curl
cp -p curl/bin/libcurl-x64.dll .. cp -p curl/bin/libcurl-x64.dll ..