evshiron / nwjs-builder

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

Using path which contain binary files for using custom nwjs build #61

Open blaremc opened 7 years ago

blaremc commented 7 years ago

Just a optional param --path /Users/admin/nwjs/19.5 for example It would be great.

evshiron commented 7 years ago

Greetings.

Downloaded binaries are stored in ~/.nwjs-download/caches/, maybe you can provide or replace the archive of a version you want to use at that location, so that nwjs-builder will be using the custom one.

For example, I want to use a custom build of version 0.14.7, so I replace ~/.nwjs-download/caches/binary-nwjs-v0.14.7-osx-x64.zip with the custom one, and pass an option -v 0.14.7 to indicate which version I want to use. That should do the trick.

If there is further issue, let me know.