2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Make the AppImage icon square

This commit is contained in:
Jay Berkenbilt 2018-02-25 14:17:16 -05:00
parent d3d3970cf6
commit ffda66ca03
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@ RUN apt-get update && \
apt-get -y install screen autoconf git \
build-essential zlib1g-dev libjpeg-dev \
docbook-xsl fop xsltproc \
inkscape busybox-static wget fuse && \
inkscape imagemagick busybox-static wget fuse && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint /entrypoint

View File

@ -112,7 +112,9 @@ rm -rf appdir/usr/include appdir/usr/lib/pkgconfig appdir/usr/lib/*.{a,la,so}
for width in 64 128 256 512; do
dir=appdir/usr/share/icons/hicolor/${width}x${width}/apps
mkdir -p $dir
inkscape -z -e $dir/qpdf.png -w $width -b white $top/logo/qpdf.svg
inkscape -z -e qpdf-tmp.png -w $width -b white $top/logo/qpdf.svg
convert qpdf-tmp.png -gravity center -background white -extent ${width}x${width} $dir/qpdf.png
rm qpdf-tmp.png
done
# Copy .desktop and .appdata.xml metadata for desktop integration into place: