Commit 6edbf8fa72da98a4792a70660978e24023a490b2
1 parent
3618fdb1
Include AppImage update info
Showing
3 changed files
with
9 additions
and
3 deletions
README-maintainer
| ... | ... | @@ -140,7 +140,8 @@ cp -rLp ~/.gnupg/. /tmp/build/.gnupg |
| 140 | 140 | docker run --privileged -ti --rm -v /tmp/build:/tmp/build qpdfbuild https://github.com/jberkenbilt/qpdf -b work |
| 141 | 141 | |
| 142 | 142 | The AppImage in /tmp/build/qpdf/appimage/build should be called |
| 143 | - qpdf-$version-x86_64.AppImage. Move it to the release archive area. | |
| 143 | + qpdf-$version-x86_64.AppImage. Move the AppImage and AppImage.zsync | |
| 144 | + files to the release archive area. | |
| 144 | 145 | |
| 145 | 146 | * Create Windows binary releases. In Windows: |
| 146 | 147 | * Extract the source distribution | ... | ... |
appimage/Dockerfile
| ... | ... | @@ -3,7 +3,7 @@ RUN apt-get update && \ |
| 3 | 3 | apt-get -y install screen autoconf git \ |
| 4 | 4 | build-essential zlib1g-dev libjpeg-dev \ |
| 5 | 5 | docbook-xsl fop xsltproc \ |
| 6 | - inkscape busybox wget fuse && \ | |
| 6 | + inkscape busybox-static wget fuse && \ | |
| 7 | 7 | apt-get clean && \ |
| 8 | 8 | rm -rf /var/lib/apt/lists/* |
| 9 | 9 | COPY entrypoint /entrypoint | ... | ... |
appimage/build-appimage
| ... | ... | @@ -182,8 +182,12 @@ fi |
| 182 | 182 | MAJOR_QPDF_VERSION=$( ./appdir/usr/bin/qpdf --version | grep "qpdf version" | awk '{print $3}' ) |
| 183 | 183 | if [ "$TRAVIS_JOB_NUMBER" != "" ]; then |
| 184 | 184 | VERSION=${MAJOR_QPDF_VERSION}-continuous-${TRAVIS_JOB_NUMBER}-$(date "+%Y-%m-%d")-git.$(git rev-parse --short HEAD) |
| 185 | + UPDATE_FLAG=-g | |
| 186 | + UPDATE_INFO= | |
| 185 | 187 | else |
| 186 | 188 | VERSION=${MAJOR_QPDF_VERSION} |
| 189 | + UPDATE_FLAG=-u | |
| 190 | + UPDATE_INFO="gh-releases-zsync|qpdf|qpdf|latest|qpdf-*x86_64.AppImage.zsync" | |
| 187 | 191 | fi |
| 188 | 192 | |
| 189 | 193 | # Remove the default AppRun/symlink and use our own custom AppRun script |
| ... | ... | @@ -191,7 +195,8 @@ rm appdir/AppRun; cp $top/appimage/AppRun appdir; chmod a+x appdir/AppRun |
| 191 | 195 | |
| 192 | 196 | set +x |
| 193 | 197 | # Finally, generate the AppImage: |
| 194 | -PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool $sign -g $appimagetool_param appdir qpdf-$VERSION-x86_64.AppImage | |
| 198 | +PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool $sign $UPDATE_FLAG "$UPDATE_INFO" $appimagetool_param appdir qpdf-$VERSION-x86_64.AppImage | |
| 199 | + | |
| 195 | 200 | |
| 196 | 201 | # Tell everyone where our result is stored: |
| 197 | 202 | echo "" | ... | ... |