Add comment

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-11-04 11:22:55 -04:00
1 parent f03eaa72b5
commit 0888301c0c
1 file changed
+6
+6
View File
@@ -49,6 +49,12 @@ function handleAutoUpdateBackChannel(event: Electron.IpcMainEvent, ...[arg]: Upd
*/ */
electronAutoUpdater.checkForUpdates(); electronAutoUpdater.checkForUpdates();
} else if (isLinux) { } 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"); electronAutoUpdater.emit("before-quit-for-update");
} }
autoUpdater.quitAndInstall(true, true); autoUpdater.quitAndInstall(true, true);