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.
This commit is contained in:
Zack Middleton 2017-09-14 16:49:30 -05:00
parent 0a599268bb
commit c04cf19b77
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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}