Fix dist-osx packaging

This commit is contained in:
pchote
2010-02-20 21:41:19 +13:00
parent 7477f209aa
commit 5b810721cb

View File

@@ -8,10 +8,6 @@
# TODO: This will be significantly shorter once we move the ra files into its mod dir
GAME_FILES="OpenRA shaders mods maps packaging/osx/settings.ini FreeSans.ttf FreeSansBold.ttf"
# List of system files to copy into the app bundle
# TODO: Sort out whats going on with libglfw so we don't need to do this
SYSTEM_FILES=libglfw.dylib
# Force 32-bit build and set the pkg-config path for mono.pc
export AS="as -arch i386"
export CC="gcc -arch i386"
@@ -21,8 +17,8 @@ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/Mono.framework/Versi
mkbundle --deps --static -z -o openra_server OpenRA.Server.exe OpenRa.FileFormats.dll
# Package the game binary
mkbundle --deps --static -z -o OpenRA OpenRa.Game.exe OpenRa.FileFormats.dll thirdparty/Tao/Tao.Glfw.dll thirdparty/Tao/Tao.Cg.dll thirdparty/Tao/Tao.OpenGl.dll thirdparty/Tao/Tao.OpenAl.dll OpenRa.Gl.dll
mkbundle --deps --static -z -o OpenRA OpenRa.Game.exe OpenRa.FileFormats.dll thirdparty/Tao/Tao.Cg.dll thirdparty/Tao/Tao.OpenGl.dll thirdparty/Tao/Tao.OpenAl.dll thirdparty/Tao/Tao.FreeType.dll thirdparty/Tao/Tao.Sdl.dll thirdparty/Tao.Externals.dll thirdparty/ISE.FreeType.dll OpenRa.Gl.dll
# Copy everything into our game bundle template
cp -R packaging/osx/OpenRA.app .
cp -R $GAME_FILES $SYSTEM_FILES OpenRA.app/Contents/Resources/
cp -R $GAME_FILES OpenRA.app/Contents/Resources/