From ae1556bbae5b061f35e109e05c7b9bf0403bc3c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 15 Nov 2025 17:50:31 +0000 Subject: [PATCH 1/2] Initial plan From c9ac6a36c2846091e12d074f8aa28b89642a3a9d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 15 Nov 2025 18:01:03 +0000 Subject: [PATCH 2/2] Fix Windows update differential download issue Co-authored-by: sirdeggen <8416253+sirdeggen@users.noreply.github.com> --- electron/updater.cjs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/electron/updater.cjs b/electron/updater.cjs index e8b8daf..9f1c347 100644 --- a/electron/updater.cjs +++ b/electron/updater.cjs @@ -14,11 +14,16 @@ autoUpdater.logger.transports.file.level = 'info'; autoUpdater.autoDownload = false; autoUpdater.autoInstallOnAppQuit = false; // Set to false to avoid conflict with manual quitAndInstall() -// Disable differential downloads on Windows to avoid checksum mismatch errors -// This forces full downloads which are more reliable +// Platform-specific update configuration if (process.platform === 'win32') { - log.info('Disabling differential downloads on Windows'); + // Windows: Force full downloads to avoid checksum mismatch errors + // Differential downloads on Windows are known to be unreliable + log.info('[Windows] Disabling differential downloads and web installers - forcing full downloads'); autoUpdater.disableDifferentialDownload = true; + autoUpdater.disableWebInstaller = true; +} else { + // macOS and Linux can use differential downloads safely + log.info(`[${process.platform}] Using default update configuration`); } // Track update state @@ -41,6 +46,7 @@ function initAutoUpdater(mainWindow) { // Update available autoUpdater.on('update-available', (info) => { log.info('Update available:', info); + log.info(`Platform: ${process.platform}, Differential downloads: ${!autoUpdater.disableDifferentialDownload}, Web installers: ${!autoUpdater.disableWebInstaller}`); // Get current version from package.json const { version: currentVersion } = require('../package.json'); @@ -112,6 +118,7 @@ function initAutoUpdater(mainWindow) { // Download update function downloadUpdate() { + log.info(`[${process.platform}] Starting update download - Differential: ${!autoUpdater.disableDifferentialDownload}, WebInstaller: ${!autoUpdater.disableWebInstaller}`); return autoUpdater.downloadUpdate(); }