diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index ded0e0314..13929daab 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -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)); diff --git a/src/main/updater/index.ts b/src/main/updater/index.ts index c3bdd8b6a..2fb7669dd 100644 --- a/src/main/updater/index.ts +++ b/src/main/updater/index.ts @@ -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(() => [])); +}