evshiron / nwjs-builder

https://www.npmjs.com/package/nwjs-builder
76 stars 12 forks source link

output name not working? #25

Closed conceptualspace closed 8 years ago

conceptualspace commented 8 years ago

seeing the error,

unknown option '--output-name'

v 1.10.5

nicklaw5 commented 8 years ago

@conceptualspace as mentioned here, the --output-name uses a string-template.

Running the below worked for me: nwb nwbuild -v 0.15.0-sdk -p win64 --output-name "{name}-v{version}-{target}" ./build/

And resulted in stryve-v0.3.0-alpha-win-x64 as the output folder name.

Note that {name} and {version} pull from your package.json file.

conceptualspace commented 8 years ago

hmm, still no dice for me...

osx 10.11.5 npm 3.8.3 nw 0.14.4 nwjs-builder 10.1.5

conceptualspace commented 8 years ago

my bad, had conflicting versions of nwjs-builder installed

evshiron commented 8 years ago

@nicklaw5 Greetings. The templating provides only name, version, platform, arch and target, not from package.json (see also commits). If there is a need I can add it in the next version.