feat: initial commit

This commit is contained in:
izzy
2025-09-30 10:31:37 -05:00
commit 7ab6795a88
31 changed files with 7913 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import AutoLaunch from "auto-launch";
import { ipcMain } from "electron";
import { mainWindow } from "./window";
export const autoLaunch = new AutoLaunch({
name: "Revolt",
});
ipcMain.on("isAutostart?", () =>
autoLaunch
.isEnabled()
.then((enabled) => mainWindow.webContents.send("isAutostart", enabled)),
);
ipcMain.on("setAutostart", (state) =>
state ? autoLaunch.enable() : autoLaunch.disable(),
);