Skip to content

Commit

Permalink
Merge pull request #385 from sudo-give-me-coffee/master
Browse files Browse the repository at this point in the history
Check if .DirIcon is png (mimetype)
  • Loading branch information
probonopd committed Sep 6, 2019
2 parents c48feb9 + 18bbbe8 commit ca5d905
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions appdir-lint.sh
Expand Up @@ -38,6 +38,12 @@ if [ ! -e "${APPDIR}/.DirIcon" ] ; then
fatal ".DirIcon is missing in ${APPDIR}"
fi

DIR_ICON_MIME=$(mimetype $(readlink -f ${APPDIR}/.DirIcon) | awk '{print $2}')

if [[ ! "$DIR_ICON_MIME" = "image/png" ]] ; then
warn "Icon is not in PNG format. It should be so that it can be used as a thumbnail"
fi

if [ ! -x "${APPDIR}/AppRun" ] ; then
fatal "AppRun is not executable" // This seems to generate false alarms? https://travis-ci.org/AppImage/AppImageHub/builds/266084511#L539
fi
Expand Down

0 comments on commit ca5d905

Please sign in to comment.