Add install script for mac-agent

This commit is contained in:
2026-03-23 18:57:24 -07:00
parent 96d5a2b249
commit 80b93bdb1c
5 changed files with 99 additions and 21 deletions

10
mac-agent/uninstall.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -e
LABEL="com.user.kb-focus"
PLIST="$HOME/Library/LaunchAgents/$LABEL.plist"
launchctl bootout "gui/$(id -u)/$LABEL" 2>/dev/null || true
rm -f "$PLIST"
echo "Uninstalled $LABEL"