Disable auto-updater on non-versioned builds (#5042)

This commit is contained in:
Pierre Jacquier
2025-01-13 17:40:51 -05:00
committed by GitHub
parent 859afa2fd8
commit 7806377a5a

View File

@ -320,6 +320,11 @@ export function getAutoUpdater(): AppUpdater {
}
app.on('ready', () => {
// Disable auto updater on non-versioned builds
if (packageJSON.version === '0.0.0') {
return
}
const autoUpdater = getAutoUpdater()
// TODO: we're getting `Error: Response ends without calling any handlers` with our setup,
// so at the moment this isn't worth enabling