aboutsummaryrefslogtreecommitdiffstats
path: root/appimage/build-appimage
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-02-25 20:54:46 +0100
committerJay Berkenbilt <ejb@ql.org>2018-02-25 20:54:46 +0100
commitc60f4460d3e2dd320cbc3a6eba1171709c971a5a (patch)
treeb00482b4cf14315f8520fbab04a2d73ac4ffb785 /appimage/build-appimage
parent111ec50950834699790d4ae4e80a787180fb351a (diff)
downloadqpdf-c60f4460d3e2dd320cbc3a6eba1171709c971a5a.tar.zst
No update info for travis AppImages
Diffstat (limited to 'appimage/build-appimage')
-rwxr-xr-xappimage/build-appimage12
1 files changed, 5 insertions, 7 deletions
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 "============================================================================="