From 682986d9b9a569e8a11a183ea3b8d97fe4cf1098 Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Thu, 1 Dec 2022 03:30:42 -0700 Subject: [PATCH] fix: add entitlements Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> --- macos/App.entitlements | 10 ++++++++++ macos/build.sh | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 macos/App.entitlements diff --git a/macos/App.entitlements b/macos/App.entitlements new file mode 100644 index 00000000..40dc976a --- /dev/null +++ b/macos/App.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.cs.disable-library-validation + + com.apple.security.cs.allow-dyld-environment-variables + + + \ No newline at end of file diff --git a/macos/build.sh b/macos/build.sh index 328c8820..79acc276 100755 --- a/macos/build.sh +++ b/macos/build.sh @@ -88,6 +88,8 @@ EOF # make executable chmod a+x novelWriter.app/Contents/MacOS/novelWriter +sudo codesign --sign - --deep --force --entitlements "$SCRIPT_DIR/../macos/App.entitlements" --options runtime "novelWriter.app/Contents/MacOS/novelWriter" + # remove bloat pushd novelWriter.app/Contents/Resources || exit 1 @@ -111,7 +113,10 @@ rm lib/python3.*/site-packages/PyQt5/Qt/lib/libQt5WebEngine* || true popd || exit 1 popd || exit 1 -echo "Packageing App" +echo "Packageing App ..." + + + # generate .dmg brew install create-dmg