diff --git a/README-maintainer b/README-maintainer index 6583abc0..2131a43c 100644 --- a/README-maintainer +++ b/README-maintainer @@ -134,6 +134,12 @@ mkdir -p /tmp/build cp -rLp ~/.gnupg/. /tmp/build/.gnupg docker run --privileged -ti --rm -v /tmp/build:/tmp/build qpdfbuild https://github.com/jberkenbilt/qpdf -b work + To build locally, omit the git arguments after qpdfbuild above and + copy the source tree into /tmp/build/qpdf. + + Pass -e SKIP_TESTS=1 to docker to skip the test suite, useful for + rapid iteration. + Rename the AppImage in /tmp/build/qpdf/appimage/build qpdf-$version-x86_64.AppImage and move it to the release archive area. diff --git a/appimage/Dockerfile b/appimage/Dockerfile index d0efc672..174cdc98 100644 --- a/appimage/Dockerfile +++ b/appimage/Dockerfile @@ -3,7 +3,7 @@ RUN apt-get update && \ apt-get -y install screen autoconf git \ build-essential zlib1g-dev libjpeg-dev \ docbook-xsl fop xsltproc \ - imagemagick wget fuse && \ + inkscape busybox wget fuse && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* COPY entrypoint /entrypoint diff --git a/appimage/entrypoint b/appimage/entrypoint index 458a3acf..39c2ab61 100755 --- a/appimage/entrypoint +++ b/appimage/entrypoint @@ -1,5 +1,8 @@ #!/bin/bash set -e +if [ "$SKIP_TESTS" = "1" ]; then + touch /tmp/skip-tests +fi if [ $(id -u) = 0 ]; then if [ ! -d /tmp/build/.gnupg ]; then echo "/tmp/build must exist and must contain .gnupg" @@ -19,4 +22,7 @@ if [ ! -d qpdf ]; then git clone "$@" qpdf fi cd qpdf +if [ -f /tmp/skip-tests ]; then + export SKIP_TESTS=1 +fi ./appimage/build-appimage --sign