Commit 3782b670 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: add workaround for missed icons

parent b8c6ef22
......@@ -64,17 +64,17 @@ if [ -r "$DESKTOPFILE" ] ; then
fi
[ -n "$ICONNAME" ] || fatal "Couldn't retrieve icon name from $DESKTOPFILE"
ICONFILE=$ICONNAME.png
# it is strange, there is no icon file
# https://docs.appimage.org/reference/appdir.html
if [ ! -s "$FROMICONFILE" ] ; then
FROMICONFILE=".DirIcon"
grep -q "^<svg" $FROMICONFILE && ICONFILE="$PRODUCT.svg"
if [ -n "$ICONNAME" ] ; then
ICONFILE=$ICONNAME.png
# it is strange, there is no icon file
# https://docs.appimage.org/reference/appdir.html
if [ ! -s "$FROMICONFILE" ] ; then
FROMICONFILE=".DirIcon"
grep -q "^<svg" $FROMICONFILE && ICONFILE="$PRODUCT.svg"
fi
install_file $PRODUCTDIR/$FROMICONFILE /usr/share/pixmaps/$ICONFILE
fi
install_file $PRODUCTDIR/$FROMICONFILE /usr/share/pixmaps/$ICONFILE
# copy icons if possible
for i in usr/share/icons/hicolor/*x*/apps/* ; do
......
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