Lets you build your NW.js apps for mac, win and linux via cli. It will download the prebuilt binaries for a newest version, unpacks it, creates a release folder, create the app.nw file for a specified directory and copies the app.nw file where it belongs.
@adam-lynch
Use the new versions.json instead of hitting dl.nwjs.io. Ignore versions with pre-release/build metadata in the version to begin with (i.e. -rc1, -alpha2, etc). Since we want to make this backwards compatible, we should still use dl.nwjs.io, etc. for legacy versions. (#275)
What does this mean? Do we need to support versions which aren't listed in versions.json
? I don't think legacy versions other than 0.12.3 should be supported though. In nwjs-builder
, I do an addition parsing to convert nw-builder
style to nwjs-download
style.
nw-builder
is in plan to catch up modern nw.js versioning. Before that I think nwjs-builder is suitable for you. Feel free to try it out and feedback is appreciated.
nwjs : {
options: {
platforms: ['osx64'],
version: 'v0.14.0',
buildDir: './build', // Where the build version of my NW.js app is saved
},
src: ['!<%= yeoman.dist %>/nwjs.app{,*/}*', '<%= yeoman.dist %>/**/*' ] // Your NW.js app
},
@/all
2.2.1 released :D Newer versions are supported now, etc. https://github.com/nwjs/nw-builder/issues/327#issuecomment-230113373
normal
for the flavor
option. See https://github.com/nwjs/nw-builder#optionsflavor
path.join(__dirname, '..')
did the trick