Support different OSX SDK versions as LSMinimumSystemVersion

Also reduce the minimum SDK to 10.15 for the official build.
This commit is contained in:
Christian Hohnstaedt 2023-10-10 20:59:04 +02:00
parent 84b4c3b73a
commit 23a044f5ea
3 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,9 @@ cmake_host_system_information(RESULT OS_DATA_LIST QUERY
list(JOIN OS_DATA_LIST " -- " OS_DATA)
message(STATUS ${OS_DATA})
string(REGEX MATCH "([0-9]+\.[0-9]+\.[0-9]+)" OSX_SDK_MINIMUM
${CMAKE_OSX_DEPLOYMENT_TARGET} ".0.0.0")
include(GNUInstallDirs)
##### Git command to tweak the version and commit hash

View File

@ -29,7 +29,7 @@
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>@CMAKE_OSX_DEPLOYMENT_TARGET@.0.0</string>
<string>@OSX_SDK_MINIMUM@</string>
<key>ITSAppUsesNonExemptEncryption</key>
<string>no</string>
<key>CFBundleLocalizations</key>

View File

@ -71,7 +71,7 @@ BUILDDIR="$TOP_DIR/osx-release-dmg"
BUILDDIR_APPSTORE="$TOP_DIR/osx-release-appstore"
INSTALL_DIR="$TOP_DIR/install"
SDK="11"
SDK="10.15"
JOBS=7
cd $TOP_DIR