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

Don't check for updates if there's one ready #15275

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

sergiou87
Copy link
Member

Description

With staggered releases, we're starting to see some crashes from people who:

  1. Download an update automatically with GitHub Desktop, but…
  2. …don't restart in a long time.
  3. Then we do another release but either it's disabled or not enabled to all users, so…
  4. …if users don't have access to the new version, GitHub Desktop will eventually check for new updates again and will find nothing.
  5. Then, at some point after that, the user will finally hit Restart now or Quit and Install Update buttons.
  6. 💥

While looking into this, I ran into an old code introduced in #2381 that disabled checking for updates when an update was already downloaded and ready to install, but only on Windows. Instead of doing anything different, we'll do the same on macOS. That way, users who have already downloaded an update will be able to, at least, upgrade to that version, even if newer ones are disabled.

Release notes

Notes: [Fixed] Fix crash installing updates that were downloaded a long time ago on macOS

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ Makes sense - curious why this was limited to windows before.

@sergiou87
Copy link
Member Author

I only know what's explained in #2381 and #2373, it might be something specific about how Squirrel.Windows works (its updates are kind of crazy, IMHO)

@sergiou87 sergiou87 merged commit 1e4c281 into development Sep 13, 2022
@sergiou87 sergiou87 deleted the keep-downloaded-updates-macos branch September 13, 2022 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants