From bf19540f8dbbfd4e8d8b6ac10661a2e483d2717b Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 12 May 2024 23:10:43 +0200 Subject: [PATCH] Set LSMinimumSystemVersion from MACOSX_DEPLOYMENT_TARGET Fixes #1436 --- dist/CMakeLists.txt | 5 +++++ dist/macos/Info.plist.in | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dist/CMakeLists.txt b/dist/CMakeLists.txt index 55c99341a..88b457067 100644 --- a/dist/CMakeLists.txt +++ b/dist/CMakeLists.txt @@ -4,6 +4,11 @@ if(RPM_DISTRO AND RPM_DATE) endif(RPM_DISTRO AND RPM_DATE) if(APPLE) + if(DEFINED ENV{MACOSX_DEPLOYMENT_TARGET}) + set(LSMinimumSystemVersion $ENV{MACOSX_DEPLOYMENT_TARGET}) + else() + set(LSMinimumSystemVersion 11.0) + endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/macos/Info.plist.in ${CMAKE_CURRENT_SOURCE_DIR}/macos/Info.plist) endif(APPLE) diff --git a/dist/macos/Info.plist.in b/dist/macos/Info.plist.in index 9b3142ef1..5fd0ef089 100644 --- a/dist/macos/Info.plist.in +++ b/dist/macos/Info.plist.in @@ -33,7 +33,7 @@ LSApplicationCategoryType public.app-category.music LSMinimumSystemVersion - 11.0 + @LSMinimumSystemVersion@ SUFeedURL https://www.strawberrymusicplayer.org/sparkle-macos SUPublicEDKey