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

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