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

fix: macos autoupdate flow #1979

Merged
merged 3 commits into from
Feb 16, 2022
Merged

fix: macos autoupdate flow #1979

merged 3 commits into from
Feb 16, 2022

Conversation

lidel
Copy link
Member

@lidel lidel commented Feb 15, 2022

This PR fixes auto-update flow on macOS, which seems to have had a regression since v0.18.x (see electron-userland/electron-builder#6390)

  • It removes macOS-specific code paths and replaces them with one unified logic for all three platforms (Windows/macOS/AppImage).
  • Improves the flow by giving user option to dismiss upgrade if they are in the middle of something, and if they don't restart, they will be prompted again at a later time
  • It also fixes a bug where tray disappears due to GC (it only worked because we had reference in ctx, but it could break at any time)

macOS: 👉 if you are experiencing the infinite update dialog asking to "Restart" over and over again → please manually update to the latest version (>=0.19.2)

Sadly, this is not something we can fix automatically because old versions had macOS-specific autoupdate rules which disabled lazy upgrade on quit. This PR removes OS-specific code paths which should be less prone to regressions in the future.

This removes macOS-specific code paths and replaces them with one
unified logic for all three platforms (Windows/macOS/AppImage).

It also fixes a bug where tray dissapears due to GC (it only worked
because we had reference in ctx, but it could breat at any time)
This does not block main process nor interrupt user in any way.
Notification can be safely ignored, in which case the update will be
installed on exit.
@lidel
Copy link
Member Author

lidel commented Feb 16, 2022

@lidel lidel merged commit ef9b347 into main Feb 16, 2022
@lidel lidel deleted the fix/macos-autoupdate branch February 16, 2022 00:36
@lidel
Copy link
Member Author

lidel commented Feb 16, 2022

Confirmed this PR fixed autoupdate: v0.19.2 updates to v0.19.3 as expected, and if update is ignored, it gets applied on exit.

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.

1 participant