Closed JsseL closed 5 years ago
Ok, solved it. 🎯
Our code:
autoUpdater.on('update-downloaded', () => {
debug(`downloaded ${autoUpdater.updateInfo.version}`);
});
used to with "electron-updater": "^2.20.2"
, but after upgrading to "electron-updater": "3.2.3"
that did not work anymore due to autoUpdater
not having updateInfo
attribute.
As the docs state, update-downloaded
event passes the updateInfo
object as parameter to the event handler.
So after we changed our code to:
autoUpdater.on('update-downloaded', (updateInfo) => {
debug(`downloaded ${updateInfo.version}`);
});
things started to work again.
Other version information:
What happens:
error
event and doesn't installSee electron-updater debug logs:
The referenced file
backendUpdater.js:103:106
is as follows.Same code has worked with earlier versions of electron-builder and
updateInfo.version
should still be there according to docs so that shouldn't be the real issue.Any ideas what might be going on? Really appriciate any help.
And thanks for the great tool and work you do @develar (and others).