Update Windows SDL2 dependency to 2.0.10.

This commit is contained in:
Paul Chote
2020-02-02 10:13:47 +00:00
committed by reaperrr
parent 46e0b3b363
commit 8d23994a04
2 changed files with 7 additions and 7 deletions

View File

@@ -21,13 +21,13 @@ cd "${download_dir}" || exit 1
if [ ! -f SDL2.dll ]; then
echo "Fetching SDL2 from libsdl.org"
if [ "$1" = "x86" ]; then
curl -LOs https://www.libsdl.org/release/SDL2-2.0.5-win32-x86.zip
unzip SDL2-2.0.5-win32-x86.zip SDL2.dll
rm SDL2-2.0.5-win32-x86.zip
curl -LOs https://www.libsdl.org/release/SDL2-2.0.10-win32-x86.zip
unzip SDL2-2.0.10-win32-x86.zip SDL2.dll
rm SDL2-2.0.10-win32-x86.zip
else
curl -LOs https://www.libsdl.org/release/SDL2-2.0.5-win32-x64.zip
unzip SDL2-2.0.5-win32-x64.zip SDL2.dll
rm SDL2-2.0.5-win32-x64.zip
curl -LOs https://www.libsdl.org/release/SDL2-2.0.10-win32-x64.zip
unzip SDL2-2.0.10-win32-x64.zip SDL2.dll
rm SDL2-2.0.10-win32-x64.zip
fi
fi

View File

@@ -40,7 +40,7 @@ if (!(Test-Path "windows/SDL2.dll"))
echo "Fetching SDL2 from libsdl.org"
# Download zip:
$zipFileName = "SDL2-2.0.5-win32-x64.zip"
$zipFileName = "SDL2-2.0.10-win32-x64.zip"
$target = Join-Path $pwd.ToString() $zipFileName
(New-Object System.Net.WebClient).DownloadFile("https://www.libsdl.org/release/" + $zipFileName, $target)