Skip to content

Commit fb55de5

Browse files
authored
Updated build deps to use newer sharp/puppeteer libs to support arm64 builds (stellar#618)
1 parent 652bf28 commit fb55de5

File tree

4 files changed

+198
-54
lines changed

4 files changed

+198
-54
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y gpg curl wget git ca-certificates apt-t
1515
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor >/etc/apt/trusted.gpg.d/google.gpg && \
1616
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
1717
apt-get update && \
18-
apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 libx11-xcb1 libxcb-dri3-0 libtool autoconf make gcc libxtst6 \
18+
apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 libx11-xcb1 libxshmfence-dev libxcb-dri3-0 libtool autoconf make gcc libxtst6 \
1919
--no-install-recommends && \
2020
rm -rf /var/lib/apt/lists/*
2121

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ To build this project, you must have the following dependencies installed:
4444
possible that one of these will ship a change that mandates a more modern
4545
version in the future.
4646
- `yarn`
47+
- If your local build environment is arm64, such as on newer Apple M1 Macs, then
48+
use brew to pre-install libvips which is a native `sharp` dependency and needs
49+
to be the arm64 version, it wasn't getting resolved to correct arch/platform
50+
version through yarn install alone: `brew install vips`
4751

4852
Some of the dependencies are considered "legacy", so run
4953
`npm install --legacy-peer-deps` to bypass errors.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"pretty-quick": "^3.0.0",
8484
"prismjs": "^1.21.0",
8585
"prop-types": "^15.7.2",
86-
"puppeteer": "^5.2.1",
86+
"puppeteer": "^10.0.0",
8787
"qs": "6.9.4",
8888
"react": "^16.12.0",
8989
"react-collapse": "^5.0.1",
@@ -92,7 +92,7 @@
9292
"react-helmet": "^6.1.0",
9393
"react-test-renderer": "^16.12.0",
9494
"react-transition-group": "^4.3.0",
95-
"sharp": "^0.25.4",
95+
"sharp": "^0.29.3",
9696
"stellar-sdk": "^8.2.3",
9797
"styled-components": "^5.1.1",
9898
"styled-normalize": "^8.0.6",

0 commit comments

Comments
 (0)