(macOS) Changed the minimum required OS version from 10.14 'Mojave' to 10.15 'Catalina'

Also completely removed support for the legacy OS build
This commit is contained in:
Leon Styhre 2023-07-29 16:08:40 +02:00
parent f7c6fc1fbb
commit 772f2dea90
5 changed files with 6 additions and 37 deletions

View file

@ -12,7 +12,7 @@ cmake_minimum_required(VERSION 3.13)
if(APPLE) if(APPLE)
# Set this to the minimum supported macOS version, and also update # Set this to the minimum supported macOS version, and also update
# es-app/assets/EmulationStation-DE_Info.plist accordingly. # es-app/assets/EmulationStation-DE_Info.plist accordingly.
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14 CACHE STRING "macOS deployment target") set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE STRING "macOS deployment target")
# This optional variable is used for code signing the DMG installer. # This optional variable is used for code signing the DMG installer.
set(MACOS_CODESIGN_IDENTITY "" CACHE STRING "macOS code signing certificate identity") set(MACOS_CODESIGN_IDENTITY "" CACHE STRING "macOS code signing certificate identity")
endif() endif()
@ -272,10 +272,6 @@ if(APPLE)
if(MACOS_CODESIGN_IDENTITY) if(MACOS_CODESIGN_IDENTITY)
message("-- Code signing certificate identity: " ${MACOS_CODESIGN_IDENTITY}) message("-- Code signing certificate identity: " ${MACOS_CODESIGN_IDENTITY})
endif() endif()
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.14)
set(BUNDLED_CERTS ON)
message("-- macOS version 10.13 or lower has been set, so if code signing is enabled, Hardened Runtime will not be used")
endif()
endif() endif()
if(WIN32) if(WIN32)
@ -377,10 +373,6 @@ if(APPLE)
endif() endif()
endif() endif()
if(APPLE AND CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.14)
add_compile_definitions(LEGACY_MACOS)
endif()
# Affects the application updater and is used for displaying version info in the main menu. # Affects the application updater and is used for displaying version info in the main menu.
if(ES_VERSION MATCHES alpha OR ES_VERSION MATCHES beta OR ES_VERSION MATCHES dev) if(ES_VERSION MATCHES alpha OR ES_VERSION MATCHES beta OR ES_VERSION MATCHES dev)
add_compile_definitions(IS_PRERELEASE) add_compile_definitions(IS_PRERELEASE)

View file

@ -378,13 +378,8 @@ endif()
# Settings per operating system and generator type. # Settings per operating system and generator type.
if(APPLE) if(APPLE)
set(CPACK_GENERATOR Bundle) set(CPACK_GENERATOR Bundle)
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.14) set(CPACK_PACKAGE_FILE_NAME EmulationStation-DE-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE})
set(CPACK_PACKAGE_FILE_NAME EmulationStation-DE-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE}_legacy) set(CPACK_DMG_VOLUME_NAME "EmulationStation Desktop Edition ${CPACK_PACKAGE_VERSION}")
set(CPACK_DMG_VOLUME_NAME "EmulationStation Desktop Edition ${CPACK_PACKAGE_VERSION}_legacy")
else()
set(CPACK_PACKAGE_FILE_NAME EmulationStation-DE-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE})
set(CPACK_DMG_VOLUME_NAME "EmulationStation Desktop Edition ${CPACK_PACKAGE_VERSION}")
endif()
set(CPACK_PACKAGE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE.icns) set(CPACK_PACKAGE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE.icns)
set(CPACK_DMG_DS_STORE ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_DS_Store) set(CPACK_DMG_DS_STORE ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_DS_Store)
set(CPACK_BUNDLE_NAME "EmulationStation Desktop Edition") set(CPACK_BUNDLE_NAME "EmulationStation Desktop Edition")
@ -392,9 +387,7 @@ if(APPLE)
set(CPACK_BUNDLE_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_Info.plist) set(CPACK_BUNDLE_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_Info.plist)
if(MACOS_CODESIGN_IDENTITY) if(MACOS_CODESIGN_IDENTITY)
set(CPACK_BUNDLE_APPLE_CERT_APP "Developer ID Application: ${MACOS_CODESIGN_IDENTITY}") set(CPACK_BUNDLE_APPLE_CERT_APP "Developer ID Application: ${MACOS_CODESIGN_IDENTITY}")
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER 10.13) set(CPACK_BUNDLE_APPLE_CODESIGN_PARAMETER "--deep --force --options runtime")
set(CPACK_BUNDLE_APPLE_CODESIGN_PARAMETER "--deep --force --options runtime")
endif()
endif() endif()
elseif(WIN32) elseif(WIN32)
set(CPACK_GENERATOR NSIS) set(CPACK_GENERATOR NSIS)

View file

@ -29,7 +29,7 @@
<key>LSApplicationCategoryType</key> <key>LSApplicationCategoryType</key>
<string>public.app-category.games</string> <string>public.app-category.games</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>10.14.0</string> <string>10.15.0</string>
<key>LSUIPresentationMode</key> <key>LSUIPresentationMode</key>
<integer>3</integer> <integer>3</integer>
<key>NSHighResolutionCapable</key> <key>NSHighResolutionCapable</key>

View file

@ -135,21 +135,6 @@ public:
template <typename T> const T get(const std::string& prop) const template <typename T> const T get(const std::string& prop) const
{ {
#if defined(LEGACY_MACOS)
if (std::is_same<T, glm::vec2>::value)
return *(const T*)&properties.at(prop).v;
else if (std::is_same<T, std::string>::value)
return *(const T*)&properties.at(prop).s;
else if (std::is_same<T, unsigned int>::value)
return *(const T*)&properties.at(prop).i;
else if (std::is_same<T, float>::value)
return *(const T*)&properties.at(prop).f;
else if (std::is_same<T, bool>::value)
return *(const T*)&properties.at(prop).b;
else if (std::is_same<T, glm::vec4>::value)
return *(const T*)&properties.at(prop).r;
return T();
#else
if (std::is_same<T, glm::vec2>::value) if (std::is_same<T, glm::vec2>::value)
return std::any_cast<const T>(properties.at(prop).v); return std::any_cast<const T>(properties.at(prop).v);
else if (std::is_same<T, std::string>::value) else if (std::is_same<T, std::string>::value)
@ -163,7 +148,6 @@ public:
else if (std::is_same<T, glm::vec4>::value) else if (std::is_same<T, glm::vec4>::value)
return std::any_cast<const T>(properties.at(prop).r); return std::any_cast<const T>(properties.at(prop).r);
return T(); return T();
#endif
} }
bool has(const std::string& prop) const bool has(const std::string& prop) const

View file

@ -12,7 +12,7 @@
# This script needs to run from the root of the repository. # This script needs to run from the root of the repository.
# #
export MACOSX_DEPLOYMENT_TARGET=10.14 export MACOSX_DEPLOYMENT_TARGET=10.15
# How many CPU threads to use for the compilation. # How many CPU threads to use for the compilation.
JOBS=4 JOBS=4