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

add {libc} to prebuilt binary package name #38

Merged
merged 3 commits into from
May 3, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
detect libc in release.sh
Ugzuzg authored Apr 30, 2018
commit 6732f5909eb407b8f55c0643cd21f22eda6b1dcf
5 changes: 2 additions & 3 deletions ci/release.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Generate the node-gyp formatted filename from the node environment
FILENAME=$(
node -e "
var p = process, v = p.versions, pkg = require('./package.json');
console.log([pkg.name, 'v$CANVAS_PREBUILT_VERSION', 'node-v' + v.modules, p.platform, p.arch].join('-'));
var p = process, v = p.versions, pkg = require('./package.json'), libc = require('detect-libc').family;
console.log([pkg.name, 'v$CANVAS_PREBUILT_VERSION', 'node-v' + v.modules, p.platform, libc, p.arch].join('-'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Doesn't detect-libc need to be added to package.json though? Also ignore the failed builds, it's trying to do a release

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I'll add it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

"
).tar.gz;

# Zip up the release
tar -C node-canvas/build -czf $FILENAME Release/