diff --git a/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA b/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA index 16d958c0a5..7c6567519d 100755 --- a/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA +++ b/packaging/osx/OpenRA.app/Contents/MacOS/OpenRA @@ -5,4 +5,9 @@ APP_PATH=`echo $0 | awk '{split($0,patharr,"/"); idx=1; while(patharr[idx+3] != "") { if (patharr[idx] != "/") {printf("%s/", patharr[idx]); idx++ }} }'` cd "$APP_PATH/Contents/Resources" + +if [ ! -e mods/ra/packages/redalert.mix ]; then +osascript install_ra_mix.scpt +else ./OpenRA +fi \ No newline at end of file diff --git a/packaging/osx/OpenRA.app/Contents/Resources/install_ra_mix.scpt b/packaging/osx/OpenRA.app/Contents/Resources/install_ra_mix.scpt new file mode 100644 index 0000000000..af57a2124a Binary files /dev/null and b/packaging/osx/OpenRA.app/Contents/Resources/install_ra_mix.scpt differ diff --git a/packaging/osx/package.sh b/packaging/osx/package.sh index 8355b256df..6e1a7f2737 100755 --- a/packaging/osx/package.sh +++ b/packaging/osx/package.sh @@ -31,7 +31,7 @@ function patch_mono { # Force 32-bit build and set the pkg-config path for mono.pc export AS="as -arch i386" -export CC="gcc -arch i386" +export CC="gcc -arch i386 -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk" export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig/ # Package the server binary