From a040985af0e31f9a76d4473dad27f281361e0cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 24 Apr 2023 10:50:30 +0200 Subject: [PATCH] macOS: Add new macOS directory, and an Entitlements.plist file. Part of notarization work. --- SDL/macbundle.sh | 2 +- macOS/Entitlements.plist | 12 ++++++++++++ macOS/README.md | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 macOS/Entitlements.plist create mode 100644 macOS/README.md diff --git a/SDL/macbundle.sh b/SDL/macbundle.sh index 29de754e70..d54a0517ae 100755 --- a/SDL/macbundle.sh +++ b/SDL/macbundle.sh @@ -38,7 +38,7 @@ elif [ "$(otool -L "${PPSSPPSDL}" | grep @rpath/SDL)" != "" ]; then fi GIT_VERSION_LINE=$(grep "PPSSPP_GIT_VERSION = " "$(dirname "${0}")/../git-version.cpp") -echo "Setting version to ${GIT_VERSION_LINE}..." +echo "Setting version to '${GIT_VERSION_LINE}'..." SHORT_VERSION_MATCH='.*"v([0-9\.]+(-[0-9]+)?).*";' LONG_VERSION_MATCH='.*"v(.*)";' if [[ "${GIT_VERSION_LINE}" =~ ^${SHORT_VERSION_MATCH}$ ]]; then diff --git a/macOS/Entitlements.plist b/macOS/Entitlements.plist new file mode 100644 index 0000000000..68fea254f3 --- /dev/null +++ b/macOS/Entitlements.plist @@ -0,0 +1,12 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.disable-executable-page-protection + + + diff --git a/macOS/README.md b/macOS/README.md new file mode 100644 index 0000000000..3ca4fa3df0 --- /dev/null +++ b/macOS/README.md @@ -0,0 +1,3 @@ +Entitlements.plist is to be used for code signing on macOS. + +We enable "hardened runtime" in order to make notarization happy, but we need some exceptions.