Files
coucou/scripts/test-mac-update.sh
Claude 5e2b8af3de Mac: new version in the notch, one click to install it
Coucou looks at its own GitHub releases (after the user said yes, a few
times a day) and Mochi says "Coucou X is out" in the notch: Update now,
What's new, Later. The click downloads Coucou.zip from GitHub only,
checks it is Coucou at the announced version, signed with Louis's
Developer ID and accepted by Gatekeeper, swaps the app in place and
restarts. Outside /Applications it points to the release page.
Settings > General > Updates: the toggle, Check now, Install.
GitHub build only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-10-20 01:21:01 +02:00

8 lines
294 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-mac-update.XXXXXX")"
trap 'rm -rf "$TEST_DIR"' EXIT
swiftc NotchBuddy/Sources/App/MacUpdate.swift tests/MacUpdateTests.swift -o "$TEST_DIR/mac-update-tests"
"$TEST_DIR/mac-update-tests"