Commit Graph

5 Commits

Author SHA1 Message Date
Rick Mu
966f7e0ac8 Add direct Git download+silent install fallback
When winget and choco are unavailable, download latest Git for
Windows 64-bit from GitHub releases and install silently with
/VERYSILENT flag. Only falls through to manual prompt if all
three methods fail.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 19:05:40 +11:00
Rick Mu
1a84adb97b Add Git install step before OpenClaw (fixes npm ENOENT spawn git)
OpenClaw npm dependencies require git. Add check/install via
winget or choco, with fallback to git-scm.com manual download.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 19:01:15 +11:00
Rick Mu
5e9d63ae1a Fix PowerShell window closing: wrap in try/catch/finally
- Remove $ErrorActionPreference = "Stop" (caused unhandled exits)
- Write-Err now throws to outer catch (shows error, stays open)
- finally block always pauses with Read-Host before closing
- npm output piped through Write-Host to prevent stream errors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 18:58:56 +11:00
Rick Mu
cde26a8f7f Fix: pause on error instead of closing PowerShell window
Replace exit 1 with Read-Host + return so users can read
the error message before the window closes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 18:53:35 +11:00
Rick Mu
40983ec0ee Add English version of Windows install script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 18:51:24 +11:00