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:
+16
-1
@@ -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 "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
|
||||
Reference in New Issue
Block a user