Files
OpenRA/thirdparty/fetch-thirdparty-deps-windows.sh
Matthias Mailänder b25184adca fetch Zlib from nuget
2015-01-18 07:35:54 +01:00

34 lines
992 B
Bash
Executable File

#!/bin/bash
# Die on any error for Travis CI to automatically retry:
set -e
if [ ! -f windows/SDL2.dll ]; then
echo "Fetching SDL2 from nuget"
nuget install sdl2 -Version 2.0.3
cp ./sdl2.redist.2.0.3/build/native/bin/Win32/dynamic/SDL2.dll ./windows/
rm -rf sdl2.2.0.3 sdl2.redist.2.0.3
fi
if [ ! -f windows/freetype6.dll ]; then
echo "Fetching SharpFont from nuget"
nuget install SharpFont -Version 2.5.0.1
cp ./SharpFont.2.5.0.1/Content/freetype6.dll ./windows/
rm -rf SharpFont.2.5.0.1
fi
if [ ! -f windows/lua51.dll ]; then
echo "Fetching Lua 5.1 from nuget"
nuget install lua51.redist -Version 5.1.5
cp ./lua51.redist.5.1.5/build/native/bin/Win32/v120/Release/lua5.1.dll ./windows/lua51.dll
rm -rf lua51.redist.5.1.5
fi
if [ ! -f windows/zlib1.dll ]; then
echo "Fetching ZLib from nuget"
nuget install zlib.redist -Version 1.2.8.7
cp ./zlib.redist.1.2.8.7/build/native/bin/v120/Win32/Release/dynamic/stdcall/zlib.dll windows/zlib1.dll
rm -rf zlib.redist.1.2.8.7
fi