Skip to content

Commit aca8186

Browse files
authored
Merge pull request #25 from kotify/trigger-build
Bump gs + fix weasyprint
2 parents a2574d3 + 60dd2e5 commit aca8186

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ stack.deploy:
4242
cd cdk-stacks && npm install && npm run build
4343
cdk deploy --app ./cdk-stacks/bin/app.js --stack PrintStack --parameters uploadBucketName=${BUCKET}
4444

45-
test.start.container:
45+
test.start.container: build/weasyprint-layer-python$(RUNTIME).zip
4646
${DOCKER_RUN} \
4747
-e GDK_PIXBUF_MODULE_FILE="/opt/lib/loaders.cache" \
4848
-e FONTCONFIG_PATH="/opt/fonts" \

ghostscript/layer_builder.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
set -e
3-
export VERSION="10.02.1"
3+
export VERSION="10.03.0"
44

55
dnf install -y gcc tar
66
cd /tmp/

weasyprint/layer_builder.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ rpmdev-extract -- *rpm
3232

3333
mkdir /opt/lib
3434
cp -P -r /tmp/*/usr/lib64/* /opt/lib
35+
for f in $(find /tmp -type f -name 'lib*.so*'); do
36+
cp "$f" /opt/lib/$(python -c "import re; print(re.match(r'^(.*.so.\d+).*$', '$(basename $f)').groups()[0])");
37+
done
3538
# pixbuf need list loaders cache
3639
# https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-query-loaders.html
3740
PIXBUF_BIN=$(find /tmp -name gdk-pixbuf-query-loaders-64)

0 commit comments

Comments
 (0)