2018-10-13 16:07:16 +00:00
|
|
|
#!/bin/bash
|
2019-06-22 20:38:17 +00:00
|
|
|
#
|
|
|
|
# Any extra args are passed to the docker run command before the
|
|
|
|
# invocation of qpdfbuild. This is useful for iterating locally as
|
|
|
|
# described in README-maintainer.
|
|
|
|
#
|
2018-10-13 16:07:16 +00:00
|
|
|
set -ex
|
2018-10-15 18:13:52 +00:00
|
|
|
cd appimage
|
|
|
|
docker build -t qpdfbuild .
|
|
|
|
rm -rf build
|
|
|
|
mkdir build
|
|
|
|
cd ..
|
|
|
|
git clone .git appimage/build/qpdf
|
2019-06-22 20:38:17 +00:00
|
|
|
docker run --privileged --rm \
|
|
|
|
-v $PWD/appimage/build:/tmp/build ${1+"$@"} qpdfbuild
|
|
|
|
rm -rf distribution
|
2018-10-13 16:07:16 +00:00
|
|
|
mkdir distribution
|
2018-10-15 18:13:52 +00:00
|
|
|
cp -p appimage/build/qpdf/appimage/build/qpdf*AppImage* distribution
|
2018-10-13 16:07:16 +00:00
|
|
|
for i in distribution/*; do
|
|
|
|
mv $i $(echo $i | sed -e 's/\.AppImage/-ci.AppImage/')
|
|
|
|
done
|
|
|
|
sha256sum distribution/*
|