Skip to content

Release the Windows desktop app and turn on its updates - #4733

Merged
SawyerHood merged 1 commit into
mainfrom
bb/windows-desktop-release-thr_jensq3v9th
Oct 2, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/windows-desktop-release-thr_jensq3v9th

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The Windows desktop app could be packaged (#4662) but nothing built or published it, and resolveDesktopUpdateSupport returned no version check and no auto-update for Windows, so an installed Windows app would never learn about a newer release. Part of #1206.

What changed

  • .github/workflows/build-desktop.yml: new windows job (Blacksmith Windows 2025) that packages the NSIS x64 installer with desktop:build:win, smoke tests the packaged app, and writes desktop-version-windows.json. The single publish job now needs it and uploads the installer, block map, latest.yml, and the Windows feed with the other platforms. A Windows build failure therefore stops the release, as a Linux one does.
  • .github/workflows/publish-bb-app.yml: new nightly-desktop-windows job with the same shape; the nightly publish requires its version to match the others and uploads nightly.yml and the Windows feed.
  • Signing: both Windows jobs pass WINDOWS_CERTIFICATE_PFX and WINDOWS_CERTIFICATE_PASSWORD to electron-builder as WIN_CSC_LINK and WIN_CSC_KEY_PASSWORD. With neither secret the installer is unsigned and still published (Windows SmartScreen warns before running it); with only one the stable job fails.
  • apps/desktop/src/desktop-update-provider.ts: Windows checks its version feed and installs updates through electron-updater, like macOS.
  • apps/desktop/README.md and docs/bb-release-process.md describe the Windows artifacts, feeds, and secrets.

The Windows jobs do not run the desktop and launcher unit tests that the macOS and Linux jobs run; those suites pass on Windows only with #4738 and #4739.

How you verified

  • Windows 11 Enterprise VM (build 26300): built installers for 0.44.0 and 0.44.1 from this change with the update URL pointed at a local HTTP server holding the 0.44.1 installer, block map, latest.yml, and desktop-version-windows.json (generated by desktop:version-feed). The installed 0.44.0 fetched the version feed and latest.yml, downloaded the 0.44.1 installer in the background, and after the window was closed the installer ran silently; bb.exe then reported 0.44.1 and the app started. The silent install took about a minute and a half, during which bb.exe was absent.
  • Linux: desktop-update-provider.test.ts passes; both workflow files parse as YAML. On this branch before the last rebase, turbo run lint typecheck test --filter='...[origin/main]': 14 of 14 tasks passed. After the rebase onto current main, lint and typecheck pass for the same filter.

Not verified: the workflow jobs have never run (they only run from workflow_dispatch and the nightly schedule); signing with a real certificate; the Relaunch button path (the install-on-quit path is what the test above exercised).

🤖 Generated with Claude Code

AGENT GENERATED

@SawyerHood
SawyerHood marked this pull request as ready for review October 2, 2026 16:50
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T16:54:24.889207Z f338030 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: f338030ca9

ℹ️ 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 on lines +243 to +244
# Native modules ship prebuilt binaries; skipping install scripts keeps
# the job independent of a C++ toolchain on the runner.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove the added workflow comments

This explanatory YAML comment, along with the other new # comments added throughout both workflow files, violates the repository-wide prohibition on code comments. Remove the comments and keep any necessary operational explanation in the release documentation instead.

AGENTS.md reference: AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

Comment on lines +266 to +268
if [[ "$present" -eq 0 ]]; then
echo "::warning::Windows signing secrets are not configured; building an unsigned installer. Windows SmartScreen warns before running it."
echo "has_signing_secrets=false" >> "$GITHUB_OUTPUT"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require signing before publishing Windows updates

When both signing secrets are temporarily absent, this branch deliberately continues with an unsigned installer, and the publish job still advances the Windows update feed. A client installed from an earlier signed release carries that publisher identity in its updater configuration, so electron-updater rejects the unsigned replacement rather than installing it; the affected release is therefore unusable through auto-update for existing signed clients. Gate Windows publication on signing once signed releases exist instead of treating SmartScreen as the only consequence of missing secrets.

Useful? React with 👍 / 👎.

Nothing built or published the Windows installer, and the Windows app
neither checked for nor installed updates. The stable and nightly
workflows gain a Windows x64 job that packages the NSIS installer, smoke
tests it, and writes desktop-version-windows.json; the single publish job
now requires and uploads the Windows installer, block map, updater
metadata, and feed with the other platforms. The installer is signed when
the Windows certificate secrets are set and published unsigned otherwise.
The app now checks the Windows feed and installs updates through
electron-updater on quit or relaunch.

Co-Authored-By: Claude Code <[email protected]>
@SawyerHood
SawyerHood force-pushed the bb/windows-desktop-release-thr_jensq3v9th branch from f338030 to f879e82 Compare October 2, 2026 17:29
@SawyerHood
SawyerHood merged commit 8612e60 into main Oct 2, 2026
31 checks passed
@SawyerHood
SawyerHood deleted the bb/windows-desktop-release-thr_jensq3v9th branch October 2, 2026 18:17
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.

1 participant