-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(updater): run cleanup before exit on Windows #1070
Conversation
f2fe9d6
to
96e3528
Compare
The downside about this is that we will have to assume |
And, I'm not familiar with how updaters shutdown the app on other platforms, is this just a Windows problem or we need to do something for other platforms as well? |
correct, other platforms update without restarting and wait for users to relaunch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite like the additional argument, I think a better way to handle this would be to take a generic callback to be executed on before restart, here is some psuedo-code of what I mean:
let builder = UpdaterBuilder::new()
.with_before_exit(|| {
app.cleanup_before_exist();
})
.build();
and we can provide this callback automatically in the UpdaterExt
trait implementation.
A bit off topic for this PR, do we want to expose |
I'll take a look
I mean the JavaScript side |
yeah sure, was hoping to do it at some point |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Fix #1014