fixed run build error

This commit is contained in:
xmanrui
2026-03-10 03:27:40 +08:00
parent eef6ead800
commit 4ba64af255
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ if not exist "%OPENCLAW_DIR%\node_modules" (
if not exist "%OPENCLAW_DIR%\dist" ( if not exist "%OPENCLAW_DIR%\dist" (
echo 首次运行,正在构建... echo 首次运行,正在构建...
cd /d "%OPENCLAW_DIR%" cd /d "%OPENCLAW_DIR%"
call "%NODE_BIN%" "%NPM_BIN%" run build call "%NPM_BIN%" run build
echo. echo.
) )

View File

@@ -141,7 +141,7 @@ if not exist "%OPENCLAW_DIR%\node_modules" (
call "%NPM_BIN%" install --registry=https://registry.npmmirror.com call "%NPM_BIN%" install --registry=https://registry.npmmirror.com
) )
cd /d "%OPENCLAW_DIR%" cd /d "%OPENCLAW_DIR%"
call "%NODE_BIN%" "%NPM_BIN%" run build call "%NPM_BIN%" run build
echo. echo.
echo 构建完成! echo 构建完成!
pause pause
@@ -162,7 +162,7 @@ if not exist "%OPENCLAW_DIR%\node_modules" (
if not exist "%OPENCLAW_DIR%\dist" ( if not exist "%OPENCLAW_DIR%\dist" (
echo 先构建... echo 先构建...
cd /d "%OPENCLAW_DIR%" cd /d "%OPENCLAW_DIR%"
call "%NODE_BIN%" "%NPM_BIN%" run build call "%NPM_BIN%" run build
) )
cd /d "%OPENCLAW_DIR%" cd /d "%OPENCLAW_DIR%"
if not exist "%PORTABLE_CONFIG_PATH%" ( if not exist "%PORTABLE_CONFIG_PATH%" (