autoUpdater doesn't work
See original GitHub issueelectron-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:
- 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)
- 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')
})
- 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)
- 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:
- Created 5 years ago
- Reactions:4
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Anyone found a solution to this issue?
Got the same problem here, still no solutions ?