From 52254537b755b709af584f34e2d10cae33a7e34c Mon Sep 17 00:00:00 2001
From: shinra-electric <50119606+shinra-electric@users.noreply.github.com>
Date: Mon, 20 Nov 2023 13:07:46 +0100
Subject: [PATCH] Set macOS minimum version to macOS 11 Big Sur (#7196)
* Add minimum OS version to Info.plist
Add minimum OS version key to info.plist using a MACOSX_MINIMUM_SYSTEM_VERSION var, which can be set in CMakeLists.txt
* Set minumum OS to macOS 11 in CMakeLists.txt
Set the MACOSX_MINIMUM_SYSTEM_VERSION to macOS 11 Big Sur, which I believe is the current minimum version
* Use deployment target value rather than string
Uses CMAKE_OSX_DEPLOYMENT_TARGET instead of a hardcoded string to set the minimum OS
* Use deployment target global variable in Info.plist.in
Using MACOSX_BUNDLE_MINIMUM_SYSTEM_VERSION does not work, as CMake leaves it blank
* Update Qt CMakeLists.txt
Don't set MACOSX_MINIMUM_SYSTEM_VERSION as CMake leaves this blank
---
dist/apple/Info.plist.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dist/apple/Info.plist.in b/dist/apple/Info.plist.in
index 7eb5809257..684c7e722f 100644
--- a/dist/apple/Info.plist.in
+++ b/dist/apple/Info.plist.in
@@ -21,6 +21,8 @@
${MACOSX_BUNDLE_INFO_STRING}
NSHumanReadableCopyright
${MACOSX_BUNDLE_COPYRIGHT}
+ LSMinimumSystemVersion
+ ${CMAKE_OSX_DEPLOYMENT_TARGET}
LSApplicationCategoryType
public.app-category.games