From 13704d9da55b4ce70af0433769d7c47fe6bd608c Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 6 Dec 2025 00:14:12 +0100 Subject: [PATCH] chore: add settings shortcut and restart packaging --- apps/macos/Sources/Clawdis/AppMain.swift | 3 +++ scripts/package-mac-app.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/macos/Sources/Clawdis/AppMain.swift b/apps/macos/Sources/Clawdis/AppMain.swift index b2a37e198..83904fe66 100644 --- a/apps/macos/Sources/Clawdis/AppMain.swift +++ b/apps/macos/Sources/Clawdis/AppMain.swift @@ -367,6 +367,9 @@ struct ClawdisApp: App { Toggle(isOn: $state.isPaused) { Text(state.isPaused ? "Clawdis Paused" : "Pause Clawdis") } + Button("Settings…") { + NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil) + } Divider() Button("Test Notification") { Task { _ = await NotificationManager().send(title: "Clawdis", body: "Test notification", sound: nil) } diff --git a/scripts/package-mac-app.sh b/scripts/package-mac-app.sh index d7e50beac..d4f455a31 100755 --- a/scripts/package-mac-app.sh +++ b/scripts/package-mac-app.sh @@ -53,6 +53,9 @@ if [ -f "$CLI_BIN" ]; then chmod +x "$APP_ROOT/Contents/MacOS/ClawdisCLI" fi +echo "⏹ Stopping any running Clawdis" +killall -q Clawdis 2>/dev/null || true + echo "✅ Bundle ready at $APP_ROOT" echo "🚀 Launching app"