#!/usr/bin/env bash set -euo pipefail HOME_DIR="${LAYA_ROUTER_HOME:-$HOME/.laya-router}" BIN="$HOME_DIR/.venv/bin/laya-router" if [[ ! -x "$BIN" ]]; then echo "未找到 $BIN。如果服务仍在运行,可执行: launchctl bootout gui/$(id -u)/com.laya-router" >&2 exit 1 fi exec "$BIN" uninstall "$@"