fix: fix release
This commit is contained in:
+5
-3
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user