Files
TrueGrowth/vendor/aigcpanel/electron/mapi/updater/main.ts
Jammy 52636c91ae
Some checks failed
CI / main (push) Has been cancelled
CI / release-e2e (push) Has been cancelled
Track bundled vendor runtime sources
2026-07-07 10:05:50 +08:00

18 lines
453 B
TypeScript

import updaterIndex from "./index";
import { ipcMain } from "electron";
import ConfigMain from "../config/main";
ipcMain.handle("updater:getCheckAtLaunch", async (event) => {
return ConfigMain.get("updaterCheckAtLaunch", "yes");
});
ipcMain.handle("updater:setCheckAtLaunch", async (event, value) => {
return ConfigMain.set("updaterCheckAtLaunch", value);
});
export const UpdaterMain = {
...updaterIndex,
};
export default UpdaterMain;