quitAndInstall and downloadUpdate don't work properly on LInux
See original GitHub issueI’ve faced a few issues while using it on Linux:
quitAndInstall
doesn’t work properly. It spawns the child process and the runsapp.quit()
, which doesn’t quit until the child process will quit. Here is more info on that: https://github.com/electron/electron/issues/2208. In my own implementation I’ve wrote my ownquitAndInstall
which, instead of spawning child process, usesapp.relaunch()
(taken from the last comment of this issue).- when downloading the updates file and replacing the original one with it, it gets corrupted (when I run it I get the error, though if I just download the AppImage file and run it directly, it will work). I’ve fixed it in the following way: downloaded the update file into different directory, then removed the old file, then use
app.relaunch
withexecPath
specified, so it’d run the new file instead of old one.
Can you look into that? Would be lovely to have it integrated in electron-simple-updater instead of writing some workarounds for downloadUpdate
and quitAndInstall
.
I can also make a PR on that, if you want.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Electron-updater not working correctly with AppImage ... - GitHub
I watched pending directory and electron-updater successfully download update but file somehow dissapear. I would like to help you with solving ...
Read more >AutoUpdater dont work : r/electronjs - Reddit
I'm trying to autoUpdater a private repository, it claims to have downloaded it but never recognizes quitAndInstall() apparently. main.js code
Read more >Auto Update - electron-builder
macOS application must be signed in order for auto updating to work. ... Do not call setFeedURL. electron-builder automatically creates app-update.yml file ...
Read more >autoUpdater | Electron
quitAndInstall () will close all application windows first, and automatically call app.quit() after all windows have been closed. Note: It is not strictly ......
Read more >electron auto updater not installing in OSx - Stack Overflow
It works quite good on linux and windows (new version is downloaded and installed with autoUpdater.quitAndInstall(); or when the user quit the ...
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
@serge1peshcoff
Nice work, thanks! I’m going to apply some of your solutions.
In my tests v1.4.2 works correctly. Feel free to reopen if you still have some errors.