Repository navigation
fix(desktop): use the matching installer for windows delta updates - #1240
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 24, 2026 17:20
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows desktop updates
When Canopy downloads a newer build while an earlier installer is ready, electron-updater looks for the differential base in the replacement cache. A missing installer.exe there caused ENOENT and a full download. The reported shutdown four seconds into a download remains unexplained.
Pair the previous staged installer with its blockmap. When that map is unavailable, try the installed release's installer and map. Keep the previous verified installer available if a replacement is cancelled. Preserve full-download fallback and signature verification.
Record the download fallback, recognised error codes, quit requests and updater state at shutdown in the local desktop log. After an interrupted update request, show the last recorded phase.
Fixes: #207
Verification
36 focused desktop tests passed on Linux, including range downloads with the pinned NSIS updater, cancellation, cold-start recovery and diagnostic filtering. Desktop typecheck and edited-file lint passed. Native Windows x64 installation and Authenticode verification remain unverified locally. Full repository checks run in CI.
Copy audit
Replaced the generic interrupted-update message with the last recorded step and the action “Retry the update.” The messages use short sentences and existing update terminology. Existing error details display the messages. No controls or layout changed. Responsive rendering of the new strings was not checked locally.