aboutsummaryrefslogtreecommitdiffstats
path: root/appimage/build-appimage
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-02-25 20:17:16 +0100
committerJay Berkenbilt <ejb@ql.org>2018-02-25 20:17:16 +0100
commitffda66ca0366704c05c1e933bd0a05a0ce419e08 (patch)
treef356183bb53dc965bee7bee41f11450a264297d1 /appimage/build-appimage
parentd3d3970cf658ea07dece9264459a21ad26c242db (diff)
downloadqpdf-ffda66ca0366704c05c1e933bd0a05a0ce419e08.tar.zst
Make the AppImage icon square
Diffstat (limited to 'appimage/build-appimage')
-rwxr-xr-xappimage/build-appimage4
1 files changed, 3 insertions, 1 deletions
diff --git a/appimage/build-appimage b/appimage/build-appimage
index d292a0c0..248588ef 100755
--- a/appimage/build-appimage
+++ b/appimage/build-appimage
@@ -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: