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.

quitAndInstall and downloadUpdate don't work properly on LInux

See original GitHub issue

I’ve faced a few issues while using it on Linux:

  1. quitAndInstall doesn’t work properly. It spawns the child process and the runs app.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 own quitAndInstall which, instead of spawning child process, uses app.relaunch() (taken from the last comment of this issue).
  2. 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 with execPath 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:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
megahertzcommented, Oct 26, 2018

@serge1peshcoff

Nice work, thanks! I’m going to apply some of your solutions.

0reactions
megahertzcommented, Jan 29, 2019

In my tests v1.4.2 works correctly. Feel free to reopen if you still have some errors.

Read more comments on GitHub >

github_iconTop 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 >

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