




















@@ -107,6 +107,10 @@ const defaultOptions = (): WindowsOptions => ({
107107vmName: "Windows 11",
108108});
109109110+const windowsPortableGitPathScript = `$portableGit = Join-Path (Join-Path (Join-Path $env:LOCALAPPDATA 'OpenClaw\\deps') 'portable-git') ''
111+$env:PATH = "$portableGit\\cmd;$portableGit\\mingw64\\bin;$portableGit\\usr\\bin;$env:PATH"
112+where.exe git.exe`;
113+110114function usage(): string {
111115return `Usage: bash scripts/e2e/parallels-windows-smoke.sh [options]
112116@@ -800,9 +804,7 @@ if ((Test-Path $logPath) -or (Test-Path $donePath)) {
800804private runDevChannelUpdate(): void {
801805this.guestPowerShell(
802806`$ErrorActionPreference = 'Stop'
803-$portableGit = Join-Path (Join-Path (Join-Path $env:LOCALAPPDATA 'OpenClaw\\deps') 'portable-git') ''
804-$env:PATH = "$portableGit\\cmd;$portableGit\\mingw64\\bin;$portableGit\\usr\\bin;$env:PATH"
805-where.exe git.exe
807+${windowsPortableGitPathScript}
806808$configPath = Join-Path $env:USERPROFILE '.openclaw\\openclaw.json'
807809$config = Get-Content $configPath -Raw | ConvertFrom-Json
808810if ($null -eq $config.update) {
@@ -822,9 +824,7 @@ Invoke-OpenClaw update status --json`,
822824823825private verifyDevChannelUpdate(): void {
824826const status = this.guestPowerShell(
825-`$portableGit = Join-Path (Join-Path (Join-Path $env:LOCALAPPDATA 'OpenClaw\\deps') 'portable-git') ''
826-$env:PATH = "$portableGit\\cmd;$portableGit\\mingw64\\bin;$portableGit\\usr\\bin;$env:PATH"
827-where.exe git.exe
827+`${windowsPortableGitPathScript}
828828Invoke-OpenClaw update status --json`,
829829);
830830for (const needle of ['"installKind": "git"', '"value": "dev"', '"branch": "main"']) {
@@ -890,6 +890,7 @@ if ($LASTEXITCODE -ne 0) { throw "gateway ${action} failed with exit code $LASTE
890890"agent-turn",
891891`$ErrorActionPreference = 'Continue'
892892$PSNativeCommandUseErrorActionPreference = $false
893+${windowsPortableGitPathScript}
893894Invoke-OpenClaw models set ${psSingleQuote(this.auth.modelId)}
894895if ($LASTEXITCODE -ne 0) { throw "models set failed" }
895896${windowsModelProviderTimeoutScript(this.auth.modelId)}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。