You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there any events that auto updater sends that I can hook into? Something like autoupdate.on('about-to-update', function(){ ... }).
I'll explain the use case:
My electron app prevent the app from quitting when a window closes on Mac (which is in line with how apps work on Mac).
Instead, I have a flag called shouldQuit and only if it's true I call app.quit().
However, this prevent the auto updater from working. When a user clicks on "Update now" when prompted, I need to be able to set the flag shouldQuit to true to allow the app to actually quit.
Couldn't find anything about it in the documentation.
Thanks!
The text was updated successfully, but these errors were encountered:
Dude, you're on fire today! I ended up moving to electron-builder and the electron-updater instead of the update-electron-app module, as the latter supports these events. Thanks!
Are there any events that auto updater sends that I can hook into? Something like
autoupdate.on('about-to-update', function(){ ... })
.I'll explain the use case:
My electron app prevent the app from quitting when a window closes on Mac (which is in line with how apps work on Mac).
Instead, I have a flag called
shouldQuit
and only if it's true I call app.quit().However, this prevent the auto updater from working. When a user clicks on "Update now" when prompted, I need to be able to set the flag
shouldQuit
totrue
to allow the app to actually quit.Couldn't find anything about it in the documentation.
Thanks!
The text was updated successfully, but these errors were encountered: