shama / navelgazer

:tangerine::crystal_ball: A super fast, light weight, simple file watcher and platform layer for gaze.
MIT License
21 stars 1 forks source link

Automate Prebuilt Addons #12

Open shama opened 9 years ago

shama commented 9 years ago

Possibly using otto to prebuild binaries for supported versions of v8 on typically hard to compile environments (Windows and less so OSX).

joshperry commented 8 years ago

Yes, this is something I've struggled with in the node-serialport project. They use node-pre-gyp which basically sits on top of gyp in order to add pre-build binary delivery. It's kind of a pain to manage.

It should be pretty easy to add this functionality to the existing build.js script. Create an HTTPS URL using a base path and the calculated platform file name, check that URL for a published native binary, and pull it down into the proper directory. If a file doesn't exist at the well-known URL, then it can fall back to attempting the build from source like usual.