From c04cf19b77db5f95ffa633e77f8aa281edc92814 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 14 Sep 2017 16:49:30 -0500 Subject: [PATCH] Fix minimum macOS version not being set in AppBundle Info.plist make-macosx-app.sh reads MACOSX_DEPLOYMENT_TARGET variable but it wasn't ever set. --- make-macosx-ub.sh | 1 + make-macosx.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/make-macosx-ub.sh b/make-macosx-ub.sh index 6702ea94..f359824a 100755 --- a/make-macosx-ub.sh +++ b/make-macosx-ub.sh @@ -88,4 +88,5 @@ echo;echo echo # use the following shell script to build a universal application bundle +export MACOSX_DEPLOYMENT_TARGET="10.5" "./make-macosx-app.sh" release diff --git a/make-macosx.sh b/make-macosx.sh index 91fecf19..387fe640 100755 --- a/make-macosx.sh +++ b/make-macosx.sh @@ -47,6 +47,8 @@ if [ -d /Developer/SDKs/MacOSX10.5.sdk ]; then ARCH_SDK=/Developer/SDKs/MacOSX10.5.sdk ARCH_CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk" ARCH_MACOSX_VERSION_MIN="10.5" +else + ARCH_MACOSX_VERSION_MIN="10.7" fi @@ -68,4 +70,5 @@ NCPU=`sysctl -n hw.ncpu` (ARCH=${BUILDARCH} CFLAGS=$ARCH_CFLAGS MACOSX_VERSION_MIN=$ARCH_MACOSX_VERSION_MIN make -j$NCPU) || exit 1; # use the following shell script to build an application bundle +export MACOSX_DEPLOYMENT_TARGET="${ARCH_MACOSX_VERSION_MIN}" "./make-macosx-app.sh" release ${BUILDARCH}