Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Prepare notarized release: signing config, entitlements, release script

Louis Raille0a272d2a8477
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 81fe0df4..f44753be 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,12 +1,14 @@
-name: Release
+name: Release (build check)
on:
push:
tags:
- 'v*'
+# Notarization is done locally with scripts/release.sh.
+# This workflow only verifies the build compiles on a clean machine.
jobs:
- release:
+ build-check:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
@@ -17,7 +19,7 @@ jobs:
- name: Generate project
run: cd NotchBuddy && xcodegen
- - name: Build Release
+ - name: Build Release (no signing)
run: |
xcodebuild \
-project NotchBuddy/NotchBuddy.xcodeproj \
@@ -25,29 +27,4 @@ jobs:
-configuration Release \
build \
CODE_SIGNING_ALLOWED=NO \
- CODE_SIGNING_REQUIRED=NO \
- CONFIGURATION_BUILD_DIR=${{ github.workspace }}/build
-
- - name: Sign ad hoc
- run: codesign --force --deep -s - "${{ github.workspace }}/build/Coucou.app"
-
- - name: Zip
- run: |
- ditto -c -k --keepParent \
- "${{ github.workspace }}/build/Coucou.app" \
- "${{ github.workspace }}/Coucou.zip"
-
- - name: Publish release
- uses: softprops/action-gh-release@v2
- with:
- files: Coucou.zip
- generate_release_notes: false
- body: |
- ## First launch
-
- macOS will say it can't verify Coucou (it's a free side project, not notarized).
-
- Either open **System Settings → Privacy & Security** and click **Open Anyway**, or run once in Terminal:
- ```
- xattr -dr com.apple.quarantine /Applications/Coucou.app
- ```
+ CODE_SIGNING_REQUIRED=NO
diff --git a/NotchBuddy/Resources/Coucou.entitlements b/NotchBuddy/Resources/Coucou.entitlements
new file mode 100644
index 00000000..cffd6379
--- /dev/null
+++ b/NotchBuddy/Resources/Coucou.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/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>com.apple.security.automation.apple-events</key>
+ <true/>
+</dict>
+</plist>
diff --git a/NotchBuddy/project.yml b/NotchBuddy/project.yml
index c03dc0ff..78dba786 100644
--- a/NotchBuddy/project.yml
+++ b/NotchBuddy/project.yml
@@ -11,9 +11,18 @@ settings:
SWIFT_VERSION: "6.0"
ENABLE_HARDENED_RUNTIME: YES
CODE_SIGN_STYLE: Manual
- CODE_SIGNING_REQUIRED: NO
- CODE_SIGNING_ALLOWED: NO
OTHER_SWIFT_FLAGS: "-strict-concurrency=complete"
+ configs:
+ Debug:
+ CODE_SIGNING_REQUIRED: NO
+ CODE_SIGNING_ALLOWED: NO
+ Release:
+ CODE_SIGNING_REQUIRED: YES
+ CODE_SIGNING_ALLOWED: YES
+ CODE_SIGN_IDENTITY: "Developer ID Application"
+ DEVELOPMENT_TEAM: YOUR_TEAM_ID
+ OTHER_CODE_SIGN_FLAGS: "--timestamp"
+ CODE_SIGN_ENTITLEMENTS: Resources/Coucou.entitlements
targets:
NotchBuddy:
diff --git a/README.md b/README.md
index 121f4779..d7512144 100644
--- a/README.md
+++ b/README.md
@@ -57,9 +57,7 @@ Meet **Mochi**: a soft little squircle with big eyes that pops out of your notch
1. Grab the latest `Coucou.zip` from [Releases](https://github.com/Louis-CFM/coucou/releases).
2. Unzip and move **Coucou.app** to `/Applications`.
-3. First launch: Coucou isn't notarized by Apple (it's a free side project), so macOS will say it can't verify it. Either:
- - open **System Settings → Privacy & Security**, scroll down and click **Open Anyway**, or
- - run once in Terminal: `xattr -dr com.apple.quarantine /Applications/Coucou.app`
+3. Launch — no extra steps needed.
### Build from source
diff --git a/docs/support.html b/docs/support.html
index fac4a33c..7c9fba7a 100644
--- a/docs/support.html
+++ b/docs/support.html
@@ -11,8 +11,8 @@
<b>Email:</b> <a href="mailto:[email protected]">[email protected]</a>
</div>
<h2>FAQ</h2>
-<h3>macOS says it can’t verify the app (GitHub download)</h3>
-<p>Open System Settings → Privacy &amp; Security, scroll down and click <b>Open Anyway</b>. Or run once: <code>xattr -dr com.apple.quarantine /Applications/Coucou.app</code>. The App Store version doesn’t have this step.</p>
+<h3>macOS says it can’t verify the app</h3>
+<p>Download the latest release from GitHub — it’s notarized by Apple and opens without any extra step.</p>
<h3>Mochi doesn’t show my Claude Code sessions</h3>
<p>Open Settings → Claude Code → <b>Install hooks</b>, review the changes, confirm, then start a new Claude Code session.</p>
<h3>The chat doesn’t answer</h3>
@@ -32,8 +32,8 @@
<b>E-mail :</b> <a href="mailto:[email protected]">[email protected]</a>
</div>
<h2>Questions fréquentes</h2>
-<h3>macOS dit qu’il ne peut pas vérifier l’app (téléchargement GitHub)</h3>
-<p>Réglages Système → Confidentialité et sécurité, en bas : <b>Ouvrir quand même</b>. Ou une fois dans le Terminal : <code>xattr -dr com.apple.quarantine /Applications/Coucou.app</code>. La version App Store n’a pas cette étape.</p>
+<h3>macOS dit qu’il ne peut pas vérifier l’app</h3>
+<p>Télécharge la dernière version depuis GitHub — elle est notarisée par Apple et s’ouvre sans étape supplémentaire.</p>
<h3>Mochi n’affiche pas mes sessions Claude Code</h3>
<p>Réglages → Claude Code → <b>Install hooks</b>, vérifie les changements, confirme, puis lance une nouvelle session Claude Code.</p>
<h3>Le chat ne répond pas</h3>
diff --git a/scripts/release.sh b/scripts/release.sh
new file mode 100755
index 00000000..dc59f7e0
--- /dev/null
+++ b/scripts/release.sh
@@ -0,0 +1,70 @@
+#!/usr/bin/env bash
+# Usage: ./scripts/release.sh 0.1.1
+set -euo pipefail
+
+VERSION="${1:?Usage: $0 <version>}"
+REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
+BUILD_DIR="/tmp/coucou-release-$VERSION"
+APP="$BUILD_DIR/Coucou.app"
+ZIP="$BUILD_DIR/Coucou.zip"
+
+# ── 1. Find Developer ID identity ─────────────────────────────────────────────
+IDENTITY=$(security find-identity -v -p codesigning | grep "Developer ID Application" | head -1 | sed 's/.*"\(Developer ID Application[^"]*\)".*/\1/')
+if [ -z "$IDENTITY" ]; then
+ echo "error: No 'Developer ID Application' certificate found. Install it via Xcode → Settings → Accounts." >&2
+ exit 1
+fi
+echo "Signing with: $IDENTITY"
+
+# ── 2. xcodegen + Release build ───────────────────────────────────────────────
+cd "$REPO_ROOT/NotchBuddy"
+xcodegen generate
+rm -rf "$BUILD_DIR" && mkdir -p "$BUILD_DIR"
+
+xcodebuild \
+ -project NotchBuddy.xcodeproj \
+ -scheme NotchBuddy \
+ -configuration Release \
+ build \
+ CODE_SIGN_IDENTITY="$IDENTITY" \
+ CODE_SIGNING_REQUIRED=YES \
+ CODE_SIGNING_ALLOWED=YES \
+ CONFIGURATION_BUILD_DIR="$BUILD_DIR"
+
+# ── 3. Zip + notarize ─────────────────────────────────────────────────────────
+ditto -c -k --keepParent "$APP" "$ZIP"
+xcrun notarytool submit "$ZIP" --keychain-profile coucou-notary --wait
+
+# ── 4. Staple + verify ────────────────────────────────────────────────────────
+xcrun stapler staple "$APP"
+spctl -a -vv "$APP"
+
+# ── 5. Re-zip (with stapled app) ──────────────────────────────────────────────
+rm "$ZIP"
+ditto -c -k --keepParent "$APP" "$ZIP"
+echo "Release zip ready: $ZIP"
+
+# ── 6. Tag + GitHub release ───────────────────────────────────────────────────
+cd "$REPO_ROOT"
+git tag "v$VERSION"
+git push origin "v$VERSION"
+
+gh release create "v$VERSION" "$ZIP" \
+ --repo Louis-CFM/coucou \
+ --title "Coucou $VERSION" \
+ --notes "$(cat <<EOF
+## Install
+
+Download **Coucou.zip**, unzip and move **Coucou.app** to \`/Applications\`. Launch — no extra steps needed.
+
+## Build from source
+
+\`\`\`bash
+brew install xcodegen
+git clone https://github.com/Louis-CFM/coucou.git
+cd coucou/NotchBuddy && xcodegen && open NotchBuddy.xcodeproj
+\`\`\`
+EOF
+)"
+
+echo "✓ v$VERSION released: https://github.com/Louis-CFM/coucou/releases/tag/v$VERSION"