Commit 44b1ac8dccfe04655513f643c6b68c00c2c14ef8
1 parent
568f518f
Generate PNG files
Showing
3 changed files
with
9 additions
and
6 deletions
.travis.yml
appimage/build-appimage
| ... | ... | @@ -91,8 +91,10 @@ rm -rf $here/build |
| 91 | 91 | # Build! |
| 92 | 92 | make -j$(nproc) |
| 93 | 93 | |
| 94 | -# Run built-in QPDF checks: | |
| 95 | -make check | |
| 94 | +if [ "$SKIP_TESTS" = "" ]; then | |
| 95 | + # Run built-in QPDF checks: | |
| 96 | + make check | |
| 97 | +fi | |
| 96 | 98 | |
| 97 | 99 | # Prepare AppDir which is the basis for the AppImage: |
| 98 | 100 | mkdir -p $appdir |
| ... | ... | @@ -107,9 +109,10 @@ cd $here/build |
| 107 | 109 | rm -rf appdir/usr/include appdir/usr/lib/pkgconfig appdir/usr/lib/*.{a,la,so} |
| 108 | 110 | |
| 109 | 111 | # Copy icon which is needed for desktop integration into place: |
| 110 | -for i in appdir/usr/share/icons/hicolor/512x512/apps; do | |
| 111 | - mkdir -p $i | |
| 112 | - cp $top/logo/qpdf.png $i | |
| 112 | +for width in 64 128 256 512; do | |
| 113 | + dir=appdir/usr/share/icons/hicolor/${width}x${width}/apps | |
| 114 | + mkdir -p $dir | |
| 115 | + inkscape -z -e $dir/qpdf.png -w $width -b white $top/logo/qpdf.svg | |
| 113 | 116 | done |
| 114 | 117 | |
| 115 | 118 | # Copy .desktop and .appdata.xml metadata for desktop integration into place: | ... | ... |
logo/qpdf.png deleted
8.35 KB