Skip to content

Commit 641c774

Browse files
committed
Add MacOS targets
1 parent 3b3fafc commit 641c774

File tree

8 files changed

+71
-36
lines changed

8 files changed

+71
-36
lines changed

README.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,26 @@ npm install napi-webp-animation
1212

1313
## Support matrix
1414

15-
### Operating Systems
15+
| | node18 | node20 | node22 |
16+
| ---------------- | ------ | ------ | ------ |
17+
| Windows x64 ||||
18+
| Windows x32 ||||
19+
| Windows arm64 ||||
20+
| macOS x64 ||||
21+
| macOS arm64 ||||
22+
| Linux x64 gnu ||||
23+
| Linux x64 musl ||||
24+
| Linux arm gnu ||||
25+
| Linux arm64 gnu ||||
26+
| Linux arm64 musl ||||
27+
| Android arm64 ||||
28+
| Android armv7 ||||
29+
| FreeBSD x64 ||||
1630

17-
| Linux x64/aarch64 | Windows x64 |
18-
| ----------------- | ----------- |
19-
|||
20-
21-
### NodeJS
22-
23-
Theoretically, any version of Node that supports N-API should work. The CI is
24-
validated against LTS versions of Node:
25-
26-
| Node 18 | Node 20 | Node 22 |
27-
| ------- | ------- | ------- |
28-
||||
29-
30-
### Building
31-
32-
If you are using this as a dependency, since we use N-API, you don't
33-
need to build anything! However, if you want to tinker with this code
34-
or submit a PR, read below.
3531

3632
## Developing
3733

38-
- Install latest `Rust`. Suggest using [rustup](https://rustup.rs/). If on
39-
Windows, use WSL for an easier time.
34+
- Install latest [Rust](https://rustup.rs/). If on Windows, use WSL for an easier time.
4035
- Install `NodeJS@18+`. LTS versions suggested.
4136
- Install `pnpm` and dependencies with `pnpm i`.
4237

npm/android-arm64/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.1",
44
"os": ["android"],
55
"cpu": ["arm64"],
6-
"main": "napi-webp-animation.android-arm-eabi.node",
7-
"files": ["napi-webp-animation.android-arm-eabi.node"],
6+
"main": "napi-webp-animation.android-arm64.node",
7+
"files": ["napi-webp-animation.android-arm64.node"],
88
"description": "A WebP animation package for NodeJS using Rust",
99
"keywords": ["napi", "napi-rs", "n-api", "rust", "node-addon", "node-addon-api", "webp", "webp-animation"],
1010
"license": "MIT",

npm/darwin-arm64/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `napi-webp-animation-darwin-arm64`
2+
3+
This is the **aarch64-apple-darwin** binary for `napi-webp-animation`

npm/darwin-arm64/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "napi-webp-animation-darwin-arm64",
3+
"version": "0.0.1",
4+
"os": ["darwin"],
5+
"cpu": ["arm64"],
6+
"main": "napi-webp-animation.darwin-arm64.node",
7+
"files": ["napi-webp-animation.darwin-arm64.node"],
8+
"description": "A WebP animation package for NodeJS using Rust",
9+
"keywords": ["napi", "napi-rs", "n-api", "rust", "node-addon", "node-addon-api", "webp", "webp-animation"],
10+
"license": "MIT",
11+
"engines": {
12+
"node": ">= 18"
13+
},
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org/",
16+
"access": "public"
17+
}
18+
}

npm/darwin-x64/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `napi-webp-animation-darwin-x64`
2+
3+
This is the **x86_64-apple-darwin** binary for `napi-webp-animation`

npm/darwin-x64/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "napi-webp-animation-darwin-x64",
3+
"version": "0.0.1",
4+
"os": ["darwin"],
5+
"cpu": ["x64"],
6+
"main": "napi-webp-animation.darwin-x64.node",
7+
"files": ["napi-webp-animation.darwin-x64.node"],
8+
"description": "A WebP animation package for NodeJS using Rust",
9+
"keywords": ["napi", "napi-rs", "n-api", "rust", "node-addon", "node-addon-api", "webp", "webp-animation"],
10+
"license": "MIT",
11+
"engines": {
12+
"node": ">= 18"
13+
},
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org/",
16+
"access": "public"
17+
}
18+
}

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,14 @@
3434
"napi": {
3535
"name": "napi-webp-animation",
3636
"triples": {
37-
"defaults": false,
3837
"additional": [
39-
"x86_64-unknown-linux-gnu",
40-
"x86_64-pc-windows-msvc",
41-
"x86_64-unknown-linux-musl",
42-
"aarch64-unknown-linux-gnu",
43-
"armv7-unknown-linux-gnueabihf",
38+
"aarch64-apple-darwin",
4439
"aarch64-linux-android",
40+
"aarch64-unknown-linux-gnu",
4541
"aarch64-unknown-linux-musl",
4642
"aarch64-pc-windows-msvc",
43+
"armv7-unknown-linux-gnueabihf",
44+
"x86_64-unknown-linux-musl",
4745
"i686-pc-windows-msvc",
4846
"armv7-linux-androideabi"
4947
]
@@ -64,8 +62,8 @@
6462
"version": "napi version"
6563
},
6664
"devDependencies": {
67-
"@napi-rs/cli": "2.18.4",
68-
"typescript": "~5.5.4"
65+
"@napi-rs/cli": "^2.18.4",
66+
"typescript": "^5.7.2"
6967
},
7068
"dependencies": {
7169
"@node-rs/helper": "^1.6.0"

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)