Set autoUpdater.allowDowngrade to True in order to allow switching from beta version back to stable

This commit is contained in:
Jonatan Heyman 2023-12-07 01:50:49 +01:00
parent 6e9195c835
commit 3c4008f7f7

View File

@ -24,6 +24,7 @@ autoUpdater.logger = log
autoUpdater.logger.transports.file.level = "info" autoUpdater.logger.transports.file.level = "info"
autoUpdater.autoDownload = false autoUpdater.autoDownload = false
autoUpdater.allowDowngrade = true
autoUpdater.on('error', (error) => { autoUpdater.on('error', (error) => {
window?.webContents.send(UPDATE_ERROR, error == null ? "unknown" : (error.stack || error).toString()) window?.webContents.send(UPDATE_ERROR, error == null ? "unknown" : (error.stack || error).toString())