Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

fix(macos): sign release builds with the microphone entitlement

leepokai3a879a7402d6
diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml
index cb5eca20..1fb917a2 100644
--- a/.github/workflows/release-macos.yml
+++ b/.github/workflows/release-macos.yml
@@ -80,8 +80,13 @@ jobs:
# Preserve the framework helpers' sandbox entitlements while resigning.
find "$APP_PATH" -type f -name Autoupdate -print0 | while IFS= read -r -d '' f; do sign "$f"; done
sign "$APP_PATH/Contents/MacOS/codync-host"
- find "$APP_PATH" -depth \( -name '*.xpc' -o -name '*.app' -o -name '*.framework' \) -print0 |
+ find "$APP_PATH" -mindepth 1 -depth \( -name '*.xpc' -o -name '*.app' -o -name '*.framework' \) -print0 |
while IFS= read -r -d '' f; do sign "$f"; done
+ # The build ran unsigned, so there are no entitlements to preserve: pass the app's own.
+ codesign --force --options runtime --timestamp --entitlements apps/macos/Resources/macOS.entitlements \
+ --sign "Developer ID Application" "$APP_PATH"
+ codesign -d --entitlements - "$APP_PATH" | grep -q com.apple.security.device.audio-input ||
+ { echo "audio-input entitlement missing"; exit 1; }
codesign --verify --deep --strict --verbose=2 "$APP_PATH"
cp -R "$APP_PATH" "$RUNNER_TEMP/Codync.app"
diff --git a/apps/macos/Resources/macOS.entitlements b/apps/macos/Resources/macOS.entitlements
new file mode 100644
index 00000000..d6f09afc
--- /dev/null
+++ b/apps/macos/Resources/macOS.entitlements
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyLists-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.device.audio-input</key>
+ <true/>
+</dict>
+</plist>
diff --git a/apps/project.yml b/apps/project.yml
index 632b8012..dc910240 100644
--- a/apps/project.yml
+++ b/apps/project.yml
@@ -23,7 +23,7 @@ packages:
exactVersion: 153.0.0
settings:
base:
- MARKETING_VERSION: 2.6.1
+ MARKETING_VERSION: 2.6.2
CURRENT_PROJECT_VERSION: 24
SWIFT_VERSION: "6.0"
SWIFT_STRICT_CONCURRENCY: complete
@@ -83,8 +83,9 @@ targets:
INFOPLIST_KEY_NSMicrophoneUsageDescription: Talk to your bots in a voice call.
INFOPLIST_KEY_NSSpeechRecognitionUsageDescription: Your words are transcribed on this Mac and sent to your bot as a message.
ENABLE_HARDENED_RUNTIME: YES
- # Voice calls: the hardened runtime blocks the microphone without this entitlement.
- ENABLE_RESOURCE_ACCESS_AUDIO_INPUT: YES
+ # Voice calls: the hardened runtime blocks the microphone without audio-input.
+ # A file, not ENABLE_RESOURCE_ACCESS_AUDIO_INPUT, so the release re-sign can pass it too.
+ CODE_SIGN_ENTITLEMENTS: macos/Resources/macOS.entitlements
ENABLE_APP_SANDBOX: NO
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
# Black / white instead of the system blue wherever macOS draws the app's accent.