From 83d82a85d01b2e1e727babbce851a121bf110a50 Mon Sep 17 00:00:00 2001 From: probonopd Date: Fri, 3 Nov 2017 21:56:04 +0100 Subject: Contributed AppImage and .travis.yml support --- dist/AppRun | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dist/AppRun (limited to 'dist/AppRun') diff --git a/dist/AppRun b/dist/AppRun new file mode 100644 index 00000000..8a2e5935 --- /dev/null +++ b/dist/AppRun @@ -0,0 +1,19 @@ +#!/bin/bash + +# The purpose of this custom AppRun script is +# to allow symlinking the AppImage and invoking +# the corresponding binary depending on which +# symlink was used to invoke the AppImage + +HERE="$(dirname "$(readlink -f "${0}")")" + +if [ ! -z $APPIMAGE ] ; then + BINARY_NAME=$(basename "$ARGV0") + if [ -e "$HERE/usr/bin/$BINARY_NAME" ] ; then + exec "$HERE/usr/bin/$BINARY_NAME" "$@" + else + exec "$HERE/usr/bin/qpdf" "$@" + fi +else + exec "$HERE/usr/bin/qpdf" "$@" +fi -- cgit v1.2.3-54-g00ecf