From 857962c12094af0324a8b461e706ee6dd6654dc8 Mon Sep 17 00:00:00 2001 From: Joseph Shenton Date: Mon, 16 Nov 2026 14:39:00 +1100 Subject: [PATCH] build.sh --install: fix 'DEST unbound variable' on macOS bash 3.2; silence notification Sendable warning --- Sources/CursorProfiles/GatewayController.swift | 5 ++++- build.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/CursorProfiles/GatewayController.swift b/Sources/CursorProfiles/GatewayController.swift index fad293f..2680d2d 100644 --- a/Sources/CursorProfiles/GatewayController.swift +++ b/Sources/CursorProfiles/GatewayController.swift @@ -166,7 +166,10 @@ final class GatewayController: ObservableObject { let content = UNMutableNotificationContent() content.title = title content.body = body - center.add(UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil)) + // Fetch the shared centre here rather than capturing the + // non-Sendable one from outside the callback. + UNUserNotificationCenter.current() + .add(UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: nil)) } } diff --git a/build.sh b/build.sh index c02fa8f..4fca497 100755 --- a/build.sh +++ b/build.sh @@ -84,7 +84,7 @@ if [ "$INSTALL" = 1 ]; then sleep 0.25 done pkill -f "$APP_NAME.app/Contents/MacOS/" 2>/dev/null || true - echo "▸ Installing to $DEST…" + echo "▸ Installing to ${DEST}…" rm -rf "$DEST" ditto "$APP_DIR" "$DEST" open "$DEST"