Fix Crashing 💯

This commit is contained in:
thororen1234 2025-10-18 21:54:38 -04:00
parent 9b882d87fd
commit 38c3de6c92
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View file

@ -80,6 +80,7 @@ async function applyUpdates() {
return true;
}
ipcMain.handle(IpcEvents.GET_REPO, serializeErrors(() => `https://github.com/${gitRemote}`));
ipcMain.handle(IpcEvents.GET_UPDATES, serializeErrors(calculateGitChanges));
ipcMain.handle(IpcEvents.UPDATE, serializeErrors(fetchUpdates));
ipcMain.handle(IpcEvents.BUILD, serializeErrors(applyUpdates));

View file

@ -23,6 +23,9 @@ import gitRemote from "~git-remote";
import { serializeErrors } from "./common";
ipcMain.handle(IpcEvents.GET_REPO, serializeErrors(() => `https://github.com/${gitRemote}`));
if (!IS_UPDATER_DISABLED) require(IS_STANDALONE ? "./http" : "./git");
if (!IS_UPDATER_DISABLED) {
require(IS_STANDALONE ? "./http" : "./git");
} else {
ipcMain.handle(IpcEvents.GET_REPO, serializeErrors(() => `https://github.com/${gitRemote}`));
ipcMain.handle(IpcEvents.GET_UPDATES, serializeErrors(() => []));
}