feat(win): hermes wsl installer hooks

This commit is contained in:
DeskClaw Bot
2026-04-21 17:52:26 +00:00
Unverified
parent 5e6d7f9709
commit 9fba7bfdd3
8 changed files with 268 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
$ErrorActionPreference = "Stop"
$wsl = Get-Command wsl.exe -ErrorAction SilentlyContinue
if (-not $wsl) {
Write-Output "WSL2 is required. Install it first: https://learn.microsoft.com/windows/wsl/install"
exit 2
}
& wsl.exe -e bash -lc "command -v curl >/dev/null 2>&1 || (sudo apt-get update -y && sudo apt-get install -y curl)"
& wsl.exe -e bash -lc "curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash"
& wsl.exe -e bash -lc "command -v hermes && hermes --help >/dev/null 2>&1 && echo OK"