feat: add navigation page and rename scripts to English prefixes

- Add U-Claw.html navigation page with OS auto-detection and live status
- Rename scripts: start → Mac-Start/Windows-Start, menu → Mac-Menu/Windows-Menu
- Update installer scripts to reference new v2 directory structure (app/core)
- Update .gitignore to exclude build artifacts and marketing assets
This commit is contained in:
dongsheng123132
2026-03-10 22:55:20 +08:00
parent 797593c398
commit c1e94d4dd9
8 changed files with 209 additions and 9 deletions

View File

@@ -35,7 +35,7 @@ if [ ! -f "$ARCHIVE" ]; then
fi
# 检查是否已安装
if [ -d "$INSTALL_DIR/openclaw/node_modules" ]; then
if [ -d "$INSTALL_DIR/app/core/node_modules" ]; then
echo -e " ${GREEN}检测到已安装的 U-Claw${NC}"
echo " 位置: $INSTALL_DIR"
echo ""
@@ -55,7 +55,7 @@ if [ -d "$INSTALL_DIR/openclaw/node_modules" ]; then
fi
# 解压(如果需要)
if [ ! -d "$INSTALL_DIR/openclaw/node_modules" ]; then
if [ ! -d "$INSTALL_DIR/app/core/node_modules" ]; then
echo ""
echo -e " ${CYAN}正在解压 U-Claw 到 $INSTALL_DIR ...${NC}"
echo " 这可能需要 30-60 秒,请稍等..."
@@ -83,4 +83,4 @@ echo -e " ${CYAN}正在启动 OpenClaw...${NC}"
echo ""
cd "$INSTALL_DIR"
exec bash "$INSTALL_DIR/Mac-从U盘启动.command"
exec bash "$INSTALL_DIR/Mac-Start.command"

View File

@@ -1,5 +1,5 @@
@echo off
chcp 65001 >nul 2>&1
chcp 65001 >/dev/null 2>&1
title U-Claw - Install and Launch
echo.
@@ -23,7 +23,7 @@ if not exist "%ARCHIVE%" (
)
REM Check if already installed
if exist "%INSTALL_DIR%\openclaw\node_modules" (
if exist "%INSTALL_DIR%\app\core\node_modules" (
echo U-Claw already installed at: %INSTALL_DIR%
echo.
echo [1] Launch directly (skip extract)
@@ -33,7 +33,7 @@ if exist "%INSTALL_DIR%\openclaw\node_modules" (
if "%choice%"=="2" (
echo.
echo Reinstalling...
rmdir /s /q "%INSTALL_DIR%" >nul 2>&1
rmdir /s /q "%INSTALL_DIR%" >/dev/null 2>&1
) else (
echo.
echo Launching...
@@ -47,7 +47,7 @@ echo Extracting U-Claw to %INSTALL_DIR% ...
echo This may take 1-2 minutes...
echo.
where tar >nul 2>&1
where tar >/dev/null 2>&1
if %errorlevel%==0 (
cd /d "%USERPROFILE%"
tar xzf "%ARCHIVE%"
@@ -62,7 +62,7 @@ if %errorlevel%==0 (
echo Please extract U-Claw.tar.gz manually using 7-Zip or WinRAR
echo Extract to: %USERPROFILE%
echo.
echo Then run: %INSTALL_DIR%\Windows-从U盘启动.bat
echo Then run: %INSTALL_DIR%\Windows-Start.bat
pause
exit /b 1
)
@@ -76,4 +76,4 @@ echo Starting OpenClaw...
echo.
cd /d "%INSTALL_DIR%"
call "%INSTALL_DIR%\Windows-从U盘启动.bat"
call "%INSTALL_DIR%\Windows-Start.bat"