-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·48 lines (40 loc) · 1.26 KB
/
Copy pathuninstall.sh
File metadata and controls
executable file
·48 lines (40 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
set -e
# Awtrix3 Calendar - Uninstall Script
# Stops the application and removes it from login items
APP_NAME="Awtrix3Calendar"
INSTALLED_APP="/Applications/$APP_NAME.app"
LOG_DIR="$HOME/Library/Logs/awtrix3calendar"
CONFIG_DIR="$HOME/.awtrix3calendar"
CLI_BIN="$HOME/.local/bin/awtrix3calendar"
echo "=== Awtrix3 Calendar Uninstaller ==="
echo ""
# Quit the app if running
echo "Stopping application..."
awtrix3calendar stop 2>/dev/null || true
# Remove from login items
echo "Removing from Login Items..."
osascript -e "tell application \"System Events\" to delete login item \"$APP_NAME\"" 2>/dev/null || true
# Remove app from Applications
if [ -d "$INSTALLED_APP" ]; then
echo "Removing application..."
rm -rf "$INSTALLED_APP"
else
echo "Application not found in /Applications (already removed?)"
fi
# Remove CLI command
if [ -f "$CLI_BIN" ]; then
echo "Removing CLI command..."
rm -f "$CLI_BIN"
fi
echo ""
echo "=== Uninstallation complete! ==="
echo ""
echo "The application has been removed and will no longer start on login."
echo ""
echo "Note: The following were NOT removed:"
echo " - Config files: $CONFIG_DIR"
echo " - Log files: $LOG_DIR"
echo ""
echo "To remove config files: rm -rf $CONFIG_DIR"
echo "To remove logs: rm -rf $LOG_DIR"