From cad320b4e081c75d09d92322260dfcd49f4207e3 Mon Sep 17 00:00:00 2001 From: zzoro Date: Mon, 16 Nov 2020 04:40:41 -0500 Subject: [PATCH] Add app entitlements + codesign script Because I managed to leave them untracked in the last commit. --- macos/codesign.sh | 8 ++++++++ macos/entitlements.plist | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 macos/codesign.sh create mode 100644 macos/entitlements.plist diff --git a/macos/codesign.sh b/macos/codesign.sh new file mode 100755 index 00000000..ecf52b19 --- /dev/null +++ b/macos/codesign.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +IDENTITY="$1" +if [[ $IDENTITY == "" ]]; then + IDENTITY=- +fi + + codesign -vfs $IDENTITY --entitlements "${MESON_SOURCE_ROOT}/macos/entitlements.plist" --deep -o runtime "${MESON_INSTALL_PREFIX}" \ No newline at end of file diff --git a/macos/entitlements.plist b/macos/entitlements.plist new file mode 100644 index 00000000..2b052af1 --- /dev/null +++ b/macos/entitlements.plist @@ -0,0 +1,26 @@ + + + + + + com.apple.security.app-sandbox + + + com.apple.security.network.client + + com.apple.security.network.server + + com.apple.security.files.user-selected.read-write + + com.apple.security.files.downloads.read-write + + com.apple.security.assets.pictures.read-write + + com.apple.security.cs.disable-library-validation + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.allow-jit + + + \ No newline at end of file