mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
f03eaa72b5
commit
0888301c0c
1 file changed
+6
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user