From 271a094f3203d211563daa5ec82f97ffe5ac6e0e Mon Sep 17 00:00:00 2001 From: yougotwill Date: Wed, 19 Feb 2025 17:45:49 +1100 Subject: [PATCH] feat: added generateUpdatesFilesForAllChannels to electorn builder config in the hopes it means it will detect our preleases --- package.json | 1 + ts/updater/updater.ts | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c833bb0f6..8936098a1 100644 --- a/package.json +++ b/package.json @@ -215,6 +215,7 @@ "afterSign": "build/notarize.js", "afterPack": "build/afterPackHook.js", "artifactName": "${name}-${os}-${arch}-${version}.${ext}", + "generateUpdatesFilesForAllChannels": true, "extraResources": [ { "from": "./build/launcher-script.sh", diff --git a/ts/updater/updater.ts b/ts/updater/updater.ts index e8b2e061f..8d50dea31 100644 --- a/ts/updater/updater.ts +++ b/ts/updater/updater.ts @@ -131,11 +131,10 @@ async function checkForUpdates( // Get the update using electron-updater, this fetches from github const result = await autoUpdater.checkForUpdates(); - logger.info('[updater] checkForUpdates got github response back '); + logger.info('[updater] checkForUpdates got github response back', result); if (!result?.updateInfo) { logger.info('[updater] no update info received'); - return; } @@ -209,7 +208,7 @@ function isUpdateAvailable(updateInfo: UpdateInfo): boolean { const updateIsNewer = isVersionGreaterThan(updateVersion, currentVersion); console.log( - `[updater] isUpdateAvailable updateIsNewer: ${updateIsNewer} currentVersion: ${currentVersion} updateVersion: ${updateVersion}` + `[updater] isUpdateAvailable currentVersion: ${currentVersion} updateVersion: ${updateVersion} updateIsNewer: ${updateIsNewer}` ); return updateIsNewer; }