feat: U-Claw v1.0 - OpenClaw offline installer USB for China
- Build script to package Node.js (Mac ARM64/x64 + Win x64) + OpenClaw + all deps - YuLinMuFeng-style launcher menu with 16 functions (install/repair/backup/reset) - 8 Chinese AI models one-click config (DeepSeek/Kimi/Qwen/GLM/MiniMax/Doubao/Qianfan/Mimo) - QQ official integration (Tencent), Feishu, WeChat, Telegram, Discord, WhatsApp, Slack - 52 pre-installed skills, all offline - Bilingual README (Chinese + English) - Full China tutorial (12 chapters) - MIT license
This commit is contained in:
57
uclaw-scripts/运行.bat
Normal file
57
uclaw-scripts/运行.bat
Normal file
@@ -0,0 +1,57 @@
|
||||
@echo off
|
||||
chcp 65001 >nul 2>&1
|
||||
title U-Claw 虾盘 - OpenClaw 一键启动
|
||||
|
||||
echo.
|
||||
echo ╔══════════════════════════════════════╗
|
||||
echo ║ U-Claw 虾盘 v1.0 ║
|
||||
echo ║ OpenClaw 一键启动 (Windows) ║
|
||||
echo ╚══════════════════════════════════════╝
|
||||
echo.
|
||||
|
||||
set "UCLAW_DIR=%~dp0"
|
||||
set "OPENCLAW_DIR=%UCLAW_DIR%openclaw"
|
||||
set "NODE_DIR=%UCLAW_DIR%runtime\node-win-x64"
|
||||
set "NODE_BIN=%NODE_DIR%\node.exe"
|
||||
set "NPM_BIN=%NODE_DIR%\npm.cmd"
|
||||
|
||||
if not exist "%NODE_BIN%" (
|
||||
echo [错误] 找不到 Node.js 运行环境
|
||||
echo 请确保 runtime\node-win-x64 目录完整
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
for /f "tokens=*" %%v in ('"%NODE_BIN%" --version') do set NODE_VER=%%v
|
||||
echo Node.js 版本: %NODE_VER%
|
||||
echo.
|
||||
|
||||
set "PATH=%NODE_DIR%;%NODE_DIR%\node_modules\.bin;%PATH%"
|
||||
|
||||
if not exist "%OPENCLAW_DIR%\node_modules" (
|
||||
echo 首次运行,正在安装依赖...
|
||||
echo (使用淘宝镜像,请稍等)
|
||||
echo.
|
||||
cd /d "%OPENCLAW_DIR%"
|
||||
"%NODE_BIN%" "%NPM_BIN%" install --registry=https://registry.npmmirror.com
|
||||
echo.
|
||||
echo 依赖安装完成!
|
||||
echo.
|
||||
)
|
||||
|
||||
if not exist "%OPENCLAW_DIR%\dist" (
|
||||
echo 首次运行,正在构建...
|
||||
cd /d "%OPENCLAW_DIR%"
|
||||
"%NODE_BIN%" "%NPM_BIN%" run build 2>nul
|
||||
echo.
|
||||
)
|
||||
|
||||
echo 正在启动 OpenClaw...
|
||||
echo.
|
||||
cd /d "%OPENCLAW_DIR%"
|
||||
"%NODE_BIN%" openclaw.mjs onboard --install-daemon 2>nul || "%NODE_BIN%" openclaw.mjs 2>nul || "%NODE_BIN%" "%NPM_BIN%" start
|
||||
|
||||
echo.
|
||||
echo OpenClaw 已退出
|
||||
pause
|
||||
Reference in New Issue
Block a user