Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.13 KB

File metadata and controls

22 lines (14 loc) · 1.13 KB

node-usb-native

  1. 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.

  2. Update electron version in .travis.yml

    gulp build --electron=[new-electron-version] --token="$API_TOKEN" --tag="downloads"
  3. Update electron version in ./scripts/rebuild-serialport.js

    node-gyp rebuild --target=[new-electron-version] --arch=x64 --dist-url=https://atom.io/download/electron
  4. Run Travis CI job to compile cross-platform libraries for the electron version

  5. Get new native binaries from https://github.com/VSChina/serialport.node/releases.

  6. Place the new libraries under ./lib/native folder and remove the useless libraries to reduce package size.

  7. Update package version number and run npm publish ro publish the new version.