Initial commit: OpenClaw 龙虾AI 一键部署脚本

This commit is contained in:
Rick Mu
2026-02-13 13:31:07 +11:00
commit 11e8a6b66c
6 changed files with 662 additions and 0 deletions

34
uninstall-macos.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -euo pipefail
# ─────────────────────────────────────────────
# OpenClaw 卸载脚本 (macOS)
# ─────────────────────────────────────────────
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m'
info() { echo -e "${BLUE}[信息]${NC} $*"; }
success() { echo -e "${GREEN}[完成]${NC} $*"; }
warn() { echo -e "${YELLOW}[警告]${NC} $*"; }
echo ""
echo -e "${BOLD}========================================${NC}"
echo -e "${BOLD} OpenClaw 卸载器 (macOS)${NC}"
echo -e "${BOLD}========================================${NC}"
echo ""
if command -v openclaw &>/dev/null; then
info "已找到 openclaw正在运行卸载..."
openclaw uninstall --all --yes --non-interactive
else
warn "在 PATH 中未找到 openclaw使用 npx..."
npx -y openclaw uninstall --all --yes --non-interactive
fi
success "OpenClaw 已卸载。"
echo ""