oclaw/scripts/start_all.ps1
oliver 16169b3de2 fix(desktop): external gateway mode and start script alignment
- Add desktop env for non-embedded gateway (OCLAW_DESKTOP_EMBED_BACKEND, base URL, skip channel).
- Wire start_all/start_desktop to pass gateway URL when keeping existing gateway; fix root start_all flags.
- Prefer electron.cmd for background desktop launch; admin static theme presets and chat boot timeouts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-06 11:06:16 +08:00

31 lines
942 B
PowerShell

param(
[string]$BindHost = "127.0.0.1",
[int]$Port = 8787,
[switch]$SkipInstall = $false,
[switch]$Background = $false,
[switch]$WithoutWeixin = $false,
[switch]$WithoutWhatsApp = $false,
[bool]$WithWikiWorker = $true,
[string]$WeixinChannelId = "oclaw-weixin",
[string]$WeixinGatewayBaseUrl = "",
[string]$WhatsAppChannelId = "whatsapp"
)
$ErrorActionPreference = "Stop"
$real = Join-Path $PSScriptRoot "..\\runtime\\operations\\scripts\\start_all.ps1"
if (-not (Test-Path $real)) {
throw "Forward script target not found: $real"
}
& $real `
-BindHost $BindHost `
-Port $Port `
-SkipInstall:$SkipInstall `
-Background:$Background `
-WithoutWeixin:$WithoutWeixin `
-WithoutWhatsApp:$WithoutWhatsApp `
-WithWikiWorker:$WithWikiWorker `
-WeixinChannelId $WeixinChannelId `
-WeixinGatewayBaseUrl $WeixinGatewayBaseUrl `
-WhatsAppChannelId $WhatsAppChannelId