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

Male nextron-dev forward extra command line args to electron main process #300

Closed
bbenoist opened this issue Dec 9, 2022 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@bbenoist
Copy link

bbenoist commented Dec 9, 2022

Hi!

If I understand https://github.com/saltyshiomix/nextron/blob/main/lib/nextron-dev.ts#L66 correctly, the nextron dev has no ways of forwarding the command-line args to the electron main process.

As I'm developing an app which accepts arguments, It'd help me testing them quicker.

Can we add a -- command-line separator to make nextron-dev forward every following arg to the main process?

i.e. Support nextron dev -- ./some-dir --a-specific-flag

@saltyshiomix
Copy link
Owner

@bbenoist

Sorry for late reply 🙇

I just released nextron v8.11.1, which includes electron option configuration.
If you have time, please try new one and let me know how is it going 🙏

https://github.com/saltyshiomix/nextron#--electron-options-default-undefined

{
  "scripts": {
    "dev": "nextron --electron-options=\"--no-sandbox\""
  }
}

@bbenoist
Copy link
Author

Hi! Sorry @saltyshiomix but I don't use nextron anymore as I've stopped working on the project which relied on it.
Thanks anyway for the answer :)

@saltyshiomix
Copy link
Owner

Hi, @bbenoist !
No problem for it.
Thank you for your trying nextron!
Ok, I close the issue, but feel free to open any issues if any updates or troubles :)

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

No branches or pull requests

2 participants