shithub: psxe

ref: 41fb845c7cc25d7508851aeced8114fd8c0f4c8d
dir: /build-deps.ps1/

View raw version
if (Test-Path "SDL2-2.26.5") {
    Remove-Item -Recurse "SDL2-2.26.5"
}

$SDL2_URL = "https://github.com/libsdl-org/SDL/releases/download/release-2.26.5/SDL2-devel-2.26.5-mingw.zip"
$WIN32_URL = "https://github.com/libsdl-org/SDL/releases/download/release-2.26.5/SDL2-2.26.5-win32-x86.zip"
$WIN64_URL = "https://github.com/libsdl-org/SDL/releases/download/release-2.26.5/SDL2-2.26.5-win32-x64.zip"

Invoke-WebRequest -URI $SDL2_URL -OutFile "sdl2.zip"
Expand-Archive "sdl2.zip" -DestinationPath "." -Force

Invoke-WebRequest -URI $WIN32_URL -OutFile "sdl2-win32.zip"
Expand-Archive "sdl2-win32.zip" -DestinationPath "sdl2-win32" -Force

Invoke-WebRequest -URI $WIN64_URL -OutFile "sdl2-win64.zip"
Expand-Archive "sdl2-win64.zip" -DestinationPath "sdl2-win64" -Force

Remove-Item "sdl2.zip"
Remove-Item "sdl2-win32.zip"
Remove-Item "sdl2-win64.zip"