The current build system must be run on Linux x64 to produce Linux binaries, and macOSX to produce Darwin binaries. We must also compile for each Node.js version separately.
Make sure that you have node.js 6, 8, and 10 installed (preferably the latest LTS releases) and node-gyp installed on each one of them.
- On a Linux x64 system:
cd tools
./build-for-nodejs-versions.sh release-x64-linux.sh
./build-for-nodejs-versions.sh release-raspberry.shNote that the raspberry build requires arm-linux-gnueabihf cross-compiling environment installed
- On a macOS machine:
./build-for-nodejs-versions.sh release-x64-darwin.sh- Update version info
npm version patch- Publish to npmjs.org:
You cannot npm publish directly, it will fail when installing package.
Something with the gypfile.
Instead, run script in top-level directory:
./release-to-npmjs-org.sh