diff --git a/thirdparty/fetch-thirdparty-deps-windows.sh b/thirdparty/fetch-thirdparty-deps-windows.sh index ec54e4289b..30b4b94071 100755 --- a/thirdparty/fetch-thirdparty-deps-windows.sh +++ b/thirdparty/fetch-thirdparty-deps-windows.sh @@ -18,10 +18,10 @@ function get() } if [ ! -f SDL2.dll ]; then - echo "Fetching SDL2 from NuGet" - get sdl2.redist 2.0.3 - cp ./sdl2.redist/build/native/bin/Win32/dynamic/SDL2.dll . - rm -rf sdl2.redist + echo "Fetching SDL2 from libsdl.org" + wget https://www.libsdl.org/release/SDL2-2.0.4-win32-x86.zip + unzip SDL2-2.0.4-win32-x86.zip SDL2.dll + rm SDL2-2.0.4-win32-x86.zip fi if [ ! -f freetype6.dll ]; then diff --git a/thirdparty/fetch-thirdparty-deps.ps1 b/thirdparty/fetch-thirdparty-deps.ps1 index 0e4d8bfc3d..7d5b8a7b46 100644 --- a/thirdparty/fetch-thirdparty-deps.ps1 +++ b/thirdparty/fetch-thirdparty-deps.ps1 @@ -69,11 +69,13 @@ if (!(Test-Path "nunit.framework.dll")) if (!(Test-Path "windows/SDL2.dll")) { - echo "Fetching SDL2 from NuGet." - ./nuget.exe install sdl2 -Version 2.0.3 -ExcludeVersion - cp sdl2.redist/build/native/bin/Win32/dynamic/SDL2.dll ./windows/ - rmdir sdl2 -Recurse - rmdir sdl2.redist -Recurse + echo "Fetching SDL2 from libsdl.org" + $target = Join-Path $pwd.ToString() "SDL2-2.0.4-win32-x86.zip" + (New-Object System.Net.WebClient).DownloadFile("https://www.libsdl.org/release/SDL2-2.0.4-win32-x86.zip", $target) + $destination = Join-Path $pwd.ToString() "windows" + Add-Type -assembly "system.io.compression.filesystem" + [io.compression.zipfile]::ExtractToDirectory($target, $destination) + rm SDL2-2.0.4-win32-x86.zip } if (!(Test-Path "Mono.Nat.dll"))