-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (42 loc) · 1.54 KB
/
Makefile
File metadata and controls
47 lines (42 loc) · 1.54 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
BINARY := target/release/kucheat
INSTALL_BIN := $(HOME)/.local/bin/kucheat
SERVICE_DIR := $(HOME)/.config/systemd/user
ICON_DIR := $(HOME)/.local/share/icons/hicolor/512x512/apps
.PHONY: build install uninstall clean
build:
cargo build --release
install: build
@echo "📦 Installing binary..."
install -Dm755 $(BINARY) $(INSTALL_BIN)
@echo "📋 Installing systemd user service..."
install -Dm644 systemd/kucheat.service $(SERVICE_DIR)/kucheat.service
systemctl --user daemon-reload
@echo "🎨 Installing notification icon..."
install -Dm644 assets/icons/kucheat.png $(ICON_DIR)/kucheat.png
@echo ""
@echo "✅ Installation complete!"
@echo ""
@echo "Usage:"
@echo " kucheat add <CHANNEL_ID> Add a channel"
@echo " kucheat list List channels"
@echo " kucheat status Check live status"
@echo ""
@echo "Daemon:"
@echo " systemctl --user enable kucheat Auto-start on login"
@echo " systemctl --user start kucheat Start daemon"
@echo " systemctl --user status kucheat Check daemon status"
@echo " journalctl --user -u kucheat -f Stream logs"
@echo ""
@echo "Tray:"
@echo " kucheat tray Manual start"
uninstall:
@echo "🗑️ Uninstalling kucheat..."
systemctl --user stop kucheat 2>/dev/null || true
systemctl --user disable kucheat 2>/dev/null || true
rm -f $(INSTALL_BIN)
rm -f $(SERVICE_DIR)/kucheat.service
systemctl --user daemon-reload
rm -f $(ICON_DIR)/kucheat.png
@echo "✅ Uninstalled."
clean:
cargo clean