Skip to content

Commit

Permalink
Include and point to fonts.conf in attempt to fix font/fontconfig issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanvolz committed Oct 4, 2023
1 parent aa56ec3 commit 59449fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ done
mkdir -p ./AppDir/apprun-hooks
echo 'export CONDA_PREFIX="$APPDIR/usr"' >./AppDir/apprun-hooks/soapy-hook.sh
echo 'export UHD_PKG_PATH="$APPDIR/usr"' >./AppDir/apprun-hooks/uhd-hook.sh
echo 'export FONTCONFIG_FILE="$APPDIR/etc/fonts/fonts.conf"' >./AppDir/apprun-hooks/fontconfig-hook.sh

# since libs come from prefix, little use in querying copyright files with dpkg-query
export DISABLE_COPYRIGHT_FILES_DEPLOYMENT=1
Expand Down Expand Up @@ -104,6 +105,11 @@ cp "$PREFIX"/lib/libuuid.so.1 ./AppDir/usr/lib/
cp "$PREFIX"/lib/libxcb.so.1 ./AppDir/usr/lib/
cp "$PREFIX"/lib/libz.so.1 ./AppDir/usr/lib/

# copy fontconfig configuration files that the FONTCONFIG_FILE env var points to
mkdir -p ./AppDir/etc/ ./AppDir/share/
cp -R "$PREFIX"/etc/fonts ./AppDir/etc/fonts
cp -R "$PREFIX"/share/fontconfig ./AppDir/share/fontconfig

# finally make the AppImage
./appimagetool-x86_64.AppImage AppDir/

Expand Down

0 comments on commit 59449fa

Please sign in to comment.