1
1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
551 B

#!/bin/bash
set -e
set -o pipefail
# This is here for building the windows binary
wget https://www.libsdl.org/release/SDL2-devel-2.0.12-mingw.tar.gz -O /tmp/sdl.tar.gz
mkdir -p /tmp/sdl-extract
# We want the library
tar -C /tmp/sdl-extract -xzf /tmp/sdl.tar.gz SDL2-2.0.12/x86_64-w64-mingw32/lib
# and the DLL
tar -C /tmp/sdl-extract -xzf /tmp/sdl.tar.gz SDL2-2.0.12/x86_64-w64-mingw32/bin/SDL2.dll
printf "copying...\n"
cp -r /tmp/sdl-extract/SDL2-2.0.12/x86_64-w64-mingw32/* .
mv bin/SDL2.dll .
rmdir bin
mv lib sdllib
printf "Success.\n"