client/install.sh: install we_monitor_gui command to ~/.local/bin

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 18:55:14 +02:00
co-authored by Claude Sonnet 4.6
parent b5c7e66c94
commit 49bc272461
+16 -1
View File
@@ -54,6 +54,21 @@ EOF
chmod +x "$LAUNCHER"
echo "==> Launcher written : $LAUNCHER"
# ── 3. system command ─────────────────────────────────────────────────────────
BIN_DIR="$HOME/.local/bin"
CMD="$BIN_DIR/we_monitor_gui"
mkdir -p "$BIN_DIR"
cat > "$CMD" <<EOF
#!/usr/bin/env bash
exec "$PYTHON" "$SCRIPT_DIR/gui_client.py" "\$@"
EOF
chmod +x "$CMD"
echo "==> System command : $CMD"
if [[ ":$PATH:" != *":$BIN_DIR:"* ]]; then
echo " Note: $BIN_DIR is not in your PATH."
echo " Add to ~/.bashrc or ~/.profile: export PATH=\"\$HOME/.local/bin:\$PATH\""
fi
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
if $IS_UPDATE; then
@@ -62,6 +77,6 @@ else
echo " Installation complete."
echo ""
echo " Start the GUI:"
echo " $LAUNCHER"
echo " we_monitor_gui"
fi
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"