From c2daabc010e268bd36115e854d032b0753f09830 Mon Sep 17 00:00:00 2001 From: yeah-its-gloria <32610623+yeah-its-gloria@users.noreply.github.com> Date: Sat, 18 May 2024 15:28:59 -0400 Subject: [PATCH] Fix: Add entitlements needed for plugins on macOS Fixes social plugin loading on macOS, particularly for Steam. --- cmake/PackageBundle.cmake | 1 + os/macosx/openttd.entitlements | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 os/macosx/openttd.entitlements diff --git a/cmake/PackageBundle.cmake b/cmake/PackageBundle.cmake index 737f4809aa..e737c02005 100644 --- a/cmake/PackageBundle.cmake +++ b/cmake/PackageBundle.cmake @@ -4,6 +4,7 @@ set(CPACK_BUNDLE_NAME "OpenTTD") set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/os/macosx/openttd.icns") set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_BINARY_DIR}/Info.plist") set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/os/macosx/splash.png") +set(CPACK_BUNDLE_APPLE_ENTITLEMENTS "${CMAKE_SOURCE_DIR}/os/macosx/openttd.entitlements") set(CPACK_DMG_FORMAT "UDBZ") # Create a temporary Info.plist.in, where we will fill in the version via diff --git a/os/macosx/openttd.entitlements b/os/macosx/openttd.entitlements new file mode 100644 index 0000000000..47c24e0756 --- /dev/null +++ b/os/macosx/openttd.entitlements @@ -0,0 +1,11 @@ + + + + + + com.apple.security.cs.allow-dyld-environment-variables + + com.apple.security.cs.disable-library-validation + + +