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.

autoUpdater doesn't work

See original GitHub issue

electron-builder@20.19.1

electron-updater@2.23.3

  • Target: nsis, dmg, zip

I’m testing auto updates for both channels latest and beta and get the following situation:

  1. upload a new version (0.2.3) to my provider and run installed app with the previous version (0.2.2):
Found version 0.2.3 (url: Quatrix Express-0.2.3-mac.zip, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg)
Downloading update from Quatrix Express-0.2.3-mac.zip, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg
/ requested
/app.zip requested
download-progress listener count: 0
2018-07-02 12:19:16.449 Quatrix Express[25808:1116509] Download completed to: file:///Users/rodion/Library/Caches/quatrix.express.ShipIt/update.MgUxQur/app.zip
New version 0.2.3 has been downloaded
Proxy server for native Squirrel.Mac is closed (was started to download https://<provider_url>/Quatrix%20Express-0.2.3-mac.zip)
  1. according to this code in my main.js I see the message about the new version which will be installed after close:
app.on('ready', () => {
  autoUpdater.checkForUpdatesAndNotify()
})

autoUpdater.on('update-downloaded', info => {
  win.webContents.send('updateReady')
})
  1. then I close the app, start it again and get the same output about new version again:
Checking for update
Found version 0.2.3 (url: Quatrix Express-0.2.3-mac.zip, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg)
Downloading update from Quatrix Express-0.2.3-mac.zip, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg, Quatrix Express-0.2.3.dmg
/ requested
/app.zip requested
download-progress listener count: 0
2018-07-02 12:19:43.005 Quatrix Express[25839:1116907] Download completed to: file:///Users/rodion/Library/Caches/quatrix.express.ShipIt/update.OJm2r1y/app.zip
New version 0.2.3 has been downloaded
Proxy server for native Squirrel.Mac is closed (was started to download https://<provider_url>/Quatrix%20Express-0.2.3-mac.zip)
  1. I see the message about new version again and there are no updates

P.S. All works well for Windows.

P.P.S. This behavior is not constant, because I had the same situation for the previous version and updated installed after few “exit-run” actions

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

2reactions
playengineiocommented, Dec 25, 2019

Anyone found a solution to this issue?

0reactions
LaurentGENTYcommented, Dec 30, 2021

Got the same problem here, still no solutions ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

AutoUpdater.checkForUpdatesAndNotify() does not work
Describe the bug Google successfully launched 'electron' on Github, using the API, however, the update alert API autoUpdater.
Read more >
AutoUpdater dont work : r/electronjs
I'm trying to autoUpdater a private repository, it claims to have downloaded it but never recognizes quitAndInstall() apparently.
Read more >
Google Play Store Isn't Auto-Updating Apps? Try These Fixes
But if it stops working, here are some things you can try to fix it. ... Some apps fail to update despite auto-update...
Read more >
How to get My Electron Auto updater to work?
I was following this guide but it didn't work. This is the Code for the updater part which is located at the top...
Read more >
QRadar: Common issues and troubleshooting for auto ...
Diagnosing The Problem · Use SSH to log in to the QRadar Console as the root user. · To view your auto update...
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