From 44b1ac8dccfe04655513f643c6b68c00c2c14ef8 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 24 Feb 2018 22:02:43 -0500 Subject: Generate PNG files --- appimage/build-appimage | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'appimage') diff --git a/appimage/build-appimage b/appimage/build-appimage index 0ea3f783..28f0710b 100755 --- a/appimage/build-appimage +++ b/appimage/build-appimage @@ -91,8 +91,10 @@ rm -rf $here/build # Build! make -j$(nproc) -# Run built-in QPDF checks: -make check +if [ "$SKIP_TESTS" = "" ]; then + # Run built-in QPDF checks: + make check +fi # Prepare AppDir which is the basis for the AppImage: mkdir -p $appdir @@ -107,9 +109,10 @@ cd $here/build rm -rf appdir/usr/include appdir/usr/lib/pkgconfig appdir/usr/lib/*.{a,la,so} # Copy icon which is needed for desktop integration into place: -for i in appdir/usr/share/icons/hicolor/512x512/apps; do - mkdir -p $i - cp $top/logo/qpdf.png $i +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 done # Copy .desktop and .appdata.xml metadata for desktop integration into place: -- cgit v1.2.3-70-g09d2