Skip to content

Commit e5de2a7

Browse files
author
Kejilion Assistant
committed
fix: force fresh manager download and verify Chinese build in installer
1 parent d50ee3d commit e5de2a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

windows/openclaw-manager/install.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
1010
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
1111

1212
$managerUrl = 'https://raw.githubusercontent.com/kejilion/sh/main/windows/openclaw-manager/openclaw-win-manager.ps1'
13+
$managerUrl = "$managerUrl?ts=$([DateTimeOffset]::Now.ToUnixTimeSeconds())"
1314
$targetDir = Join-Path $env:ProgramData 'kejilion\openclaw'
1415
$targetFile = Join-Path $targetDir 'openclaw-win-manager.ps1'
1516

@@ -23,5 +24,10 @@ if ((Get-Item $targetFile).Length -lt 2000) {
2324
throw 'Downloaded file is too small, abort.'
2425
}
2526

27+
$raw = Get-Content -Path $targetFile -Raw
28+
if ($raw -notmatch 'OpenClaw Windows 管理') {
29+
throw 'Downloaded manager is not the latest Chinese build, abort.'
30+
}
31+
2632
Write-Host '[INFO] Starting OpenClaw Windows Manager...' -ForegroundColor Cyan
2733
powershell -NoProfile -ExecutionPolicy Bypass -File $targetFile

0 commit comments

Comments
 (0)