saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.97k stars 229 forks source link

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

Closed bbenoist closed 1 year ago

bbenoist commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 :)