Skip to content

Conversation

Copy link

Copilot AI commented Nov 15, 2025

Description of Changes

Windows users encounter sha512 checksum mismatches when updating, indicating the updater attempts differential downloads despite disableDifferentialDownload = true. The electron-updater library has multiple update code paths that must be explicitly disabled on Windows.

Changes:

  • Set autoUpdater.disableWebInstaller = true for Windows in addition to existing disableDifferentialDownload
  • Add platform-aware logging to track update configuration at runtime
  • Preserve macOS/Linux default behavior (differential updates remain enabled)

Configuration:

if (process.platform === 'win32') {
  autoUpdater.disableDifferentialDownload = true;  // Existing
  autoUpdater.disableWebInstaller = true;          // Added
}

This forces full installer downloads (~113MB) on Windows while macOS and Linux continue using efficient differential updates. Build config already has "differentialPackage": false in NSIS settings; runtime now matches.

Linked Issues / Tickets

Fixes Windows 11 update failure with sha512 checksum mismatch error.

Testing Procedure

  • Verified configuration logic for all platforms (Windows, macOS, Linux)
  • Build successful with no errors
  • Confirmed single file change, minimal diff

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have updated CHANGELOG.md with my changes
  • I have run npm run doc and npm run lint one final time before requesting a review
  • I have fixed all linter errors to ensure these changes are compliant with ts-standard
  • I have run npm version patch so that my changes will trigger a new version to be released when they are merged
Original prompt

This section details on the original issue you should resolve

<issue_title>BSV Desktop update fails on Windows 11</issue_title>
<issue_description>My BSV Desktop v0.8.13 reported there was an update, v0.8.14.

I tried to install it but the update failed. I have tried a few times.

Each time I see the message: "update error: sha512 checksum mismatch, expected ORQ...., got z6k...

I use an up-to-date Windows 11.

Image Image

<agent_instructions>Ensure that the Download Update URL used by the update modal is platform specific. On MacOS updates are working properly, so don't change anything there, but if we're on Windows, we have an error when attempting to download. Since the error message mentions a chunk, it seems like we have not properly implemented the proper stable windows approach which is to download the whole release, rather than attempting to download the diff, since this is known to be an electron windows issue.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix BSV Desktop update failure on Windows 11 Fix Windows update sha512 checksum mismatch by disabling differential downloads Nov 15, 2025
Copilot AI requested a review from sirdeggen November 15, 2025 18:05
Copilot finished work on behalf of sirdeggen November 15, 2025 18:05
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.

BSV Desktop update fails on Windows 11

2 participants