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 Coucou 0.1.2: changelog, version, sturdier release script (#134)

Louisb5efdbd7a622
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0fdf4eba..c460f2f4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.1.2 — October 2, 2026
+
+- Codex support (GitHub build): sessions show up live on the Codex pill, and permission requests get Allow and Deny in the notch. Install from Settings → Codex Hooks, then trust the hooks once with /hooks in Codex (#130) — thanks @lacatu5
+- Cursor: Claude Code started in Cursor's terminal shows up on the Cursor pill, and you can answer its permission requests from the notch (#120).
+- Pick your main coding tool in Settings → Active pills: VS Code, Cursor, Codex or Antigravity (Codex and Antigravity: GitHub build). It stays on and no longer takes one of the 4 slots (#120).
+- The permission card stays in the notch until you answer it: the mouse no longer folds it, and reopening the island shows the request again (#117).
+- The permission card also shows when the island is already open, and the pill you were on comes back once you answer (#120).
+
## 0.1.1 — October 2, 2026
- Declare the tools you use in Settings: Gemini CLI, Antigravity, Anthropic, Google AI and OpenAI pills join the existing ones (Cursor and Codex pills are coming soon), and you pick the main pill.
diff --git a/NotchBuddy/Resources/Info.plist b/NotchBuddy/Resources/Info.plist
index 4f0b78bc..4a6e788f 100644
--- a/NotchBuddy/Resources/Info.plist
+++ b/NotchBuddy/Resources/Info.plist
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.1.1</string>
+ <string>0.1.2</string>
<key>CFBundleVersion</key>
- <string>2</string>
+ <string>3</string>
<key>LSUIElement</key>
<true/>
<key>NSAccessibilityUsageDescription</key>
diff --git a/NotchBuddy/project.yml b/NotchBuddy/project.yml
index e1041f6f..79103761 100644
--- a/NotchBuddy/project.yml
+++ b/NotchBuddy/project.yml
@@ -61,8 +61,8 @@ targets:
CFBundleName: Coucou
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.NotchBuddy
- CFBundleVersion: "2"
- CFBundleShortVersionString: "0.1.1"
+ CFBundleVersion: "3"
+ CFBundleShortVersionString: "0.1.2"
CFBundlePackageType: APPL
LSUIElement: YES
NSHighResolutionCapable: YES
diff --git a/scripts/release.sh b/scripts/release.sh
index dc59f7e0..3de2fbdf 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -1,70 +1,146 @@
#!/usr/bin/env bash
-# Usage: ./scripts/release.sh 0.1.1
+# Builds, notarizes and publishes Coucou for macOS (GitHub build).
+#
+# ./scripts/release.sh 0.1.2 build, sign, notarize, staple, tag, publish
+# ./scripts/release.sh 0.1.2 --finish finish after an interrupted notarization wait
+#
+# Run it from a clean checkout of main. CFBundleShortVersionString in
+# NotchBuddy/project.yml must match the version, and CHANGELOG.md needs a
+# "## <version>" section: it becomes the release notes.
set -euo pipefail
-VERSION="${1:?Usage: $0 <version>}"
+VERSION="${1:?Usage: $0 <version> [--finish]}"
+MODE="${2:-}"
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
BUILD_DIR="/tmp/coucou-release-$VERSION"
APP="$BUILD_DIR/Coucou.app"
ZIP="$BUILD_DIR/Coucou.zip"
+COMMIT_FILE="$BUILD_DIR/commit"
+TAG="v$VERSION"
-# ── 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
+die() { echo "error: $*" >&2; exit 1; }
+
+case "$MODE" in
+ ""|--finish) ;;
+ *) die "unknown option '$MODE' (the only option is --finish)" ;;
+esac
+
+cd "$REPO_ROOT"
+
+# ── Checks shared by both modes ───────────────────────────────────────────────
+command -v gh >/dev/null || die "gh is not installed (brew install gh)"
+
+# The "## <version>" section of CHANGELOG.md, without leading or trailing blank lines.
+CHANGES=$(awk -v head="## $VERSION" '
+ index($0, head " ") == 1 || $0 == head { found = 1; next }
+ found && /^## / { exit }
+ found {
+ if ($0 ~ /^[ \t\r]*$/) { if (started) blanks++; next }
+ while (blanks > 0) { print ""; blanks-- }
+ print; started = 1
+ }
+' CHANGELOG.md)
+[ -n "$CHANGES" ] || die "CHANGELOG.md has no '## $VERSION' section"
+
+if git rev-parse -q --verify "refs/tags/$TAG" >/dev/null; then
+ die "tag $TAG already exists here"
+fi
+if git ls-remote --exit-code --tags origin "refs/tags/$TAG" >/dev/null 2>&1; then
+ die "tag $TAG already exists on GitHub"
+fi
+
+if [ "$MODE" != "--finish" ]; then
+ # The release must match a commit: no uncommitted changes to tracked files.
+ if ! git diff --quiet || ! git diff --cached --quiet; then
+ die "commit or stash your changes first, the release has to match a commit"
+ fi
+ COMMIT=$(git rev-parse HEAD)
+
+ # ── 1. Developer ID identity ────────────────────────────────────────────────
+ # "|| true": with pipefail, grep finding nothing would end the script silently.
+ IDENTITY=$(security find-identity -v -p codesigning | grep "Developer ID Application" | head -1 | sed 's/.*"\(Developer ID Application[^"]*\)".*/\1/' || true)
+ [ -n "$IDENTITY" ] || die "no 'Developer ID Application' certificate found. Install it via Xcode → Settings → Accounts."
+ echo "Signing with: $IDENTITY"
+
+ # ── 2. xcodegen + Release build ─────────────────────────────────────────────
+ cd "$REPO_ROOT/NotchBuddy"
+ xcodegen generate
+ PLIST_VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" Resources/Info.plist)
+ [ "$PLIST_VERSION" = "$VERSION" ] || die "the app is version $PLIST_VERSION, not $VERSION: update CFBundleShortVersionString in NotchBuddy/project.yml"
+
+ rm -rf "$BUILD_DIR" && mkdir -p "$BUILD_DIR"
+ echo "$COMMIT" > "$COMMIT_FILE"
+
+ 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"
+ echo
+ echo "Sending to Apple for notarization. If you stop the wait (Ctrl+C), Apple keeps going:"
+ echo " check it with xcrun notarytool history --keychain-profile coucou-notary"
+ echo " once Accepted ./scripts/release.sh $VERSION --finish"
+ echo
+ xcrun notarytool submit "$ZIP" --keychain-profile coucou-notary --wait \
+ || die "notarization failed: see xcrun notarytool log <id> --keychain-profile coucou-notary (the id is printed above)"
+ cd "$REPO_ROOT"
+else
+ [ -d "$APP" ] && [ -f "$COMMIT_FILE" ] || die "nothing to finish in $BUILD_DIR, run ./scripts/release.sh $VERSION first"
+ COMMIT=$(cat "$COMMIT_FILE")
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"
+xcrun stapler staple "$APP" \
+ || die "stapling failed: Apple has not accepted the build yet. Check xcrun notarytool history --keychain-profile coucou-notary, then run ./scripts/release.sh $VERSION --finish"
spctl -a -vv "$APP"
-# ── 5. Re-zip (with stapled app) ──────────────────────────────────────────────
-rm "$ZIP"
+# ── 5. Re-zip (with the stapled app) ──────────────────────────────────────────
+rm -f "$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"
+# ── 6. Tag the built commit + GitHub release ──────────────────────────────────
+NOTES="Coucou $VERSION for macOS 15 or later (Apple silicon and Intel).
+
+Signed with a Developer ID and notarized by Apple.
+
+## What's new
+
+$CHANGES
-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.
+1. Download Coucou.zip below and unzip it.
+2. Move Coucou.app to your Applications folder, replacing the old one if you have it.
+3. Launch it, and click Open when macOS asks you to confirm.
+
+Linux and Windows: see the [README](https://github.com/Louis-CFM/coucou#readme)."
-## Build from source
+echo
+echo "──────── Release notes ────────"
+echo "$NOTES"
+echo "───────────────────────────────"
+echo
+read -r -p "Tag $(git rev-parse --short "$COMMIT") as $TAG and publish this release? [y/N] " ANSWER
+case "$ANSWER" in
+ y|Y|yes|oui|o|O) ;;
+ *) die "stopped before tagging. Run ./scripts/release.sh $VERSION --finish to publish later." ;;
+esac
-\`\`\`bash
-brew install xcodegen
-git clone https://github.com/Louis-CFM/coucou.git
-cd coucou/NotchBuddy && xcodegen && open NotchBuddy.xcodeproj
-\`\`\`
-EOF
-)"
+git tag "$TAG" "$COMMIT"
+git push origin "$TAG"
+
+gh release create "$TAG" "$ZIP" \
+ --repo Louis-CFM/coucou \
+ --title "Coucou $VERSION" \
+ --latest \
+ --notes "$NOTES"
-echo "✓ v$VERSION released: https://github.com/Louis-CFM/coucou/releases/tag/v$VERSION"
+echo "✓ $TAG released: https://github.com/Louis-CFM/coucou/releases/tag/$TAG"