force launcher restart after update
This commit is contained in:
+15
-2
@@ -775,8 +775,21 @@ function createWindow(): void {
|
||||
await installDebPackage(debPath)
|
||||
|
||||
if (!is.dev) {
|
||||
app.relaunch()
|
||||
app.quit()
|
||||
for (const child of appProcesses.values()) {
|
||||
child.kill()
|
||||
}
|
||||
appProcesses.clear()
|
||||
|
||||
for (const win of appWindows.values()) {
|
||||
if (!win.isDestroyed()) win.close()
|
||||
}
|
||||
appWindows.clear()
|
||||
|
||||
setImmediate(() => {
|
||||
app.relaunch()
|
||||
app.quit()
|
||||
setTimeout(() => app.exit(0), 1000)
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user