Files
desktop/lib/main/ipcs/ipcUpdate.ts
rosetta 83f38dc63f 'init'
2026-01-30 05:01:05 +02:00

14 lines
412 B
TypeScript

import { app, ipcMain } from "electron";
import { installServiceUpdate } from "../boot/updater";
import path from "path";
import { WORKING_DIR } from "../constants";
ipcMain.handle('update:installServiceUpdate', async (_, bundleName: string) => {
await installServiceUpdate(path.join(WORKING_DIR, bundleName));
});
ipcMain.handle('update:restartApp', async () => {
app.relaunch();
app.exit(0);
});