electron / electron/update-electron-app

Any hooks to subscribe to when autoupdate is about to update?

Open
#140 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
824
Forks
145
Avg merge
9h 22m
Merged PRs (30d)
3

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.