Repository navigation
Release the Windows desktop app and turn on its updates - #4733
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| # Native modules ship prebuilt binaries; skipping install scripts keeps | ||
| # the job independent of a C++ toolchain on the runner. |
There was a problem hiding this comment.
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 👍 / 👎.
| 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" |
There was a problem hiding this comment.
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]>
f338030 to
f879e82
Compare
Human comments
What was wrong
The Windows desktop app could be packaged (#4662) but nothing built or published it, and
resolveDesktopUpdateSupportreturned 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: newwindowsjob (Blacksmith Windows 2025) that packages the NSIS x64 installer withdesktop:build:win, smoke tests the packaged app, and writesdesktop-version-windows.json. The singlepublishjob 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: newnightly-desktop-windowsjob with the same shape; the nightly publish requires its version to match the others and uploadsnightly.ymland the Windows feed.WINDOWS_CERTIFICATE_PFXandWINDOWS_CERTIFICATE_PASSWORDto electron-builder asWIN_CSC_LINKandWIN_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.mdanddocs/bb-release-process.mddescribe 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
latest.yml, anddesktop-version-windows.json(generated bydesktop:version-feed). The installed 0.44.0 fetched the version feed andlatest.yml, downloaded the 0.44.1 installer in the background, and after the window was closed the installer ran silently;bb.exethen reported 0.44.1 and the app started. The silent install took about a minute and a half, during whichbb.exewas absent.desktop-update-provider.test.tspasses; 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_dispatchand 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