diff --git a/apps/desktop/resources/entitlements.mac.plist b/apps/desktop/resources/entitlements.mac.plist new file mode 100644 index 00000000000..19dea8d8487 --- /dev/null +++ b/apps/desktop/resources/entitlements.mac.plist @@ -0,0 +1,14 @@ + + + + + com.apple.security.automation.apple-events + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.disable-library-validation + + + diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index 104cbef20c1..81615cad23d 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -593,6 +593,12 @@ const createBuildConfig = Effect.fn("createBuildConfig")(function* ( target: target === "dmg" ? [target, "zip"] : [target], icon: "icon.icns", category: "public.app-category.developer-tools", + entitlements: "apps/desktop/resources/entitlements.mac.plist", + entitlementsInherit: "apps/desktop/resources/entitlements.mac.plist", + extendInfo: { + NSAppleEventsUsageDescription: + "T3 Code needs Automation access so Codex Computer Use can inspect and control apps you explicitly ask it to use.", + }, }; }