From 0888301c0c076462bbbb5f73b1e155512d18513b Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 4 Nov 2021 11:22:55 -0400 Subject: [PATCH] Add comment Signed-off-by: Sebastian Malton --- src/main/app-updater.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/app-updater.ts b/src/main/app-updater.ts index 0a41cc8ed4..a767a44d4f 100644 --- a/src/main/app-updater.ts +++ b/src/main/app-updater.ts @@ -49,6 +49,12 @@ function handleAutoUpdateBackChannel(event: Electron.IpcMainEvent, ...[arg]: Upd */ electronAutoUpdater.checkForUpdates(); } else if (isLinux) { + /** + * This is a necessary workaround until electron-updater is fixed. + * The problem is that because linux updating is not implemented at + * all via electron. Electron's autoUpdater.quitAndInstall() is never + * called. + */ electronAutoUpdater.emit("before-quit-for-update"); } autoUpdater.quitAndInstall(true, true);