Initial clean project import

This commit is contained in:
cat-shark
2026-06-19 18:41:41 +08:00
commit a13b804c7a
1306 changed files with 220568 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import updaterIndex, { setUpdaterWindow } from "./index";
import { ipcMain } from "electron";
import ConfigMain from "../config/main";
ipcMain.handle("updater:getCheckAtLaunch", async () => {
return ConfigMain.get("updaterCheckAtLaunch", "yes");
});
ipcMain.handle("updater:setCheckAtLaunch", async (event, value) => {
return ConfigMain.set("updaterCheckAtLaunch", value);
});
ipcMain.handle("updater:getLatestStatus", async () => {
return updaterIndex.getLatestStatus();
});
ipcMain.handle("updater:checkForUpdate", async () => {
return await updaterIndex.checkForUpdate();
});
ipcMain.handle("updater:downloadUpdate", async () => {
return await updaterIndex.downloadUpdate();
});
ipcMain.handle("updater:quitAndInstall", async () => {
updaterIndex.quitAndInstall();
});
export const UpdaterMain = {
...updaterIndex,
setUpdaterWindow,
};
export default UpdaterMain;