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.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
dev-install.sh: works with macOS's bash 3.2 (no "…" glued to a variable)
Claude4ea862940ae9
diff --git a/scripts/dev-install.sh b/scripts/dev-install.shindex f925b40e..eb56e648 100755--- a/scripts/dev-install.sh+++ b/scripts/dev-install.sh@@ -3,7 +3,7 @@# certificate, iPhone link on) and makes it the only Coucou: installed in /Applications,# the copies left by earlier builds removed.#-# Why: macOS gives its permissions (Accessibility, Screen Recording, microphone…) to one+# Why: macOS gives its permissions (Accessibility, Screen Recording, microphone...) to one# app signed one way. An unsigned Debug build looks like a new app after every build, and# each copy of Coucou.app is one more entry to allow. One signed app at one place keeps# its permissions from one build to the next.@@ -15,46 +15,46 @@ set -euo pipefailREPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"BUNDLE_ID="fr.louisraille.NotchBuddy"-DERIVED="$HOME/Library/Developer/Xcode/DerivedData/CoucouDev"-BUILT="$DERIVED/Build/Products/DebugCloud/Coucou.app"+DERIVED="${HOME}/Library/Developer/Xcode/DerivedData/CoucouDev"+BUILT="${DERIVED}/Build/Products/DebugCloud/Coucou.app"LSREGISTER="/System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/LaunchServices.framework/Versions/Current/Support/lsregister"# The App Store Coucou (fr.louisraille.Coucou) has the same file name: never overwrite it.TARGET="/Applications/Coucou.app"-if [ -d "$TARGET" ]; then- EXISTING=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$TARGET/Contents/Info.plist" 2>/dev/null || echo "")- if [ "$EXISTING" != "$BUNDLE_ID" ]; then- mkdir -p "$HOME/Applications"- TARGET="$HOME/Applications/Coucou.app"- echo "/Applications/Coucou.app is another Coucou ($EXISTING): installing in ~/Applications instead."+if [ -d "${TARGET}" ]; then+ EXISTING=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "${TARGET}/Contents/Info.plist" 2>/dev/null || echo "")+ if [ "${EXISTING}" != "${BUNDLE_ID}" ]; then+ mkdir -p "${HOME}/Applications"+ TARGET="${HOME}/Applications/Coucou.app"+ echo "/Applications/Coucou.app is another Coucou (${EXISTING}): installing in ~/Applications instead."fifi-echo "Building (DebugCloud)…"-cd "$REPO_ROOT/NotchBuddy"+echo "Building (DebugCloud)..."+cd "${REPO_ROOT}/NotchBuddy"xcodegen >/dev/nullxcodebuild -scheme NotchBuddyCloud -configuration DebugCloud -allowProvisioningUpdates \- -derivedDataPath "$DERIVED" -quiet build+ -derivedDataPath "${DERIVED}" -quiet build-echo "Quitting Coucou…"-osascript -e "tell application id \"$BUNDLE_ID\" to quit" >/dev/null 2>&1 || true+echo "Quitting Coucou..."+osascript -e "tell application id \"${BUNDLE_ID}\" to quit" >/dev/null 2>&1 || truefor _ in 1 2 3 4 5; do pgrep -x Coucou >/dev/null || break; sleep 1; donepkill -x Coucou 2>/dev/null || true-echo "Installing in $TARGET…"-rm -rf "$TARGET"-ditto "$BUILT" "$TARGET"+echo "Installing in ${TARGET}..."+rm -rf "${TARGET}"+ditto "${BUILT}" "${TARGET}"# The build stays in DerivedData for the next (incremental) build, but macOS must not# count it as another Coucou. Copies from Xcode's own builds (▶, xcodebuild by hand) go.-"$LSREGISTER" -u "$BUILT" >/dev/null 2>&1 || true-for old in "$HOME"/Library/Developer/Xcode/DerivedData/NotchBuddy-*/Build/Products/*/Coucou.app; do+"${LSREGISTER}" -u "${BUILT}" >/dev/null 2>&1 || true+for old in "${HOME}"/Library/Developer/Xcode/DerivedData/NotchBuddy-*/Build/Products/*/Coucou.app; do[ -d "$old" ] || continue- "$LSREGISTER" -u "$old" >/dev/null 2>&1 || true+ "${LSREGISTER}" -u "$old" >/dev/null 2>&1 || truerm -rf "$old"echo "Removed an old build: $old"done-"$LSREGISTER" -f "$TARGET" >/dev/null 2>&1 || true+"${LSREGISTER}" -f "${TARGET}" >/dev/null 2>&1 || true-open "$TARGET"-echo "Coucou is running from $TARGET."+open "${TARGET}"+echo "Coucou is running from ${TARGET}."