X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=misc%2Fbuildfiles%2Fosx%2FXonotic-SDL.app%2FContents%2FMacOS%2Fxonotic-osx-sdl;fp=misc%2Fbuildfiles%2Fosx%2FXonotic-SDL.app%2FContents%2FMacOS%2Fxonotic-osx-sdl;h=6a204f0e667af26af79051eedd2b294a438a7c90;hb=5766d4c05a54d6def81de079cfa6fa352bfe9a25;hp=0620633f4145421bb671585497ec610bfa0ba899;hpb=f9b0f5a1684384801520ec3ea1fa8c5e4ed111ae;p=xonotic%2Fxonotic.git diff --git a/misc/buildfiles/osx/Xonotic-SDL.app/Contents/MacOS/xonotic-osx-sdl b/misc/buildfiles/osx/Xonotic-SDL.app/Contents/MacOS/xonotic-osx-sdl index 0620633f..6a204f0e 100755 --- a/misc/buildfiles/osx/Xonotic-SDL.app/Contents/MacOS/xonotic-osx-sdl +++ b/misc/buildfiles/osx/Xonotic-SDL.app/Contents/MacOS/xonotic-osx-sdl @@ -3,4 +3,16 @@ export DYLD_LIBRARY_PATH="${0%/*}" # same dir as the executable -exec "$0"-bin "$@" -notexturenonpoweroftwo +set -- "$0"-bin "$@" -notexturenonpoweroftwo + +case "`sw_vers -productVersion`" in + # shell pattern for "10.6 and higher" + 10.[6-9]*|10.[1-5][0-9]*|1[1-9]*|[2-9]*) + # no workaround needed on 10.6+ + exec "$@" + ;; + *) + # need to force a 32bit arch on 10.5 and below + exec arch -arch i386 -arch ppc "$@" + ;; +esac