Skip to content

Commit

Permalink
Docs: ARM64 has prebuilt libvips, not sharp
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Jan 12, 2020
1 parent 7dbad72 commit 6fdc79d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ matrix:
dist: bionic
language: minimal
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 install -y build-essential git python2 nodejs npm
install: sudo docker exec sharp sh -c "npm install --unsafe-perm"
Expand Down
16 changes: 15 additions & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Node.js versions 10, 12 and 13 on the most common platforms:

* macOS x64 (>= 10.13)
* Linux x64 (glibc >= 2.17, musl >= 1.1.24)
* Linux ARM64 (glibc >= 2.29)
* Windows x64 with 64-bit `node.exe`

A ~10MB tarball containing libvips and its most commonly used dependencies
Expand All @@ -32,6 +31,7 @@ The following platforms have prebuilt libvips but not sharp:

* Linux ARMv6
* Linux ARMv7
* Linux ARM64 (glibc >= 2.29)

The following platforms require compilation of both libvips and sharp from source:

Expand Down Expand Up @@ -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.
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)

0 comments on commit 6fdc79d

Please sign in to comment.