Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Add apple signing in forge config

Hakan Shehu299a0abbef4a
diff --git a/apps/desktop/entitlements.mac.plist b/apps/desktop/entitlements.mac.plist
new file mode 100644
index 00000000..86c8ff42
--- /dev/null
+++ b/apps/desktop/entitlements.mac.plist
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.cs.allow-jit</key>
+ <true/>
+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
+ <true/>
+ <key>com.apple.security.cs.allow-dyld-environment-variables</key>
+ <true/>
+ <key>com.apple.security.app-sandbox</key>
+ <false/>
+</dict>
+</plist>
\ No newline at end of file
diff --git a/apps/desktop/forge.config.ts b/apps/desktop/forge.config.ts
index 51707efe..ee35d48e 100644
--- a/apps/desktop/forge.config.ts
+++ b/apps/desktop/forge.config.ts
@@ -49,6 +49,21 @@ const config: ForgeConfig = {
return true;
},
extraResource: ['assets'],
+ osxSign: {
+ identity: process.env.APPLE_SIGNING_IDENTITY!,
+ type: 'distribution',
+ optionsForFile: (_) => {
+ return {
+ hardenedRuntime: true,
+ entitlements: 'entitlements.mac.plist',
+ };
+ },
+ },
+ osxNotarize: {
+ appleId: process.env.APPLE_ID!,
+ appleIdPassword: process.env.APPLE_ID_PASSWORD!,
+ teamId: process.env.APPLE_TEAM_ID!,
+ },
},
rebuildConfig: {},
makers: [