Skip to content

chore: align windows desktop delivery with mainline#949

Merged
PerishCode merged 84 commits intomainfrom
feat/windows-catch-up-mainline
Apr 9, 2026
Merged

chore: align windows desktop delivery with mainline#949
PerishCode merged 84 commits intomainfrom
feat/windows-catch-up-mainline

Conversation

@PerishCode
Copy link
Copy Markdown
Contributor

What

Align the Windows desktop delivery branch with origin/main while landing the standalone Windows installer/update pipeline and vendored 7-Zip packaging flow.

Why

The branch had drifted from main while Windows packaging was still split across older placeholders and local-machine assumptions. This PR brings the branch back onto the current mainline so teammates can validate the new Windows build/release flow on a branch that still boots locally.

How

  • replace the Windows placeholder workflow lanes with real beta/nightly/release packaging and artifact publishing steps
  • add the standalone NSIS-based Windows installer flow, update manifest generation, and Windows update driver wiring
  • vendor 7z.exe/7z.dll into the desktop app and switch dist:win to use the vendored binaries instead of requiring a local 7-Zip install
  • merge origin/main into the branch and adapt the launchd runner stamp test to the structured JSON stamp format used on main
  • validate local regression by running pnpm dev start, pnpm dev status, and pnpm dev stop, plus a successful pnpm --filter @nexu/desktop dist:win

Affected areas

  • Desktop app (Electron shell)
  • Controller (backend / API)
  • Web dashboard (React UI)
  • OpenClaw runtime
  • Skills
  • Shared schemas / packages
  • Build / CI / Tooling

Checklist

  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm test passes
  • pnpm generate-types run (if API routes/schemas changed)
  • No credentials or tokens in code or logs
  • No any types introduced (use unknown with narrowing)

Notes for reviewers

  • The Windows packaging path now assumes vendored 7-Zip for build-time payload creation and installer-time extraction.
  • I verified the branch still boots locally after merging main, but I have not rerun the full typecheck/lint/test suite after the final merge commit.
  • The previous nightly Windows metadata failure was fixed by replacing inline PowerShell node -e mutation with apps/desktop/scripts/desktop-package-version.mjs.

PerishCode and others added 30 commits March 23, 2026 17:06
Switch the NSIS flow to an assisted installer so Windows install and uninstall are visible and data cleanup can be opted into without silent surprises. Restore executable resource editing and use tombstone-based app-data cleanup so shortcuts show the Nexu icon and uninstall stays fast without flashing a console window.
* build(desktop): skip exe editing for unsigned Windows dist

* fix(openclaw-runtime): stabilize Windows postinstall

Keep the full install path available for debugging while making pruned installs skip Windows-native optional dependencies that break postinstall flows.

* fix(desktop): align dev health check with runtime state

* fix(openclaw-runtime): refresh cache on installer changes

* build(desktop): add windows CI coverage

* fix(desktop): avoid sidecar copy symlink loops on windows

* fix(desktop): clean runtime plugin self-links on windows

* build(desktop): scope windows CI to build validation

* fix(desktop): restore mac dist executable discovery

---------

Co-authored-by: mRcfps <1402401442@qq.com>
* feat: add local dev supervisor workflow

* feat: refine local dev workflow and desktop runtime scaffolding

* docs: add dev workflow faq

* fix: remove nested controller tsx watcher

* refactor: share ensure guards across dev process helpers

* chore: remove stale task notes

* refactor: centralize local dev path resolution

* refactor: move dev orchestration into scripts/dev

Keep @nexu/dev-utils focused on atomic helpers so service-level controller and web flows stay easier to reason about and recover. Add lightweight session tracing so leaked dev processes can be correlated and cleaned up without heavy self-healing.

* refactor: clarify scripts dev module boundaries

* feat: externalize dev runtime ownership

* feat: split local dev into explicit service controls

* refactor: remove legacy desktop dev launchers

* fix: run desktop local dev through the Vite supervisor

* fix: harden local dev stack flow

* chore: sync workspace lockfiles

* fix: restore desktop dev auth session
…#651)

* chore: introduce shared desktop lifecycle contract

* chore: move desktop platform lifecycle behind adapters

* chore: centralize desktop platform compatibility

* chore: stage patched OpenClaw runtime for local dev

* chore: log staged OpenClaw runtime usage

* chore: speed up windows desktop build iteration

* chore: disable win executable editing for local builds

* chore: ignore local build cache
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92cda03e95

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/desktop/main/runtime/manifests.ts Outdated
Comment thread apps/desktop/main/updater/windows-update-driver.ts Outdated
Comment thread apps/desktop/main/updater/windows-update-driver.ts
@PerishCode PerishCode merged commit 64fb0fb into main Apr 9, 2026
15 checks passed
@lefarcen lefarcen mentioned this pull request Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants