feat: added generateUpdatesFilesForAllChannels to electorn builder config

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

@ -215,6 +215,7 @@
"afterSign": "build/notarize.js", "afterSign": "build/notarize.js",
"afterPack": "build/afterPackHook.js", "afterPack": "build/afterPackHook.js",
"artifactName": "${name}-${os}-${arch}-${version}.${ext}", "artifactName": "${name}-${os}-${arch}-${version}.${ext}",
"generateUpdatesFilesForAllChannels": true,
"extraResources": [ "extraResources": [
{ {
"from": "./build/launcher-script.sh", "from": "./build/launcher-script.sh",

@ -131,11 +131,10 @@ async function checkForUpdates(
// Get the update using electron-updater, this fetches from github // Get the update using electron-updater, this fetches from github
const result = await autoUpdater.checkForUpdates(); 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) { if (!result?.updateInfo) {
logger.info('[updater] no update info received'); logger.info('[updater] no update info received');
return; return;
} }
@ -209,7 +208,7 @@ function isUpdateAvailable(updateInfo: UpdateInfo): boolean {
const updateIsNewer = isVersionGreaterThan(updateVersion, currentVersion); const updateIsNewer = isVersionGreaterThan(updateVersion, currentVersion);
console.log( console.log(
`[updater] isUpdateAvailable updateIsNewer: ${updateIsNewer} currentVersion: ${currentVersion} updateVersion: ${updateVersion}` `[updater] isUpdateAvailable currentVersion: ${currentVersion} updateVersion: ${updateVersion} updateIsNewer: ${updateIsNewer}`
); );
return updateIsNewer; return updateIsNewer;
} }

Loading…
Cancel
Save