Skip to content

Commit

Permalink
Merge pull request #25 from kotify/trigger-build
Browse files Browse the repository at this point in the history
Bump gs + fix weasyprint
  • Loading branch information
kalekseev authored Apr 24, 2024
2 parents a2574d3 + 60dd2e5 commit aca8186
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ stack.deploy:
cd cdk-stacks && npm install && npm run build
cdk deploy --app ./cdk-stacks/bin/app.js --stack PrintStack --parameters uploadBucketName=${BUCKET}

test.start.container:
test.start.container: build/weasyprint-layer-python$(RUNTIME).zip
${DOCKER_RUN} \
-e GDK_PIXBUF_MODULE_FILE="/opt/lib/loaders.cache" \
-e FONTCONFIG_PATH="/opt/fonts" \
Expand Down
2 changes: 1 addition & 1 deletion ghostscript/layer_builder.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -e
export VERSION="10.02.1"
export VERSION="10.03.0"

dnf install -y gcc tar
cd /tmp/
Expand Down
3 changes: 3 additions & 0 deletions weasyprint/layer_builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ rpmdev-extract -- *rpm

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

0 comments on commit aca8186

Please sign in to comment.