Commit ffda66ca0366704c05c1e933bd0a05a0ce419e08

Authored by Jay Berkenbilt
1 parent d3d3970c

Make the AppImage icon square

appimage/Dockerfile
... ... @@ -3,7 +3,7 @@ RUN apt-get update && \
3 3 apt-get -y install screen autoconf git \
4 4 build-essential zlib1g-dev libjpeg-dev \
5 5 docbook-xsl fop xsltproc \
6   - inkscape busybox-static wget fuse && \
  6 + inkscape imagemagick busybox-static wget fuse && \
7 7 apt-get clean && \
8 8 rm -rf /var/lib/apt/lists/*
9 9 COPY entrypoint /entrypoint
... ...
appimage/build-appimage
... ... @@ -112,7 +112,9 @@ rm -rf appdir/usr/include appdir/usr/lib/pkgconfig appdir/usr/lib/*.{a,la,so}
112 112 for width in 64 128 256 512; do
113 113 dir=appdir/usr/share/icons/hicolor/${width}x${width}/apps
114 114 mkdir -p $dir
115   - inkscape -z -e $dir/qpdf.png -w $width -b white $top/logo/qpdf.svg
  115 + inkscape -z -e qpdf-tmp.png -w $width -b white $top/logo/qpdf.svg
  116 + convert qpdf-tmp.png -gravity center -background white -extent ${width}x${width} $dir/qpdf.png
  117 + rm qpdf-tmp.png
116 118 done
117 119  
118 120 # Copy .desktop and .appdata.xml metadata for desktop integration into place:
... ...