mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Docs: ARM64 has prebuilt libvips, not sharp
This commit is contained in:
parent
7dbad7206e
commit
6fdc79d569
@ -51,7 +51,7 @@ matrix:
|
|||||||
dist: bionic
|
dist: bionic
|
||||||
language: minimal
|
language: minimal
|
||||||
before_install:
|
before_install:
|
||||||
- sudo docker run -dit --name sharp --env CI --env PREBUILD_TOKEN --volume "${PWD}:/mnt/sharp" --workdir /mnt/sharp arm64v8/debian:bullseye
|
- sudo docker run -dit --name sharp --env CI --volume "${PWD}:/mnt/sharp" --workdir /mnt/sharp arm64v8/debian:bullseye
|
||||||
- sudo docker exec sharp apt-get update
|
- sudo docker exec sharp apt-get update
|
||||||
- sudo docker exec sharp apt-get install -y build-essential git python2 nodejs npm
|
- sudo docker exec sharp apt-get install -y build-essential git python2 nodejs npm
|
||||||
install: sudo docker exec sharp sh -c "npm install --unsafe-perm"
|
install: sudo docker exec sharp sh -c "npm install --unsafe-perm"
|
||||||
|
@ -19,7 +19,6 @@ Node.js versions 10, 12 and 13 on the most common platforms:
|
|||||||
|
|
||||||
* macOS x64 (>= 10.13)
|
* macOS x64 (>= 10.13)
|
||||||
* Linux x64 (glibc >= 2.17, musl >= 1.1.24)
|
* Linux x64 (glibc >= 2.17, musl >= 1.1.24)
|
||||||
* Linux ARM64 (glibc >= 2.29)
|
|
||||||
* Windows x64 with 64-bit `node.exe`
|
* Windows x64 with 64-bit `node.exe`
|
||||||
|
|
||||||
A ~10MB tarball containing libvips and its most commonly used dependencies
|
A ~10MB tarball containing libvips and its most commonly used dependencies
|
||||||
@ -32,6 +31,7 @@ The following platforms have prebuilt libvips but not sharp:
|
|||||||
|
|
||||||
* Linux ARMv6
|
* Linux ARMv6
|
||||||
* Linux ARMv7
|
* Linux ARMv7
|
||||||
|
* Linux ARM64 (glibc >= 2.29)
|
||||||
|
|
||||||
The following platforms require compilation of both libvips and sharp from source:
|
The following platforms require compilation of both libvips and sharp from source:
|
||||||
|
|
||||||
@ -149,3 +149,17 @@ docker run -v "$PWD":/var/task lambci/lambda:build-nodejs10.x npm install sharp
|
|||||||
|
|
||||||
To get the best performance select the largest memory available.
|
To get the best performance select the largest memory available.
|
||||||
A 1536 MB function provides ~12x more CPU time than a 128 MB function.
|
A 1536 MB function provides ~12x more CPU time than a 128 MB function.
|
||||||
|
|
||||||
|
## Electron
|
||||||
|
|
||||||
|
Electron provides versions of the V8 JavaScript engine
|
||||||
|
that are incompatible with Node.js.
|
||||||
|
To ensure the correct binaries are used, run the following:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install
|
||||||
|
npx electron-rebuild
|
||||||
|
```
|
||||||
|
|
||||||
|
Further help can be found at
|
||||||
|
[https://electronjs.org/docs/tutorial/using-native-node-modules](https://electronjs.org/docs/tutorial/using-native-node-modules)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user