fix: fix release

This commit is contained in:
lucasdpt
2026-06-19 11:24:26 +02:00
parent 81f66e25eb
commit 3a9a555f19
4 changed files with 83 additions and 46 deletions
+5 -3
View File
@@ -24,10 +24,12 @@ export function initUpdater(): void {
return
}
// On gère l'install manuellement (bouton "Redémarrer"), mais on installe
// quand même à la fermeture si la maj a été téléchargée.
autoUpdater.autoDownload = true
autoUpdater.autoInstallOnAppQuit = true
// Sur Linux (AppImage), l'install automatique au quit utilise execFileSync
// et bloque le processus en attendant que le nouveau AppImage se ferme —
// comportement très inattendu. On désactive : l'utilisateur clique le bouton
// "Redémarrer pour installer" qui, lui, utilise spawnLog (async) et fonctionne.
autoUpdater.autoInstallOnAppQuit = process.platform !== 'linux'
autoUpdater.on('checking-for-update', () => {
emit.updateStatus({ state: 'checking' })