Add basic update notifications (#9)

This commit is contained in:
V
2023-04-10 22:53:44 +02:00
committed by GitHub
parent bfb9af05b0
commit 8d51cd5029
13 changed files with 305 additions and 28 deletions

View File

@@ -8,6 +8,7 @@ import "./ipc";
import { app, BrowserWindow } from "electron";
import { join } from "path";
import { checkUpdates } from "updater/main";
import { ICON_PATH } from "../shared/paths";
import { once } from "../shared/utils/once";
@@ -40,6 +41,7 @@ if (!app.requestSingleInstanceLock()) {
});
app.whenReady().then(async () => {
checkUpdates();
if (process.platform === "win32") app.setAppUserModelId("dev.vencord.desktop");
else if (process.platform === "darwin") app.dock.setIcon(ICON_PATH);