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

Pass arguments to electron #3103

Closed
hedwigz opened this issue Jul 11, 2018 · 1 comment
Closed

Pass arguments to electron #3103

hedwigz opened this issue Jul 11, 2018 · 1 comment
Labels

Comments

@hedwigz
Copy link

hedwigz commented Jul 11, 2018

Can I pass custom command line arguments to electron that will be passed after packaging?
I want my app to run in inspect mode (the why doesn't matter):
electron index.js --inspect
But I don't know how to make electron builder package my app this way

@pronebird
Copy link
Contributor

pronebird commented Jul 12, 2018

You can modify command line arguments from javascript. https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md

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

No branches or pull requests

3 participants