feat(weixin): native official runner and OSS install docs

Default Weixin to official native runner, add /weixin/native/reply host endpoint, and harden gateway stop to clean stale port listeners.
Document open-source installation flow for gateway + Personal WeChat.

Made-with: Cursor
This commit is contained in:
oliver 2026-04-28 19:26:26 +08:00
parent 31e3962c74
commit 88b1fdc9d3
12 changed files with 823 additions and 42 deletions

View file

@ -37,9 +37,15 @@ if (Test-Path $pidFile) {
$ok = Kill-ProcId -procId $procId
if ($ok) {
Remove-Item $pidFile -Force -ErrorAction SilentlyContinue
exit 0
# Keep going to also clean up any orphan listeners on $Port.
} else {
# Stale pid file is common after crashes; fall back to stop-by-port.
if ($Force) {
Remove-Item $pidFile -Force -ErrorAction SilentlyContinue
} else {
Warn "PID file kill failed; falling back to stop-by-port. Re-run with -Force to also clear pid file."
}
}
if (-not $Force) { exit 1 }
}
}