From 7d9284227dbfa05e18cc82223cde685fc1858181 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 13 Jul 2021 16:48:44 +0200 Subject: [PATCH] Linux AppImage: add fonts only if GUI present Withuot GUI it is pointless. --- data/scripts/Linux-AppImage/create-appimage.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/scripts/Linux-AppImage/create-appimage.sh b/data/scripts/Linux-AppImage/create-appimage.sh index da8a75103..065c87514 100755 --- a/data/scripts/Linux-AppImage/create-appimage.sh +++ b/data/scripts/Linux-AppImage/create-appimage.sh @@ -41,6 +41,10 @@ if [ -n "$QT_DIR" ]; then mkdir -p $DST_PLUGIN_DIR cp -r $SRC_PLUGIN_DIR/* $DST_PLUGIN_DIR PLUGIN_LIBS=$(find $DST_PLUGIN_DIR -type f) + + # add DejaVu font + mkdir $APPPREFIX/lib/fonts + cp $(fc-list "DejaVu Sans" | sed 's/:.*//') $APPPREFIX/lib/fonts fi # copy dependencies @@ -51,10 +55,6 @@ for n in $APPPREFIX/bin/* $APPPREFIX/lib/ultragrid/* $PLUGIN_LIBS; do done done -# add DejaVu font -mkdir $APPPREFIX/lib/fonts -cp $(fc-list "DejaVu Sans" | sed 's/:.*//') $APPPREFIX/lib/fonts - # Remove libraries that should not be bundled, see https://gitlab.com/probono/platformissues wget https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist EXCLUDE_LIST=