desktop: fix autoupdater

This commit is contained in:
Abdullah Atta
2024-02-07 13:27:54 +05:00
parent 8eca2cb2b8
commit e92dbadd8e

View File

@@ -26,12 +26,9 @@ const CHANNEL = autoUpdater.currentVersion.raw.endsWith("-beta")
async function configureAutoUpdater() {
autoUpdater.setFeedURL({
provider: "generic",
url: `https://notesnook.com/releases/${process.platform}/`,
url: `https://notesnook.com/api/v1/releases/${process.platform}/${CHANNEL}`,
useMultipleRangeRequest: false,
channel: CHANNEL,
requestHeaders: {
RELEASE_CHANNEL: CHANNEL
}
channel: CHANNEL
});
autoUpdater.autoDownload = config.automaticUpdates;