Preserve arguments on auto-updater quitAndInstall
See original GitHub issueWe 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:
- Created 5 years ago
- Reactions:7
- Comments:9
Top 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 >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
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
Any news on this?