Fix Crashing 💯
This commit is contained in:
parent
9b882d87fd
commit
38c3de6c92
2 changed files with 7 additions and 3 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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(() => []));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue