Skip to content

Commit 24694cf

Browse files
committed
Update to support node20
1 parent 7d276a4 commit 24694cf

16 files changed

+14
-6
lines changed

build-layer.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
set -e
1414

1515
LAYER_NAME=canvas-nodejs
16-
LAYER_DESCRIPTION="AWS Lambda Layer with node-canvas and its dependencies packaged, provides a Cairo backed Mozilla Web Canvas API implementation with additional features."
17-
LAYER_VERSION=2.11.3
16+
LAYER_DESCRIPTION="Cairo backed Mozilla Web Canvas API implementation layer for AWS Lambda"
17+
LAYER_VERSION=2.11.4
1818
LAYER_AUTHOR="Charoite Lee"
1919

2020
DOT_CHAR="."
2121
NODE_VERSION=$(node -v)
2222
NODE_VERSION=${NODE_VERSION:1}
23-
SEMVER_VERSION=7.5.4
23+
SEMVER_VERSION=7.6.3
2424

2525
# Remove packaged layer if exists
2626
if [ -n "$(find . -name 'canvas-nodejs_v*.zip')" ]; then
@@ -32,6 +32,9 @@ if [ "$(ls -A lib)" ]; then
3232
rm lib/*
3333
fi
3434
cd nodejs
35+
if [ "$(ls -A node*)" ]; then
36+
rm -rf node*
37+
fi
3538
rm -rf node_modules node${NODE_VERSION%%$DOT_CHAR*} package*.json ../package-lock.json
3639
npm init -y
3740
npm install canvas --build-from-source
@@ -51,5 +54,5 @@ npm rm mocha
5154
mkdir node${NODE_VERSION%%$DOT_CHAR*}
5255
mv node_modules node${NODE_VERSION%%$DOT_CHAR*}
5356
cd ..
54-
find nodejs/node* -type f -name '*.node' 2>/dev/null | grep -v 'obj\.target' | xargs ldd | awk 'NF == 4 { system("cp " $3 " lib") }'
55-
zip -q -r canvas-nodejs_v$LAYER_VERSION.zip . -x LICENSE README.md .git/**\* .github/**\* .gitignore nodejs/test/**\* *.yml build-layer.sh
57+
find nodejs/node${NODE_VERSION%%$DOT_CHAR*} -type f -name '*.node' 2>/dev/null | grep -v 'obj\.target' | xargs ldd | awk 'NF == 4 { system("cp " $3 " lib") }'
58+
zip -q -r canvas-nodejs_v$LAYER_VERSION-node${NODE_VERSION%%$DOT_CHAR*}.zip . -x LICENSE README.md .git/**\* .github/**\* .gitignore nodejs/test/**\* *.yml build-layer.sh

lib/libX11.so.6

16 Bytes
Binary file not shown.

lib/libexpat.so.1

-32 Bytes
Binary file not shown.

lib/libfreetype.so.6

-16 Bytes
Binary file not shown.

lib/libgcc_s.so.1

0 Bytes
Binary file not shown.

lib/libgio-2.0.so.0

-64 Bytes
Binary file not shown.

lib/libglib-2.0.so.0

-32 Bytes
Binary file not shown.

lib/libgmodule-2.0.so.0

0 Bytes
Binary file not shown.

lib/libgobject-2.0.so.0

0 Bytes
Binary file not shown.

lib/libharfbuzz.so.0

8 Bytes
Binary file not shown.

lib/libjpeg.so.62

0 Bytes
Binary file not shown.

lib/libpng15.so.15

8 Bytes
Binary file not shown.

lib/libstdc++.so.6

0 Bytes
Binary file not shown.

lib/libxml2.so.2

-104 Bytes
Binary file not shown.

lib/libz.so.1

0 Bytes
Binary file not shown.

nodejs/test/konva-circle.js

+6-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)