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,10 @@
$ErrorActionPreference = "Stop"
$wsl = Get-Command wsl.exe -ErrorAction SilentlyContinue
if (-not $wsl) {
Write-Output "WSL2 is required."
exit 2
}
& wsl.exe -e bash -lc "command -v hermes >/dev/null 2>&1 || exit 3; nohup hermes gateway start >/tmp/hermes-gateway.log 2>&1 </dev/null & echo STARTED"