Skip to content
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

refactor: change quitAndInstall to asynchronous to prevent blocking main thread while updating #8405

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

xyloflake
Copy link
Contributor

No description provided.

modified quitAndInstall from synchronous to asynchronous to prevent
blocking the event loop during updates. This change enhances the
application's responsiveness by allowing other tasks to proceed
while the update is being processed.

BREAKING CHANGE: The quitAndInstall function is now asynchronous,
which may require updates to the calling code to handle promises.
Copy link

changeset-bot bot commented Aug 8, 2024

🦋 Changeset detected

Latest commit: 2960b76

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
electron-updater Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Aug 8, 2024

Deploy Preview for car-park-attendant-cleat-11576 ready!

Name Link
🔨 Latest commit 2960b76
🔍 Latest deploy log https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/66ba59dd20f9dd000827063a
😎 Deploy Preview https://deploy-preview-8405--car-park-attendant-cleat-11576.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@xyloflake
Copy link
Contributor Author

xyloflake commented Aug 8, 2024

@mmaietta here's the PR but I need help for testing this. Labelled as BREAKING CHANGE as quitAndInstall is now async and might break previous callback methods(?).

I have not tested on any single platform and this time I'll need you to help me with this :)

What I also mean to imply is I've just written the code, have not built or anything.

@xyloflake
Copy link
Contributor Author

@mmaietta I just checked out the PR on NSIS and no, quitAndInstall does NOT work. It says the update will be installed after quit but it never gets updated. So I'm converting this to a draft PR

@xyloflake xyloflake marked this pull request as draft August 13, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant