Commit 5404782b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack generic-appimage.sh: fix install icon

parent 62e64c6e
......@@ -51,11 +51,12 @@ if [ -r "$DESKTOPFILE" ] ; then
FROMICONFILE="$(cat $DESKTOPFILE | grep "^Icon" | head -n1 | sed -e 's|Icon=||').png"
fi
ICONFILE="$PRODUCT.png"
# it is strange, there is no icon file
# https://docs.appimage.org/reference/appdir.html
if [ ! -s "$FROMICONFILE" ] ; then
FROMICONFILE=".DirIcon"
ICONFILE="$PRODUCT.png"
grep -q "^<svg" $FROMICONFILE && ICONFILE="$PRODUCT.svg"
fi
install_file $PRODUCTDIR/$FROMICONFILE /usr/share/pixmaps/$ICONFILE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment