kevva / bin-wrapper

Binary wrapper that makes your programs seamlessly available as local dependencies
MIT License
152 stars 65 forks source link

dest() affects the success of run() finding a binary #72

Open polarathene opened 5 years ago

polarathene commented 5 years ago

dest()

Accepts a path which the files will be downloaded to.

run()

Runs the search for the binary. If no binary is found it will download the file using the URL provided in .src().

Oddly, the path given to dest() appears to affect the success of run()? I was trying to figure out why bin-wrapper was not working in the imagemin-cwebp/cwebp-bin package, cwebp -version works just like they test for, which cwebp points to /usr/bin, but when running the package install.js which uses bin-wrapper it fails to run the command.