question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autoupdate downloads new update, but does not successfully update the app on quit.

See original GitHub issue

(This is a follow up on https://github.com/electron-userland/electron-builder/issues/2006#issuecomment-346104571)

Unfortunately I am still seeing this issue with electron-builder 19.45.5 and electron 1.7.9.

I’m not sure if the underlying cause is the same, but on the surface, here’s what happens:

  1. Open Mac app, receive update-downloaded event.
  2. Instruct user to quit app and re-open to install update.
  3. User quits app, and re-opens immediately.

Result:

  • App is not upgraded. update-downloaded is received again. Repeat steps 1-3, same results.

After repeating many times, it will eventually update.

Any ideas as what could be causing this? Does user have to wait X seconds after quitting app before re-opening?

My index.js: https://github.com/standardnotes/desktop/blob/master/app/index.js#L29

You can test this issue for yourself by downloading an older version of Standard Notes and waiting for the update message to appear in the lower right corner of the app: https://github.com/standardnotes/desktop/releases

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:18
  • Comments:53 (6 by maintainers)

github_iconTop GitHub Comments

12reactions
MarkusBanskycommented, Nov 21, 2017

Got exactly the same issue. Not sure about several updates, but my app is not updating itself after successfully downloading from server and restarting on quitAndInstall()

7reactions
dsabanincommented, Jun 28, 2018

I noticed in my case that after running quitAndInstall(), the app quits and ShipIt process starts in the background that actually copies the update file. Depending on the size of your app, some of them can be pretty big, and it can take at least 30 seconds to finish. If you try running app right away before that process is over, you get the old version, if you run after ShipIt is done, you’ll get the new version. I’m not sure how it’s supposed to work 🤷‍♂️

Edit: I’m running this on a Mac.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatic App Updates Not Working, Fix - macReports
On your iPhone or iPad, go to Settings > [your name] > iTunes & App Store. Under Automatic Downloads, and ensure that the...
Read more >
Top 10 Ways to Fix Apps Not Updating on Android
Top 10 Ways to Fix Apps Not Updating on Android · 1. Check Internet Connection · 2. Check Device Storage · 3. Auto-Update...
Read more >
electron updater notify for new release but do not update or ...
15.1 locally I updated to v14.16.0 now it works! Another issue using other versions update and downgrade it was downloading it but failed...
Read more >
How to manually update apps on your Apple device
Open the App Store. Tap your profile icon at the top of the screen. Scroll to see pending updates and release notes. Tap...
Read more >
Windows Update issues troubleshooting - Microsoft Learn
So it reports there are no updates to install or download. This is due to an incorrect configuration. The WSUS side should approve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found