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.

Preserve arguments on auto-updater quitAndInstall

See original GitHub issue

We have two versions of our app that can be launched by passing a command line argument. Currently the quitAndInstall() does not preserve these, restarting the app in the default mode. Would it be possible to have quitAndInstall() restart the app with the same parameters, alternatively another solution for passing these back to the updated version?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
hgouveiacommented, Apr 7, 2020

I am highly interested in this feature, something like quitAndInstall(isSilent, isForceRestart, openArguments)

where openArguments could be an array of arguments that will append when reopening the app, ex: ['--updatedTo=2.0.0']

right now i dont have any way to pass any argument after is updated

0reactions
ibandominguezcommented, Jul 25, 2022

Any news on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 5 electron-updater Code Examples - Snyk
quitAndInstall (); // we need to send a quit event setTimeout(() => { app.quit(); } ... mainWindow = null const autoUpdater = require("electron-updater")....
Read more >
Auto Update - electron-builder
quitAndInstall () will close all application windows first and only emit before-quit event on app after that. This is different from the normal...
Read more >
Electron-builder "update-available" event not being triggered ...
It was fixed by changing the call back function arguments to include releaseName and releaseNotes like so autoUpdater.on("update-available", ...
Read more >
Get that damn Windows Auto Update working on Electron
quitAndInstall () called after update-downloaded is fired. Setting auto update feed URL. Note this line autoUpdater.setFeedURL('http://localhost:9000/dist/win/') ...
Read more >
4. Binaries, Installers, and Updates - Introducing Electron [Book]
Even though electron-forge accepts command-line arguments, configuring all modules involved in the build process from ... quitAndInstall () }) autoUpdater .
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