Major clean up and alpha.1 release.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { autoUpdater } from "electron-updater";
|
||||
import { setReleaseChannel } from "../ipc/ipcMainHandler.user";
|
||||
import store from "../store/store";
|
||||
|
||||
let continuousUpdatesTriggered = false;
|
||||
|
||||
@@ -15,8 +15,13 @@ async function checkForAppUpdatesContinuously(): Promise<void> {
|
||||
);
|
||||
}
|
||||
}
|
||||
async function checkForAppUpdates(): Promise<void> {
|
||||
await setReleaseChannel();
|
||||
async function checkForAppUpdates(channel?: string | null): Promise<void> {
|
||||
if (channel) {
|
||||
autoUpdater.channel = channel;
|
||||
//Persist to store
|
||||
store.set("app.channel", channel);
|
||||
}
|
||||
|
||||
autoUpdater.checkForUpdates();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user