Major clean up and alpha.1 release.

This commit is contained in:
Patrick Fic
2026-02-26 12:31:24 -08:00
parent 4915e05ac9
commit 1c44e92fb0
20 changed files with 285 additions and 546 deletions

View File

@@ -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();
}