From c60f4460d3e2dd320cbc3a6eba1171709c971a5a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 25 Feb 2018 14:54:46 -0500 Subject: No update info for travis AppImages --- appimage/build-appimage | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'appimage/build-appimage') diff --git a/appimage/build-appimage b/appimage/build-appimage index 248588ef..5384b045 100755 --- a/appimage/build-appimage +++ b/appimage/build-appimage @@ -182,24 +182,22 @@ fi # Set up a version string to include in the AppImage name MAJOR_QPDF_VERSION=$( ./appdir/usr/bin/qpdf --version | grep "qpdf version" | awk '{print $3}' ) +declare -a UPDATE_INFO if [ "$TRAVIS_JOB_NUMBER" != "" ]; then VERSION=${MAJOR_QPDF_VERSION}-continuous-${TRAVIS_JOB_NUMBER}-$(date "+%Y-%m-%d")-git.$(git rev-parse --short HEAD) - UPDATE_FLAG=-g - UPDATE_INFO= + # No update info supported for travis builds for now. else VERSION=${MAJOR_QPDF_VERSION} - UPDATE_FLAG=-u - UPDATE_INFO="gh-releases-zsync|qpdf|qpdf|latest|qpdf-*x86_64.AppImage.zsync" + UPDATE_INFO=(-u "gh-releases-zsync|qpdf|qpdf|latest|qpdf-*x86_64.AppImage.zsync") fi # Remove the default AppRun/symlink and use our own custom AppRun script rm appdir/AppRun; cp $top/appimage/AppRun appdir; chmod a+x appdir/AppRun -set +x # Finally, generate the AppImage: -PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool $sign $UPDATE_FLAG "$UPDATE_INFO" $appimagetool_param appdir qpdf-$VERSION-x86_64.AppImage - +PATH=./squashfs-root/usr/bin:$PATH ./squashfs-root/usr/bin/appimagetool $sign $UPDATE_FLAG ${UPDATE_INFO[*]} $appimagetool_param appdir qpdf-$VERSION-x86_64.AppImage +set +x # Tell everyone where our result is stored: echo "" echo "=============================================================================" -- cgit v1.2.3-54-g00ecf