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