Change the .config instead of relying on DYLD_LIBRARY_PATH to find SDL. Fixes #3992.

This commit is contained in:
Paul Chote
2013-10-26 09:48:10 +13:00
parent 5cb96a053a
commit 23eb28f24a

View File

@@ -21,6 +21,11 @@ cp -rv $2/* "OpenRA.app/Contents/Resources/" || exit 3
rm OpenRA.app/Contents/Resources/OpenRA.ico
rm OpenRA.app/Contents/Resources/OpenRA.Editor.exe
# Change the .config to use the packaged SDL
sed "s/\/Library\/Frameworks\/SDL.framework/./" OpenRA.app/Contents/Resources/Tao.Sdl.dll.config > temp
mv temp OpenRA.app/Contents/Resources/Tao.Sdl.dll.config
rm temp
# Package app bundle into a zip and clean up
zip OpenRA-$1 -r -9 OpenRA.app
mv OpenRA-$1.zip $3