Check release channel each time.
This commit is contained in:
@@ -2,7 +2,6 @@ import { autoUpdater } from "electron-updater";
|
|||||||
import { setReleaseChannel } from "../ipc/ipcMainHandler.user";
|
import { setReleaseChannel } from "../ipc/ipcMainHandler.user";
|
||||||
|
|
||||||
async function checkForAppUpdatesContinuously(): Promise<void> {
|
async function checkForAppUpdatesContinuously(): Promise<void> {
|
||||||
await setReleaseChannel();
|
|
||||||
checkForAppUpdates();
|
checkForAppUpdates();
|
||||||
setInterval(
|
setInterval(
|
||||||
() => {
|
() => {
|
||||||
@@ -11,7 +10,8 @@ async function checkForAppUpdatesContinuously(): Promise<void> {
|
|||||||
1000 * 60 * 30,
|
1000 * 60 * 30,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
function checkForAppUpdates(): void {
|
async function checkForAppUpdates(): Promise<void> {
|
||||||
|
await setReleaseChannel();
|
||||||
autoUpdater.checkForUpdatesAndNotify({
|
autoUpdater.checkForUpdatesAndNotify({
|
||||||
title: "Shop Partner Update",
|
title: "Shop Partner Update",
|
||||||
body: "A new version of Shop Partner is available. Click to update.",
|
body: "A new version of Shop Partner is available. Click to update.",
|
||||||
|
|||||||
Reference in New Issue
Block a user