chore: remove Linux support to simplify project

Drop Linux startup script and all Linux references from README.
Only Mac + Windows supported going forward.
This commit is contained in:
dongsheng123132
2026-03-10 16:29:54 +08:00
parent fb87b6658e
commit fc725247d1
2 changed files with 2 additions and 92 deletions

View File

@@ -28,7 +28,7 @@
## Features / 特性
- 🚀 **Easy startup / 快速启动** — macOS + Linux + Windows, ready to run from USB
- 🚀 **Easy startup / 快速启动** — macOS + Windows, ready to run from USB
- 📦 **Fully offline / 完全离线** — No internet needed for installation
- 💸 **Lower TCO / 总成本更低** — For repeated deployments, often cheaper than cloud-only rollout
- 🇨🇳 **China-optimized / 中国优化** — 8 Chinese AI models (DeepSeek, Kimi, Qwen, GLM, MiniMax, Doubao, Qianfan, Mimo)
@@ -47,7 +47,6 @@
# After extracting / 解压后:
# Mac: double-click "Mac-从U盘启动.command"
# Linux: bash ./Linux-从U盘启动.sh
# Win: double-click "Windows-从U盘启动.bat"
```
@@ -87,7 +86,6 @@ U-Claw/ (~1.3GB, 8GB USB minimum)
├── Mac-从U盘启动.command ← macOS: run from USB
├── Windows-从U盘启动.bat ← Windows: run from USB
├── Linux-从U盘启动.sh ← Linux: run from USB
├── Mac-全部功能.command ← macOS: full feature menu
├── Windows-全部功能.bat ← Windows: full feature menu
├── Mac-安装到电脑.command ← Install to Mac permanently
@@ -99,7 +97,6 @@ U-Claw/ (~1.3GB, 8GB USB minimum)
├── runtime/ ← Node.js 22 runtimes
│ ├── node-mac-arm64/ ← Mac Apple Silicon (M1-M4)
│ ├── node-mac-x64/ ← Mac Intel
│ ├── node-linux-x64/ ← Linux x64
│ └── node-win-x64/ ← Windows 64-bit
├── openclaw/ ← OpenClaw + node_modules + dist
@@ -197,7 +194,6 @@ openclaw config set channels.qqbot.allowFrom "your_qq_number"
## System Requirements / 系统要求
- **macOS**: 12+ (Intel or Apple Silicon)
- **Linux**: x64 with glibc and bash
- **Windows**: 10/11 (64-bit)
- **RAM**: 2GB+ (4GB+ recommended)
- **USB**: 8GB+ (16GB recommended)
@@ -212,7 +208,7 @@ openclaw config set channels.qqbot.allowFrom "your_qq_number"
### What the build script does / 构建脚本做了什么
1. Downloads Node.js 22 for 4 platforms (Mac ARM64 + Mac x64 + Linux x64 + Win x64), prefers China mirror
1. Downloads Node.js 22 for 3 platforms (Mac ARM64 + Mac x64 + Win x64), prefers China mirror
2. Copies OpenClaw source to `U-Claw/openclaw/`
3. Installs `pnpm` and runs `pnpm install` with China mirror (registry.npmmirror.com)
4. Runs `pnpm build` to build OpenClaw
@@ -271,10 +267,6 @@ A: Yes, unlimited. MIT license, copy freely.
A: No. U-Claw bundles Windows Node.js, runs natively via `.bat`.
不需要。自带 Windows 版 Node.js。
**Q: Linux supported? / Linux 支持吗?**
A: Yes for x64 Linux. Use `bash ./运行.sh` from the release bundle.
支持,面向 x64 Linux。解压后运行 `bash ./运行.sh` 即可。
## License
[MIT](LICENSE) — Free to use, modify, distribute.

View File

@@ -1,82 +0,0 @@
#!/bin/bash
# ============================================================
# U-Claw 虾盘 - Linux 一键启动
# 用法: bash ./运行.sh
# ============================================================
set -e
UCLAW_DIR="$(cd "$(dirname "$0")" && pwd)"
OPENCLAW_DIR="$UCLAW_DIR/openclaw"
NODE_DIR="$UCLAW_DIR/runtime/node-linux-x64"
NODE_BIN="$NODE_DIR/bin/node"
NPM_BIN="$NODE_DIR/bin/npm"
PNPM_BIN="$NODE_DIR/bin/pnpm"
GREEN='\033[0;32m'
CYAN='\033[0;36m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo ""
echo -e "${CYAN}"
echo " ╔══════════════════════════════════════╗"
echo " ║ U-Claw 虾盘 v1.0 ║"
echo " ║ OpenClaw Linux 启动 ║"
echo " ╚══════════════════════════════════════╝"
echo -e "${NC}"
if [ ! -x "$NODE_BIN" ]; then
echo -e " ${RED}错误: 找不到 Linux Node.js 运行环境${NC}"
echo " 请确保 runtime/node-linux-x64 目录完整"
exit 1
fi
export PATH="$NODE_DIR/bin:$PATH"
ensure_pnpm() {
if [ -x "$PNPM_BIN" ]; then
return 0
fi
echo -e " ${YELLOW}缺少 pnpm正在补充安装...${NC}"
"$NPM_BIN" install -g pnpm --registry=https://registry.npmmirror.com
if [ ! -x "$PNPM_BIN" ]; then
echo -e " ${RED}错误: pnpm 安装失败,无法继续构建${NC}"
exit 1
fi
}
echo -e " Node.js 版本: ${GREEN}$("$NODE_BIN" --version)${NC}"
echo ""
if [ ! -d "$OPENCLAW_DIR/node_modules" ]; then
echo -e " ${YELLOW}首次运行,正在安装依赖...${NC}"
cd "$OPENCLAW_DIR"
"$NPM_BIN" install --registry=https://registry.npmmirror.com
echo ""
fi
if [ ! -d "$OPENCLAW_DIR/dist" ]; then
echo -e " ${YELLOW}首次运行,正在构建...${NC}"
cd "$OPENCLAW_DIR"
ensure_pnpm
"$PNPM_BIN" run build
if [ ! -d "$OPENCLAW_DIR/dist" ]; then
echo -e " ${RED}构建失败,请检查错误信息${NC}"
exit 1
fi
echo ""
fi
cd "$OPENCLAW_DIR"
if [ ! -f "$HOME/.openclaw/openclaw.json" ]; then
echo -e " ${YELLOW}首次配置...${NC}"
"$NODE_BIN" openclaw.mjs onboard --install-daemon
fi
echo -e " ${CYAN}启动 OpenClaw 服务...${NC}"
"$NODE_BIN" openclaw.mjs || "$NPM_BIN" start