From e92dbadd8e55066d9ec6c30fcdd6994381c03261 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 7 Feb 2024 13:27:54 +0500 Subject: [PATCH] desktop: fix autoupdater --- apps/desktop/src/utils/autoupdater.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/desktop/src/utils/autoupdater.ts b/apps/desktop/src/utils/autoupdater.ts index 2d601cf39..30288c634 100644 --- a/apps/desktop/src/utils/autoupdater.ts +++ b/apps/desktop/src/utils/autoupdater.ts @@ -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;