Skip to content
Merged
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
13 changes: 13 additions & 0 deletions npm/linux-arm64-gnu/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Node.js 10.x, ignore
if (!process.report || typeof process.report.getReport !== 'function') {
process.exit(0)
}

// Only GNU system has this field
const { glibcVersionRuntime } = process.report.getReport().header

if (glibcVersionRuntime) {
process.exit(0)
} else {
process.exit(1)
}
6 changes: 5 additions & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
],
"main": "skia.linux-arm64-gnu.node",
"files": [
"skia.linux-arm64-gnu.node"
"skia.linux-arm64-gnu.node",
"install.js"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand Down
13 changes: 13 additions & 0 deletions npm/linux-arm64-musl/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Node.js 10.x, ignore
if (!process.report || typeof process.report.getReport !== 'function') {
process.exit(0)
}

// Only GNU system has this field
const { glibcVersionRuntime } = process.report.getReport().header

if (glibcVersionRuntime) {
process.exit(1)
} else {
process.exit(0)
}
6 changes: 5 additions & 1 deletion npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
],
"main": "skia.linux-arm64-musl.node",
"files": [
"skia.linux-arm64-musl.node"
"skia.linux-arm64-musl.node",
"install.js"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand Down
13 changes: 13 additions & 0 deletions npm/linux-x64-gnu/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Node.js 10.x, ignore
if (!process.report || typeof process.report.getReport !== 'function') {
process.exit(0)
}

// Only GNU system has this field
const { glibcVersionRuntime } = process.report.getReport().header

if (glibcVersionRuntime) {
process.exit(0)
} else {
process.exit(1)
}
6 changes: 5 additions & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
],
"main": "skia.linux-x64-gnu.node",
"files": [
"skia.linux-x64-gnu.node"
"skia.linux-x64-gnu.node",
"install.js"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand Down
13 changes: 13 additions & 0 deletions npm/linux-x64-musl/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Node.js 10.x, ignore
if (!process.report || typeof process.report.getReport !== 'function') {
process.exit(0)
}

// Only GNU system has this field
const { glibcVersionRuntime } = process.report.getReport().header

if (glibcVersionRuntime) {
process.exit(1)
} else {
process.exit(0)
}
6 changes: 5 additions & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
],
"main": "skia.linux-x64-musl.node",
"files": [
"skia.linux-x64-musl.node"
"skia.linux-x64-musl.node",
"install.js"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand Down