nwutils / nw-builder

Build NW.js applications for Linux, MacOS and Windows
MIT License
1.68k stars 303 forks source link

error: unknown option '--mode=build' #1277

Open me-vlad-k opened 1 week ago

me-vlad-k commented 1 week ago

Issue Type

Current/Missing Behaviour

I can't build the application, regardless of which CLI options I choose. It shows the error error: unknown option '--mode=build'. This error appears for any option that comes first. It occurs in all versions from 4.10.0 up to 4.11.4, which is the current version.

Expected/Proposed Behaviour

The application should build normally, which I can successfully do in versions 4.8.1 and 4.9.0. I haven't tested lower versions.

Additional Info

I am using a very basic demo that works well in versions 4.8.1 and 4.9.0.

ayushmanchhabra commented 1 week ago

In the process of fixing this in #1255

ayushmanchhabra commented 6 days ago

In the meantime, you could use the JavaScript API

me-vlad-k commented 6 days ago

@ayushmanchhabra Thanks for looking into this issue. I'm really glad that nw-builder supports the ARM64 architercture for macOS. I decided to switch from nwjs-builder-phoenix since it's pretty outdated now. I was about to pull my hair out trying to get nw-builder to work 😆 Thanks to Jared Wilcurt's nw-angular-example, I realized it was a version issue, not the settings I was using, since his example was running 4.8.1 without any problems. I really appreciate the suggestion about the JavaScript API! For now, I've downgraded to version 4.9.0, and it’s working fine for me. I'm sure the update will take care of the problem once it's released. I'll keep an eye out for it!

ayushmanchhabra commented 2 days ago

@me-vlad-k I won't be able to get to this until the coming weekend. Feel free to create a PR if you require this more urgently

me-vlad-k commented 1 day ago

@ayushmanchhabra No worries, I’m not in a hurry. If I find some time, I’ll look into it myself and possibly create a PR. Thanks for letting me know!