Skip to content

Commit afa6218

Browse files
ranjeshjCopilotKeith Mahoney
authored
Consolidate setup UI into tray host (#690)
* Consolidate setup UI into tray host Host setup UI from the tray executable and use a guarded self-restart after setup completes. Remove the separate setup UI executable from build, signing, and Inno packaging while keeping setup engine/UI code isolated as referenced projects. Co-authored-by: Copilot <[email protected]> * Avoid blank windows during tray-hosted setup launch Delay setup and hub activation until initial frame content is ready, and prevent setup startup from also processing hub deep links. This avoids blank shells without placeholder loading UI. Co-authored-by: Copilot <[email protected]> * Fix setup wizard cancel disconnect Remove duplicate disconnect from the hosted setup wizard cancellation path. Co-authored-by: Copilot <[email protected]> * Keep setup restart resilient to autostart failures Log autostart enable failures after setup without blocking the tray restart handoff. Co-authored-by: Copilot <[email protected]> * Fix UI tests --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Keith Mahoney <[email protected]>
1 parent 99efc50 commit afa6218

33 files changed

Lines changed: 591 additions & 412 deletions

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,6 @@ jobs:
388388
- name: Publish WinUI Tray App
389389
run: dotnet publish src/OpenClaw.Tray.WinUI -c Release -r ${{ matrix.rid }} --self-contained --no-restore -o publish
390390

391-
- name: Publish SetupEngine.UI
392-
run: |
393-
dotnet publish src/OpenClaw.SetupEngine.UI -c Release -r ${{ matrix.rid }} --self-contained -o publish-setup
394-
mkdir publish\SetupEngine
395-
copy publish-setup\* publish\SetupEngine\ -Recurse
396-
397391
- name: Verify x64 Native Runtime Payload
398392
if: matrix.rid == 'win-x64'
399393
shell: pwsh
@@ -568,16 +562,12 @@ jobs:
568562
run: |
569563
New-Item -ItemType Directory -Path signing-input-x64 -Force | Out-Null
570564
New-Item -ItemType HardLink -Path signing-input-x64\OpenClaw.Tray.WinUI.exe -Target artifacts\tray-win-x64\OpenClaw.Tray.WinUI.exe | Out-Null
571-
New-Item -ItemType HardLink -Path signing-input-x64\OpenClaw.SetupEngine.exe -Target artifacts\tray-win-x64\SetupEngine\OpenClaw.SetupEngine.exe | Out-Null
572-
New-Item -ItemType HardLink -Path signing-input-x64\OpenClaw.SetupEngine.UI.exe -Target artifacts\tray-win-x64\SetupEngine\OpenClaw.SetupEngine.UI.exe | Out-Null
573565
574566
- name: Stage ARM64 OpenClaw Executables for Signing
575567
shell: pwsh
576568
run: |
577569
New-Item -ItemType Directory -Path signing-input-arm64 -Force | Out-Null
578570
New-Item -ItemType HardLink -Path signing-input-arm64\OpenClaw.Tray.WinUI.exe -Target artifacts\tray-win-arm64\OpenClaw.Tray.WinUI.exe | Out-Null
579-
New-Item -ItemType HardLink -Path signing-input-arm64\OpenClaw.SetupEngine.exe -Target artifacts\tray-win-arm64\SetupEngine\OpenClaw.SetupEngine.exe | Out-Null
580-
New-Item -ItemType HardLink -Path signing-input-arm64\OpenClaw.SetupEngine.UI.exe -Target artifacts\tray-win-arm64\SetupEngine\OpenClaw.SetupEngine.UI.exe | Out-Null
581571
582572
- name: Sign x64 OpenClaw Executables
583573
uses: azure/artifact-signing-action@v2

‎build.ps1‎

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ $projects = @{
349349
"WinNodeCli" = @{ Path = "src/OpenClaw.WinNode.Cli/OpenClaw.WinNode.Cli.csproj"; UseRid = $false }
350350
"Tray" = @{ Path = "src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj"; UseRid = $true }
351351
"WinUI" = @{ Path = "src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj"; UseRid = $true }
352-
"SetupEngine" = @{ Path = "src/OpenClaw.SetupEngine.UI/OpenClaw.SetupEngine.UI.csproj"; UseRid = $true }
352+
"SetupEngine" = @{ Path = "src/OpenClaw.SetupEngine/OpenClaw.SetupEngine.csproj"; UseRid = $false }
353353
}
354354

355355
$toBuild = if ($Project -eq "All") { @("Shared", "Cli", "WinNodeCli", "SetupEngine", "WinUI") } else { @($Project) }
@@ -371,26 +371,6 @@ for ($i = 0; $i -lt $toBuild.Count; $i++) {
371371
}
372372
}
373373

374-
# =============================================================================
375-
# POST-BUILD: Copy SetupEngine.UI into WinUI output so the tray can find it
376-
# =============================================================================
377-
if (($buildResults.ContainsKey("SetupEngine") -and $buildResults["SetupEngine"]) -and
378-
(($buildResults.ContainsKey("WinUI") -and $buildResults["WinUI"]) -or ($buildResults.ContainsKey("Tray") -and $buildResults["Tray"]))) {
379-
$setupTfm = Get-ProjectTargetFramework $projects["SetupEngine"].Path
380-
$winUITfm = Get-ProjectTargetFramework $projects["WinUI"].Path
381-
if ($setupTfm -and $winUITfm) {
382-
$setupOutDir = "src\OpenClaw.SetupEngine.UI\bin\$Configuration\$setupTfm\$rid"
383-
$winUIOutDir = "src\OpenClaw.Tray.WinUI\bin\$Configuration\$winUITfm\$rid"
384-
$destDir = Join-Path $winUIOutDir "SetupEngine"
385-
if (Test-Path $setupOutDir) {
386-
if (-not (Test-Path $destDir)) { New-Item -ItemType Directory -Path $destDir -Force | Out-Null }
387-
Copy-Item "$setupOutDir\*" $destDir -Recurse -Force
388-
Write-Info "Copied SetupEngine.UI output → $destDir"
389-
}
390-
}
391-
}
392-
# =============================================================================
393-
394374
Write-Header "Build Summary"
395375

396376
$successCount = ($buildResults.Values | Where-Object { $_ -eq $true }).Count

‎docs/RELEASING.md‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build/sign/publish release artifacts.
2121
```powershell
2222
Select-String .\.github\workflows\ci.yml -Pattern `
2323
"Verify Release Executable Signing Policy", `
24-
"OpenClaw.SetupEngine.exe", `
24+
"OpenClaw.Tray.WinUI.exe", `
2525
"build-msix:", `
2626
"Paused for alpha"
2727
```
@@ -85,14 +85,11 @@ identity.
8585
OpenClaw-owned executables:
8686

8787
- `OpenClaw.Tray.WinUI.exe`
88-
- `SetupEngine\OpenClaw.SetupEngine.exe`
89-
- `SetupEngine\OpenClaw.SetupEngine.UI.exe`
9088

9189
Third-party/runtime executables that must not be OpenClaw-signed:
9290

9391
- `tools\mxc\<arch>\wxc-exec.exe`
9492
- `createdump.exe`
95-
- `SetupEngine\createdump.exe`
9693
- `RestartAgent.exe`
9794
- `SetupEngine\RestartAgent.exe`
9895

@@ -185,8 +182,6 @@ Expected:
185182
- Installer EXEs are signed.
186183
- In ZIP payload:
187184
- `OpenClaw.Tray.WinUI.exe` is OpenClaw-signed.
188-
- `SetupEngine\OpenClaw.SetupEngine.exe` is OpenClaw-signed.
189-
- `SetupEngine\OpenClaw.SetupEngine.UI.exe` is OpenClaw-signed.
190185
- `wxc-exec.exe`, `createdump.exe`, and `RestartAgent.exe` are not
191186
OpenClaw-signed.
192187

‎docs/SETUP_ENGINE_REDESIGN.md‎

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22

33
## Overview
44

5-
The Setup Engine is a **standalone, config-driven system** for provisioning an OpenClaw WSL gateway from scratch. It consists of two projects:
5+
The Setup Engine is a **config-driven system** for provisioning an OpenClaw WSL gateway from scratch. It consists of two setup projects plus the tray host:
66

7-
1. **`OpenClaw.SetupEngine`** — Headless pipeline (console exe). Runs 18 steps sequentially with full JSONL logging, transaction journal, and rollback support.
8-
2. **`OpenClaw.SetupEngine.UI`** — WinUI3 app that wraps the same pipeline with a 5-page fluent wizard UI.
7+
1. **`OpenClaw.SetupEngine`** — Headless pipeline library. Runs 18 steps sequentially with full JSONL logging, transaction journal, and rollback support.
8+
2. **`OpenClaw.SetupEngine.UI`** — WinUI3 setup window/pages that wrap the same pipeline with a fluent wizard UI.
9+
3. **`OpenClaw.Tray.WinUI`** — The only shipped WinUI executable. It hosts `SetupWindow` directly and self-restarts after successful setup.
910

10-
Both accept a JSON config file to customize behavior. A bundled `default-config.json` ships with each exe and provides secure defaults (loopback bind, WSL isolation, systemd enabled). All defaults can be overridden via config file or environment variables.
11+
The bundled `default-config.json` ships with the tray executable and provides secure defaults (loopback bind, WSL isolation, systemd enabled). Defaults can be overridden via config file or environment variables.
1112

1213
---
1314

1415
## Architecture
1516

1617
```
1718
┌─────────────────────────────────────────────────────────────┐
18-
│ OpenClaw.SetupEngine (net10.0, console exe) │
19+
│ OpenClaw.SetupEngine (net10.0 library) │
1920
│ │
2021
│ SetupPipeline ──→ 18 SetupStep classes ──→ StepResult │
2122
│ │ │ │
@@ -29,8 +30,14 @@ Both accept a JSON config file to customize behavior. A bundled `default-config.
2930
│
3031
┌─────────────────────────────────────────────────────────────┐
3132
│ OpenClaw.SetupEngine.UI (net10.0-windows10.0.22621, WinUI3)│
32-
│ 5 pages, direct code-behind, no MVVM │
33+
│ SetupWindow + pages, direct code-behind, no MVVM │
3334
│ Welcome → Capabilities → Progress → Permissions → Complete │
35+
└─────────────────────────────────────────────────────────────┘
36+
▲ hosted by project reference
37+
│
38+
┌─────────────────────────────────────────────────────────────┐
39+
│ OpenClaw.Tray.WinUI.exe │
40+
│ setup launch/focus, advanced setup route, self-restart │
3441
└─────────────────────────────────────────────────────────────┘
3542
```
3643

@@ -40,8 +47,8 @@ Both accept a JSON config file to customize behavior. A bundled `default-config.
4047

4148
```
4249
src/OpenClaw.SetupEngine/
43-
├── OpenClaw.SetupEngine.csproj # net10.0, console exe
44-
├── Program.cs # CLI entry: --config, --headless, --dry-run, --rollback-on-failure
50+
├── OpenClaw.SetupEngine.csproj # net10.0 library
51+
├── Program.cs # callable entry: --config, --headless, --dry-run, --rollback-on-failure
4552
├── SetupPipeline.cs # Sequential step orchestrator (132 lines)
4653
├── SetupContext.cs # Config model + shared state bag (217 lines)
4754
├── SetupSteps.cs # All setup step implementations
@@ -53,10 +60,8 @@ src/OpenClaw.SetupEngine/
5360
└── default-config.json # THE source of truth for all config values
5461
5562
src/OpenClaw.SetupEngine.UI/
56-
├── OpenClaw.SetupEngine.UI.csproj # WinAppSDK 2.1.3, self-contained
57-
├── App.xaml / App.xaml.cs # Application entry
58-
├── Program.cs # Main with WinUI activation
59-
├── SetupWindow.xaml / .xaml.cs # 720×820 window, Mica, title bar, navigation
63+
├── OpenClaw.SetupEngine.UI.csproj # WinAppSDK 2.1.3 library referenced by tray
64+
├── SetupWindow.xaml / .xaml.cs # 720×820 window, Mica, title bar, navigation, setup events
6065
└── Pages/
6166
├── WelcomePage.xaml / .cs # Logo, info card, Install button + ContentDialog
6267
├── CapabilitiesPage.xaml / .cs # 2-column grid with icons + descriptions
@@ -284,8 +289,8 @@ The WinUI app is a **thin shell** — no business logic, just rendering pipeline
284289
- Party popper image
285290
- "All set!" / error heading
286291
- Amber "Node Mode Active" warning banner
287-
- "Launch OpenClaw at startup?" toggle (writes HKCU Run registry)
288-
- "Finish" button launches tray and closes
292+
- "Launch OpenClaw at startup?" toggle (reported to tray host)
293+
- "Finish" button asks the tray host to self-restart and open chat
289294

290295
### Window Properties
291296
- 720×820 logical pixels (DPI-scaled)
@@ -296,29 +301,28 @@ The WinUI app is a **thin shell** — no business logic, just rendering pipeline
296301

297302
## CLI Usage
298303

299-
### Headless (Console Exe)
304+
### Headless runner
300305

301306
```
302-
OpenClaw.SetupEngine.exe # uses bundled default-config.json
303-
OpenClaw.SetupEngine.exe --config custom.json # explicit config
304-
OpenClaw.SetupEngine.exe --config custom.json --headless # force headless
305-
OpenClaw.SetupEngine.exe --dry-run # validate config, don't execute
306-
OpenClaw.SetupEngine.exe --rollback-on-failure # clean up on failure
307-
OpenClaw.SetupEngine.exe --no-rollback-on-failure # explicit rollback opt-out
308-
OpenClaw.SetupEngine.exe --log-path ./trace.log # override log location
307+
OpenClaw.SetupEngine.Program.Main(args) # uses bundled default-config.json
308+
OpenClaw.SetupEngine.Program.Main(["--config", "custom.json"])
309+
OpenClaw.SetupEngine.Program.Main(["--headless"])
310+
OpenClaw.SetupEngine.Program.Main(["--dry-run"]) # validate config, don't execute
311+
OpenClaw.SetupEngine.Program.Main(["--rollback-on-failure"])
312+
OpenClaw.SetupEngine.Program.Main(["--no-rollback-on-failure"])
313+
OpenClaw.SetupEngine.Program.Main(["--log-path", "./trace.log"])
309314
```
310315

311316
Exit codes: 0 = success, 1 = failure
312317

313-
### UI (WinUI Exe)
318+
### UI (hosted by tray)
314319

315-
```
316-
OpenClaw.SetupEngine.UI.exe # uses bundled default-config.json
317-
OpenClaw.SetupEngine.UI.exe --config custom.json # explicit config
318-
OpenClaw.SetupEngine.UI.exe --no-rollback-on-failure # debug opt-out from UI cleanup
320+
```
321+
OpenClaw.Tray.WinUI.exe openclaw://setup # opens/focuses hosted setup window
322+
OpenClaw.Tray.WinUI.exe --post-setup-restart --wait-for-pid <oldPid> --post-setup-launch chat
319323
```
320324

321-
Uses the bundled default config when no explicit `--config` is supplied.
325+
The tray hosts `SetupWindow` from `OpenClaw.SetupEngine.UI`. After successful setup it starts a fresh tray process and exits, preserving clean post-setup state without shipping a second WinUI app.
322326

323327
---
324328

@@ -328,14 +332,15 @@ Uses the bundled default config when no explicit `--config` is supplied.
328332
# Build headless engine
329333
dotnet build src\OpenClaw.SetupEngine\OpenClaw.SetupEngine.csproj
330334
331-
# Build UI app (requires Platform specification)
332-
dotnet build src\OpenClaw.SetupEngine.UI\OpenClaw.SetupEngine.UI.csproj -p:Platform=x64
335+
# Build tray-hosted UI
336+
dotnet build src\OpenClaw.Tray.WinUI\OpenClaw.Tray.WinUI.csproj -r win-x64
337+
338+
# Run hosted setup
339+
& "src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe" openclaw://setup
333340
334-
# Run UI
335-
Start-Process "src\OpenClaw.SetupEngine.UI\bin\x64\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.SetupEngine.UI.exe"
341+
# Run headless uninstall through the tray executable
342+
& "src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe" --uninstall --dry-run
336343
337-
# Run headless
338-
& "src\OpenClaw.SetupEngine\bin\Debug\net10.0\OpenClaw.SetupEngine.exe"
339344
```
340345

341346
---

‎installer.iss‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
5858
#define publish "publish"
5959
#endif
6060

61-
#if !FileExists(publish + "\SetupEngine\OpenClaw.SetupEngine.UI.exe")
62-
#error SetupEngine.UI payload missing. Publish OpenClaw.SetupEngine.UI into {#publish}\SetupEngine before compiling the installer.
61+
#if !FileExists(publish + "\OpenClaw.Tray.WinUI.exe")
62+
#error Tray payload missing. Publish OpenClaw.Tray.WinUI before compiling the installer.
63+
#endif
64+
65+
#if FileExists(publish + "\SetupEngine\OpenClaw.SetupEngine.UI.exe")
66+
#error SetupEngine.UI.exe should not be shipped. Setup UI is hosted by OpenClaw.Tray.WinUI.exe.
6367
#endif
6468

6569
; vcRedist should point at the architecture-matching Visual C++ Runtime
@@ -89,7 +93,7 @@ Root: HKCU; Subkey: "Software\Classes\openclaw\shell\open\command"; ValueType: s
8993

9094
[Icons]
9195
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
92-
Name: "{group}\OpenClaw Gateway Setup"; Filename: "{app}\SetupEngine\OpenClaw.SetupEngine.UI.exe"; IconFilename: "{app}\SetupEngine\OpenClaw.SetupEngine.UI.exe"
96+
Name: "{group}\OpenClaw Gateway Setup"; Filename: "{app}\{#MyAppExeName}"; Parameters: "openclaw://setup"; IconFilename: "{app}\{#MyAppExeName}"
9397
Name: "{group}\OpenClaw Companion Settings"; Filename: "{app}\{#MyAppExeName}"; Parameters: "openclaw://commandcenter"; IconFilename: "{app}\{#MyAppExeName}"
9498
Name: "{group}\OpenClaw Chat"; Filename: "{app}\{#MyAppExeName}"; Parameters: "openclaw://chat"; IconFilename: "{app}\{#MyAppExeName}"
9599
Name: "{group}\Check for Updates"; Filename: "{app}\{#MyAppExeName}"; Parameters: "openclaw://check-updates"; IconFilename: "{app}\{#MyAppExeName}"

‎scripts/Test-ReleaseExecutableSignatures.ps1‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ function Get-ExecutableClassification {
4646

4747
switch -Regex ($RelativePath) {
4848
'^OpenClaw\.Tray\.WinUI\.exe$' { return "OpenClawOwned" }
49-
'^SetupEngine\\OpenClaw\.SetupEngine\.exe$' { return "OpenClawOwned" }
50-
'^SetupEngine\\OpenClaw\.SetupEngine\.UI\.exe$' { return "OpenClawOwned" }
5149
'(^|\\)createdump\.exe$' { return "ThirdPartyExcluded" }
5250
'(^|\\)RestartAgent\.exe$' { return "ThirdPartyExcluded" }
5351
'^tools\\mxc\\[^\\]+\\wxc-exec\.exe$' { return "ThirdPartyExcluded" }
@@ -100,11 +98,11 @@ foreach ($exe in $executables) {
10098
if (-not ($executables | Where-Object RelativePath -eq "OpenClaw.Tray.WinUI.exe")) {
10199
$errors.Add("Missing OpenClaw.Tray.WinUI.exe.")
102100
}
103-
if (-not ($executables | Where-Object RelativePath -eq "SetupEngine\OpenClaw.SetupEngine.exe")) {
104-
$errors.Add("Missing SetupEngine\OpenClaw.SetupEngine.exe.")
101+
if ($executables | Where-Object RelativePath -eq "SetupEngine\OpenClaw.SetupEngine.UI.exe") {
102+
$errors.Add("SetupEngine\OpenClaw.SetupEngine.UI.exe should not be present in the release payload.")
105103
}
106-
if (-not ($executables | Where-Object RelativePath -eq "SetupEngine\OpenClaw.SetupEngine.UI.exe")) {
107-
$errors.Add("Missing SetupEngine\OpenClaw.SetupEngine.UI.exe.")
104+
if ($executables | Where-Object RelativePath -eq "SetupEngine\OpenClaw.SetupEngine.exe") {
105+
$errors.Add("SetupEngine\OpenClaw.SetupEngine.exe should not be present in the release payload.")
108106
}
109107
if (-not ($executables | Where-Object RelativePath -match '^tools\\mxc\\[^\\]+\\wxc-exec\.exe$')) {
110108
$errors.Add("Missing tools\mxc\<arch>\wxc-exec.exe third-party executable.")

‎scripts/build-inno-local.ps1‎

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Build local OpenClaw Companion Inno installers for quick validation.
44
55
.DESCRIPTION
6-
Publishes the tray app and SetupEngine.UI into a production-style layout,
7-
then runs ISCC to create local unsigned installers.
6+
Publishes the tray app into a production-style layout, then runs ISCC to
7+
create local unsigned installers.
88
99
Use -NoPublish after changing only installer.iss or docs/tests; it reuses
1010
the existing publish-local-* payloads and only recompiles Inno.
@@ -89,10 +89,9 @@ function Publish-ArchitecturePayload {
8989
)
9090

9191
$publishDir = Join-Path $repoRoot "publish-local-$Architecture"
92-
$setupPublishDir = Join-Path $repoRoot "publish-local-setup-$Architecture"
9392

9493
Write-Step "Publishing $Architecture payload"
95-
Remove-Item -LiteralPath $publishDir, $setupPublishDir -Recurse -Force -ErrorAction SilentlyContinue
94+
Remove-Item -LiteralPath $publishDir -Recurse -Force -ErrorAction SilentlyContinue
9695
New-Item -ItemType Directory -Path $publishDir | Out-Null
9796

9897
$trayPublishArgs = @(
@@ -111,42 +110,21 @@ function Publish-ArchitecturePayload {
111110
if ($LASTEXITCODE -ne 0) {
112111
throw "Tray publish failed for $Architecture."
113112
}
114-
115-
$setupPublishArgs = @(
116-
".\src\OpenClaw.SetupEngine.UI\OpenClaw.SetupEngine.UI.csproj",
117-
"-c", $Configuration,
118-
"-r", $RuntimeIdentifier,
119-
"--self-contained",
120-
"-o", $setupPublishDir,
121-
"-v:minimal"
122-
)
123-
if ($PublishVersion) {
124-
$setupPublishArgs += "-p:Version=$PublishVersion"
125-
}
126-
127-
dotnet publish @setupPublishArgs
128-
if ($LASTEXITCODE -ne 0) {
129-
throw "SetupEngine.UI publish failed for $Architecture."
130-
}
131-
132-
$setupDest = Join-Path $publishDir "SetupEngine"
133-
New-Item -ItemType Directory -Path $setupDest -Force | Out-Null
134-
Copy-Item -Path (Join-Path $setupPublishDir "*") -Destination $setupDest -Recurse -Force
135113
}
136114

137115
function Assert-PayloadReady {
138116
param([string]$Architecture)
139117

140118
$publishDir = Join-Path $repoRoot "publish-local-$Architecture"
141119
$trayExe = Join-Path $publishDir "OpenClaw.Tray.WinUI.exe"
142-
$setupExe = Join-Path $publishDir "SetupEngine\OpenClaw.SetupEngine.UI.exe"
143120

144121
if (-not (Test-Path -LiteralPath $trayExe)) {
145122
throw "Missing tray payload at $trayExe. Rerun without -NoPublish."
146123
}
147124

148-
if (-not (Test-Path -LiteralPath $setupExe)) {
149-
throw "Missing setup payload at $setupExe. Rerun without -NoPublish."
125+
$setupExe = Get-ChildItem -LiteralPath $publishDir -Recurse -File -Filter "OpenClaw.SetupEngine.UI.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
126+
if ($setupExe) {
127+
throw "SetupEngine.UI.exe should not be present in the installer payload: $($setupExe.FullName)"
150128
}
151129

152130
return $publishDir

‎src/OpenClaw.SetupEngine.UI/App.xaml‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)