fix(portable): honor bundled OpenClaw version on USB

This commit is contained in:
hfshfg
2026-06-20 15:59:09 +08:00
parent 8981c21262
commit 19774a89ab
4 changed files with 12 additions and 5 deletions

View File

@@ -204,7 +204,10 @@ if ($AllPlatforms) {
$packageJsonPath = Join-Path $coreDir "package.json"
if (-not (Test-Path -Path $packageJsonPath -PathType Leaf)) {
$openclawVersionFile = Join-Path $PSScriptRoot "..\OPENCLAW_VERSION"
$openclawVersionFile = Join-Path $PSScriptRoot "OPENCLAW_VERSION"
if (-not (Test-Path -Path $openclawVersionFile -PathType Leaf)) {
$openclawVersionFile = Join-Path $PSScriptRoot "..\OPENCLAW_VERSION"
}
$openclawVersion = "2026.4.29"
if (Test-Path -Path $openclawVersionFile -PathType Leaf) {
$openclawVersion = (Get-Content -Path $openclawVersionFile -Raw).Trim()