Skip to content

Commit 6720949

Browse files
author
Charoite Lee
committed
Merge branch 'dev'
2 parents fdaf5db + 1fa2d45 commit 6720949

File tree

1,260 files changed

+22
-203589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,260 files changed

+22
-203589
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nodejs/node_modules
2+
nodejs/package*.json
3+
package*.json
4+
canvas-nodejs_v*.zip

build-layer.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# Remove packaged layer if exists
2+
rm canvas-nodejs_v$CANVAS_VERSION.zip
3+
4+
set -e
5+
6+
# Start to build and package layer
7+
rm lib/*
8+
9+
# Clean and prepare Node.js modules and dependencies
110
cd nodejs
211
rm -rf node_modules package*.json
312
npm init -y
@@ -6,8 +15,12 @@ npm install mocha --save-dev
615
CANVAS_VERSION=$(jq -r '.dependencies.canvas[1:]' package.json)
716
jq --arg CANVAS_VERSION "$CANVAS_VERSION" '.name = "canvas-nodejs" | .version = $CANVAS_VERSION | .license = "MIT" | .author = "Charoite Lee" | .scripts.test = "mocha"' package.json > package-tmp.json
817
mv -f package-tmp.json package.json
18+
19+
# Test if installed modules and dependencies work fine
920
npm test
1021
cp package-lock.json ..
22+
23+
# Prepare and package layer
1124
cd ..
12-
rm ../canvas-nodejs_v$CANVAS_VERSION.zip
13-
zip -q -r ../canvas-nodejs_v$CANVAS_VERSION.zip . -x "LICENSE" "README.md" ".git*" "nodejs/test/*" "*.yml" "build-layer.sh"
25+
find nodejs/node_modules -type f -name "*.node" 2>/dev/null | grep -v "obj\.target" | xargs ldd | awk 'NF == 4 { system("cp " $3 " lib") }'
26+
zip -q -r canvas-nodejs_v$CANVAS_VERSION.zip . -x "LICENSE" "README.md" ".git*" "nodejs/test/*" "*.yml" "build-layer.sh"

lib/libc.so.6

1.93 MB
Binary file not shown.

lib/libcairo-script-interpreter.so.2

-142 KB
Binary file not shown.

lib/libcairomm-1.0.so.1

-155 KB
Binary file not shown.

lib/libcap-ng.so.0

-23.4 KB
Binary file not shown.

lib/libcap.so.2

-19.5 KB
Binary file not shown.

lib/libdl.so.2

18.8 KB
Binary file not shown.

lib/libffi.so.6

31.5 KB
Binary file not shown.

lib/libgcc_s.so.1

86.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)