Closed hermwong closed 8 years ago
We may need to migrate from squirrel.mac
(Electron's default auto-updater) to electron-updater
to add the desired workflow to the auto-update workflow.
The electron-updater
writes an error log at this location ~/Library/Application Support/PhoneGap/logs/updater.log
Docs on configuring binary updates:
From reading the docs:
The app will try to update using NPM; we have the option of hosting our own npm server.
Looks like electron-updater
uses .tgz
for binary distribution.
Another option suggested by @mwbrooks:
"Modify our existing code to do the manual update checking and piggy back on Electron's auto-updater."
Pros:
Auto-updater now works with the Update Now
workflow.
We probably need to add is some type of indicator to the user that the update is happening.
Currently when the user clicks on the Update Now
button, the Update Available
dialog disappears and the Desktop App just appears to be in normal state while the update is downloading in the background.
@hermwong awesome! Yea, I agree that we need to show that the download is in progress. It feels pointless to allow the user to navigate around the app, since it will suddenly close and restart when the download is complete. @jahoni should be looped in to help. She may even have a design setup already.
as we chatted about (briefly) @hermwong - it'd be great if we could show the notification in a modal. once the user chooses "Update Now", a determinate progress indicator should appear. After a very quick look I couldn't find any open source determinate progress indicators out there...maybe you'll have more luck?
let me know if you need a mock-up.
Will take another look at Electron's auto-update APIs to see if we can get the download progress information.
It doesn't look like the Electron Auto Updater API exposes the download progress.
Well, that settles it then - we'll need to go with an indeterminate progress indicator. The circular one used on app load is cool.
Should the screen look like the initial loading screen with the exception of the copy "Update is in progress..."
I think that'll work....
See here for reminder of the existing loading screen: https://github.com/phonegap/phonegap-app-desktop/issues/575#issuecomment-207828410
Should the copy be placed above or below the loader animation.
Text above the loader, same colour blue
Currently the OSX auto-updater will notify the user that an update is available and then perform the auto-update.
We would like to see if we can modify this behavior so that it follows these steps: