node-usb-native
v0.0.20
Published
precompile cross-platform serialport and usb-detection dll libraries and load libraries according to platform
Downloads
152
Readme
node-usb-native
Update serialport and usb-detection package version in package.json, ensuring the versions of them meets the need of new version electron. Search serialport and usb-detection repo to find the coresponding version number.
Update electron version in .travis.yml
gulp build --electron=[new-electron-version] --token="$API_TOKEN" --tag="downloads"
Update electron version in ./scripts/rebuild-serialport.js
node-gyp rebuild --target=[new-electron-version] --arch=x64 --dist-url=https://atom.io/download/electron
Run Travis CI job to compile cross-platform libraries for the electron version
Get new native binaries from https://github.com/VSChina/serialport.node/releases.
Place the new libraries under
./lib/native
folder and remove the useless libraries to reduce package size.Update package version number and run
npm publish
ro publish the new version.