Skip to content

Commit c9df526

Browse files
authored
fix: add proper entitlements (#151)
1 parent 6f42d83 commit c9df526

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

build/entitlements.mac.plist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<!--
6+
For forking the process (the shell does this for example)
7+
- https://www.electronjs.org/de/docs/latest/api/utility-process#utilityprocessforkmodulepath-args-options -->
8+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
9+
<true/>
10+
<key>com.apple.security.cs.disable-library-validation</key>
11+
<true/>
12+
13+
<!-- Enable JIT compilation for V8 -->
14+
<key>com.apple.security.cs.allow-jit</key>
15+
<true/>
16+
</dict>
17+
</plist>

forge.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ const notarizeConfig =
6565
const osxSignConfig = shouldSignMacApp
6666
? ({
6767
identity: appleCodesignIdentity!,
68+
optionsForFile: (_filePath) => {
69+
// Entitlements for all binaries/frameworks
70+
return {
71+
hardenedRuntime: true,
72+
entitlements: "build/entitlements.mac.plist",
73+
};
74+
},
6875
} satisfies Record<string, unknown>)
6976
: undefined;
7077

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "array",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Array - PostHog desktop task manager",
55
"main": ".vite/build/index.js",
66
"versionHash": "dynamic",

0 commit comments

Comments
 (0)