From d9bca05c359676bfdd6835c8783ece58775558b4 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Sun, 31 Jan 2021 11:24:10 +0800 Subject: [PATCH] chore: add code sign for mac desktop app --- resources/entitlements.plist | 12 ++++++++++++ resources/forge.config.js | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 resources/entitlements.plist diff --git a/resources/entitlements.plist b/resources/entitlements.plist new file mode 100644 index 0000000000..8f574f5fbf --- /dev/null +++ b/resources/entitlements.plist @@ -0,0 +1,12 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.debugger + + + diff --git a/resources/forge.config.js b/resources/forge.config.js index 08cb882edf..921c98c257 100644 --- a/resources/forge.config.js +++ b/resources/forge.config.js @@ -2,7 +2,14 @@ const path = require('path') module.exports = { packagerConfig: { - icon: './icons/logseq_big_sur.icns' + icon: './icons/logseq_big_sur.icns', + osxSign: { + identity: 'Developer ID Application: Tiansheng Qin', + 'hardened-runtime': true, + entitlements: 'entitlements.plist', + 'entitlements-inherit': 'entitlements.plist', + 'signature-flags': 'library' + } }, makers: [