Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to v0.0.21 #38

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ install:
- npm install

script:
- gulp build --electron="12.0.4" --token="$API_TOKEN" --tag="downloads"
- gulp build --electron="13.1.7" --token="$API_TOKEN" --tag="downloads"
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to the "serialport.node" will be documented in this file.

## Version 0.0.21

- Update for Electron 13
- Add Support for Mac M1
- Update dependencies

## Version 0.0.15

- Fix bug for resolve path for usb-native libs
Expand Down
8 changes: 6 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,21 @@ gulp.task('build', (done)=> {
const tagName = cliArgs.tag;
const electron = cliArgs.electron;

const archs = ["ia32", "x64"];
const archs = ["ia32", "x64", "arm64"];
const platform = require('os').platform();

const tasks = [];
async.waterfall([
(callback) => {
for (const arch of archs) {
if (platform == "linux" && arch == "ia32") {
if (platform === "linux" && arch === "ia32") {
console.log("Skipping task when arch = ia32, platform = linux since node 10 is not supported for this combination.");
continue;
}
if (arch === "arm64" && platform !== "darwin") {
console.log("Skipping task when arch = arm64, platform != darwin since that combination is only needed for Apple M1");
continue;
}

const rebuildCommand = `node-gyp rebuild --target=${electron} --arch=${arch} --dist-url=https://atom.io/download/electron`;

Expand Down
Binary file added lib/native/detector_darwin_12.0.4_arm64.node
Binary file not shown.
Binary file added lib/native/serialport_darwin_12.0.4_arm64.node
Binary file not shown.
Loading