Skip to content

fix(desktop): use the matching installer for windows delta updates - #1240

Merged
nixuuu merged 2 commits into
devfrom
fix/windows-update-stall
Nov 24, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/windows-update-stall

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 24, 2026

Copy link
Copy Markdown
Member

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.

@nixuuu
nixuuu enabled auto-merge (squash) November 24, 2026 17:20
@nixuuu
nixuuu merged commit 97146e9 into dev Nov 24, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/windows-update-stall branch November 24, 2026 17:28
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