From 23a044f5ea92019641dd9e18394721f45afc8b21 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Tue, 10 Oct 2023 20:59:04 +0200 Subject: [PATCH] Support different OSX SDK versions as LSMinimumSystemVersion Also reduce the minimum SDK to 10.15 for the official build. --- CMakeLists.txt | 3 +++ misc/Info.plist.in | 2 +- release/build-mac.sh | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 287a936a..9681d401 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/misc/Info.plist.in b/misc/Info.plist.in index 56b80a76..2554282d 100644 --- a/misc/Info.plist.in +++ b/misc/Info.plist.in @@ -29,7 +29,7 @@ LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion - @CMAKE_OSX_DEPLOYMENT_TARGET@.0.0 + @OSX_SDK_MINIMUM@ ITSAppUsesNonExemptEncryption no CFBundleLocalizations diff --git a/release/build-mac.sh b/release/build-mac.sh index 52fc165c..8726ec1e 100755 --- a/release/build-mac.sh +++ b/release/build-mac.sh @@ -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