Skip to content

Commit

Permalink
fix: remove postinstall script for gnu/musl platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Feb 29, 2024
1 parent a6b5cc4 commit d2cb76e
Show file tree
Hide file tree
Showing 14 changed files with 49 additions and 91 deletions.
5 changes: 4 additions & 1 deletion npm/android-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
5 changes: 4 additions & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
5 changes: 4 additions & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
5 changes: 4 additions & 1 deletion npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
14 changes: 0 additions & 14 deletions npm/linux-arm64-gnu/install.js

This file was deleted.

13 changes: 6 additions & 7 deletions npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
],
"main": "skia.linux-arm64-gnu.node",
"files": [
"skia.linux-arm64-gnu.node",
"install.js"
"skia.linux-arm64-gnu.node"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand All @@ -40,5 +36,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
}
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
14 changes: 0 additions & 14 deletions npm/linux-arm64-musl/install.js

This file was deleted.

13 changes: 6 additions & 7 deletions npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
],
"main": "skia.linux-arm64-musl.node",
"files": [
"skia.linux-arm64-musl.node",
"install.js"
"skia.linux-arm64-musl.node"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand All @@ -40,5 +36,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
}
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
14 changes: 0 additions & 14 deletions npm/linux-x64-gnu/install.js

This file was deleted.

13 changes: 6 additions & 7 deletions npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
],
"main": "skia.linux-x64-gnu.node",
"files": [
"skia.linux-x64-gnu.node",
"install.js"
"skia.linux-x64-gnu.node"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand All @@ -40,5 +36,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
}
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
14 changes: 0 additions & 14 deletions npm/linux-x64-musl/install.js

This file was deleted.

13 changes: 6 additions & 7 deletions npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@
"musl"
],
"files": [
"skia.linux-x64-musl.node",
"install.js"
"skia.linux-x64-musl.node"
],
"scripts": {
"install": "node install.js"
},
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand All @@ -40,5 +36,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
}
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
7 changes: 5 additions & 2 deletions npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": "https://github.com/Brooooooklyn/canvas.git"
}
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"version": "0.1.50",
"description": "Canvas for Node.js with skia backend",
"main": "index.js",
"repository": "https://github.com/Brooooooklyn/canvas.git",
"repository": {
"type": "git",
"url": "git+https://github.com/Brooooooklyn/canvas.git"
},
"license": "MIT",
"keywords": [
"napi-rs",
Expand Down

1 comment on commit d2cb76e

@github-actions
Copy link

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: d2cb76e Previous: a6b5cc4 Ratio
Draw house#skia-canvas 30 ops/sec (±0.99%) 30 ops/sec (±0.3%) 1
Draw house#node-canvas 38 ops/sec (±0.47%) 37 ops/sec (±0.57%) 0.97
Draw house#@napi-rs/skia 32 ops/sec (±1.93%) 32 ops/sec (±0.54%) 1
Draw gradient#skia-canvas 29 ops/sec (±0.14%) 28 ops/sec (±0.27%) 0.97
Draw gradient#node-canvas 36 ops/sec (±0.86%) 36 ops/sec (±0.51%) 1
Draw gradient#@napi-rs/skia 31 ops/sec (±0.54%) 31 ops/sec (±1.69%) 1

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.