force launcher restart after update

This commit is contained in:
2026-07-03 11:07:39 +09:00
parent 961c36d1db
commit 327e4492b7
3 changed files with 54 additions and 15 deletions
+15 -2
View File
@@ -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 {