Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added electron 3(Node 10) support to nisis updater #3371

Conversation

timotheeguerin
Copy link
Contributor

@timotheeguerin timotheeguerin commented Oct 8, 2018

fix #3367

Looks like that in node 10 (Electron 3 use node 10) spawn is not throwing errors when the process fail to execute. This means the updater doesn't catch the EACCES error emitted when installer need admin permissions.

The fix will try to catch error both from node 8 and node 10 by listening to the error event for node 10 and using try catch for node 8. This should keep support for electron 2 while enabling electron 3.

@dscalzi
Copy link

dscalzi commented Oct 10, 2018

@develar 🙏

@ahadcove
Copy link

ahadcove commented Oct 18, 2018

This is a crucial PR. All updates are failing atm with the new electron-builder

@dscalzi
Copy link

dscalzi commented Oct 18, 2018

Yea this is really a show-stopper bug. Entire module not working with electron 3.

@develar develar closed this in 78a65d2 Oct 25, 2018
@develar
Copy link
Member

develar commented Oct 25, 2018

@timotheeguerin Thanks a lot. Sorry for delay.

electron-updater 3.1.3 released. It is next release, please try it.

@timotheeguerin timotheeguerin deleted the fix/electron3-nsis-udpate branch October 25, 2018 16:47
@timotheeguerin
Copy link
Contributor Author

Looks to work great! Thanks.

@ahadcove
Copy link

Whooo, thank you all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EACCES when using quitAndInstall electron 3
4 participants