feat(win): hermes wsl installer hooks
This commit is contained in:
12
resources/hermes/install-hermes.ps1
Normal file
12
resources/hermes/install-hermes.ps1
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user