File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
2632Write-Host ' [INFO] Starting OpenClaw Windows Manager...' - ForegroundColor Cyan
2733powershell - NoProfile - ExecutionPolicy Bypass - File $targetFile
You can’t perform that action at this time.
0 commit comments