feat: added generateUpdatesFilesForAllChannels to electorn builder config

in the hopes it means it will detect our preleases
pull/3281/head
yougotwill 2 months ago
parent b7d97ef31d
commit 271a094f32

@ -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",

@ -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;
}

Loading…
Cancel
Save