fix(portable): honor bundled OpenClaw version on USB
This commit is contained in:
@@ -105,8 +105,9 @@ if exist "%CORE_DIR%\node_modules\openclaw" goto skip_openclaw_install
|
||||
echo [INSTALL] Installing OpenClaw...
|
||||
if not exist "%CORE_DIR%" mkdir "%CORE_DIR%" 2>nul
|
||||
|
||||
REM Read pinned OpenClaw version from repo root
|
||||
set "OPENCLAW_VERSION_FILE=%~dp0..\OPENCLAW_VERSION"
|
||||
REM Read pinned OpenClaw version from portable root, then repo root in dev checkouts
|
||||
set "OPENCLAW_VERSION_FILE=%~dp0OPENCLAW_VERSION"
|
||||
if not exist "%OPENCLAW_VERSION_FILE%" set "OPENCLAW_VERSION_FILE=%~dp0..\OPENCLAW_VERSION"
|
||||
set "OPENCLAW_VERSION=2026.4.29"
|
||||
if exist "%OPENCLAW_VERSION_FILE%" (
|
||||
for /f "usebackq delims=" %%v in ("%OPENCLAW_VERSION_FILE%") do set "OPENCLAW_VERSION=%%v"
|
||||
|
||||
Reference in New Issue
Block a user