Force a feed URL

This commit is contained in:
Manav Rathi
2024-05-07 16:26:17 +05:30
parent 40abb5c0ac
commit abe8a5eed0

View File

@@ -53,6 +53,12 @@ export const setupAutoUpdater = (mainWindow: BrowserWindow) => {
autoUpdater.forceDevUpdateConfig = isDev;
if (isDev) return;
autoUpdater.setFeedURL({
provider: "github",
owner: "mnvr",
repo: "test-updates",
});
const oneDay = 1 * 24 * 60 * 60 * 1000;
setInterval(() => void checkForUpdatesAndNotify(mainWindow), oneDay);
void checkForUpdatesAndNotify(mainWindow);