-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Desktop manual check for updates #45757
Desktop manual check for updates #45757
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
@nsakaimbo hey there 👋 I've been trying to test this, but I can't get it to build. From the
I tried I took my chances and
From what I can see, I need to have some secrets in my repo. I can see CI decrypts some stuff too, by I don't have that key. What can I do to get past this? |
Hi, @mokagio! Thanks for helping test! Hopefully these steps should help:
|
edd66d9
to
96f1b49
Compare
Update: just opened PR #45856 that adds a convenience script to generate the app secrets. |
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.
Built on HEAD
, got this
Changed the version to 5.0.0
and clicked "Check for Updates...", got this
So, all good 👍
A refinement suggestion for another day, maybe it was my network connection, but it took a while between me clicking the menu item and the sheet being presented. Maybe we could have a loading UI, to let the users know something is happening?
This is probably related to me opening the WordPress binary from the Look at the CPU load drop once I killed those "WordPress.com Helper (Renderer)" processes: |
This is a good observation and I had the same thought. As an improvement, hopefully there's some sort of spinner or loading-indicator element in Calypso we can use to provide the user more feedback while they wait. |
Re: the CPU usage of the Desktop app - I haven't encountered this before, but I wouldn't be terribly surprised as Calypso (renderer process) itself is fairly heavy. Also interesting why in your case there were several renderer processes loaded. The app has logic that prevents multiple instances from being launched. 🤔 Definitely something we're going to want to take a look at, sooner rather than later. |
@nsakaimbo in regards to the update. If the Calypso route doesn't work, we could always do something native like Sparkle does: |
Description
This PR adds a manual "Check for Updates" menu item. If an update is available, this feature will follow the established updater flow for each platform (download and install on Mac, Windows; and navigate to WordPress Desktop homepage for Linux). If an update is not available, an "Update not available" dialog is displayed to the user.
To Test
Build and run this branch and amend the version number in
desktop/package.json
to verify behavior for update available/not available. (When testing locally, don't forget to setCONFIG_ENV === release
.),