aboutsummaryrefslogtreecommitdiffstats
path: root/appimage
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-02-25 04:02:43 +0100
committerJay Berkenbilt <ejb@ql.org>2018-02-25 05:37:58 +0100
commit44b1ac8dccfe04655513f643c6b68c00c2c14ef8 (patch)
treef7ddff5ffe20f06d1f3012328616bead7b17cf72 /appimage
parent568f518feb9c48b557d07923432c5fcd5b79b7c4 (diff)
downloadqpdf-44b1ac8dccfe04655513f643c6b68c00c2c14ef8.tar.zst
Generate PNG files
Diffstat (limited to 'appimage')
-rwxr-xr-xappimage/build-appimage13
1 files changed, 8 insertions, 5 deletions
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: