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