From bca36e9f9fc4815dbb8e1fde8514371ffa0d3c5e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 24 Oct 2020 23:18:23 +0200 Subject: [PATCH] Enable disable-library-validation entitlement to allow use of @executable_path --- platform/osx/make_dmg.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index 38ecff987..850a2a4f7 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -28,6 +28,17 @@ fi mkdir -p build/platform/osx cd build/platform/osx +cat < entitlements.plist + + + + + com.apple.security.cs.disable-library-validation + + + +EOF + function copy { case $TYPE in universal) @@ -292,7 +303,7 @@ function relink_absolute { } function sign { - codesign --deep --force --verify --verbose --options runtime --sign "Developer ID Application: Carl Hetherington (R82DXSR997)" "$1" + codesign --deep --force --verify --verbose --options runtime --entitlements entitlements.plist --sign "Developer ID Application: Carl Hetherington (R82DXSR997)" "$1" if [ "$?" != "0" ]; then echo "Failed to sign $1" exit 1 @@ -403,7 +414,7 @@ EOF xattr -c "$dmg" set -e - codesign --verify --verbose --options runtime --sign "Developer ID Application: Carl Hetherington (R82DXSR997)" "$dmg" + codesign --verify --verbose --options runtime --entitlements entitlements.plist --sign "Developer ID Application: Carl Hetherington (R82DXSR997)" "$dmg" set +e rm $tmp_dmg -- 2.30.2