All checks were successful
release / release (push) Successful in 16s
PyQt6 QSystemTrayIcon: green=running, red=stopped, yellow=transition. Pause/resume the node via the API (frees/reclaims the GPU, no sudo) so you can free the 4060 Ti before gaming. Playbook standard: README (per-OS prereqs + build/run/test), doc/plan.md, .gitignore (build/ first), VS Code build task -> ./build, install.sh + one-line curl (clone or release), Gitea Actions rolling-latest release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011YPrEZVBpPVoCRyJz2exkZ
34 lines
1.2 KiB
Bash
Executable File
34 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# Installerar tray-appen till ~/.local/bin + autostart, och startar den.
|
|
# Från clone: ./install.sh
|
|
# En rad: curl -fsSL https://gitea.brasse-pc.eu/brasse/Tdarr-tray/raw/branch/master/install.sh | sh
|
|
set -eu
|
|
REPO="https://gitea.brasse-pc.eu/brasse/Tdarr-tray"
|
|
BIN="$HOME/.local/bin/tdarr-tray"
|
|
DESKTOP="$HOME/.config/autostart/tdarr-tray.desktop"
|
|
mkdir -p "$HOME/.local/bin" "$HOME/.config/autostart"
|
|
SRC="$(cd "$(dirname "$0")" 2>/dev/null && pwd || true)"
|
|
if [ -n "${SRC:-}" ] && [ -f "$SRC/tdarr-tray.py" ]; then
|
|
install -m 0755 "$SRC/tdarr-tray.py" "$BIN"
|
|
else
|
|
if command -v curl >/dev/null 2>&1; then curl -fsSL -o "$BIN" "$REPO/releases/download/latest/tdarr-tray.py"; else wget -qO "$BIN" "$REPO/releases/download/latest/tdarr-tray.py"; fi
|
|
chmod +x "$BIN"
|
|
fi
|
|
cat > "$DESKTOP" <<DESK
|
|
[Desktop Entry]
|
|
Type=Application
|
|
Name=Tdarr Tray
|
|
Comment=Styr Tdarr workstation-noden från systemfältet
|
|
Exec=$BIN
|
|
Icon=applications-multimedia
|
|
Terminal=false
|
|
Categories=Utility;
|
|
X-GNOME-Autostart-enabled=true
|
|
DESK
|
|
pkill -f "$BIN" 2>/dev/null || true
|
|
sleep 1
|
|
nohup "$BIN" >/dev/null 2>&1 & disown 2>/dev/null || true
|
|
echo "Installerat: $BIN"
|
|
echo "Autostart: $DESKTOP"
|
|
echo "Startad (kolla systemfältet)."
|