Track bundled vendor runtime sources
This commit is contained in:
17
vendor/aigcpanel/electron/mapi/updater/main.ts
vendored
Normal file
17
vendor/aigcpanel/electron/mapi/updater/main.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user