Files
OpenRA/thirdparty/fetch-thirdparty-deps-windows.sh
Matthias Mailänder 0f309c31be downgrade FreeType2 version to old msvcrt.dll dependency
also downgrade ZLib dependency to old VC runtime versions
2015-03-07 14:04:36 +01:00

45 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# Die on any error for Travis CI to automatically retry:
set -e
if [ ! -d windows ]; then
mkdir windows
fi
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 FreeType2 from nuget"
nuget install freetype2.redist -Version 2.4.11.3
cp ./freetype2.redist.2.4.11.3/bin/win32/zlib1.dll ./windows/
cp ./freetype2.redist.2.4.11.3/bin/win32/freetype6.dll ./windows/
rm -rf freetype2.redist.2.4.11.3
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 freetype2.redist -Version 2.4.11.3
cp ./freetype2.redist.2.4.11.3/bin/win32/zlib1.dll ./windows/
rm -rf freetype2.redist.2.4.11.3
fi
if [ ! -f windows/soft_oal.dll ]; then
echo "Fetching OpenAL Soft from nuget"
nuget install OpenAL-Soft -Version 1.16.0
cp ./OpenAL-Soft.1.16.0/bin/Win32/soft_oal.dll windows/soft_oal.dll
rm -rf OpenAL-Soft.1.16.0
fi