Skip to content

Commit 8fced98

Browse files
committed
docs: fix vercel build
1 parent d7cdc14 commit 8fced98

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/vercel.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
yum install wget
2+
3+
wget https://github.com/NixOS/patchelf/archive/refs/tags/0.17.0.tar.gz
4+
tar -xf 0.17.0.tar.gz
5+
cd patchelf-0.17.0
6+
./bootstrap.sh
7+
./configure
8+
make
9+
make install
10+
cd ..
11+
12+
wget https://zlib.net/fossils/zlib-1.2.9.tar.gz
13+
tar -xf zlib-1.2.9.tar.gz
14+
cd zlib-1.2.9
15+
sh configure
16+
make
17+
cp libz.so.1.2.9 ../node_modules/canvas/build/Release/libz.so.X
18+
cd ..
19+
20+
patchelf --replace-needed /lib64/libz.so.1 libz.so.X ./node_modules/canvas/build/Release/libpng16.so.16
21+
patchelf --replace-needed libz.so.1 libz.so.X ./node_modules/canvas/build/Release/libpng16.so.16

0 commit comments

Comments
 (0)