Commit 44b1ac8dccfe04655513f643c6b68c00c2c14ef8

Authored by Jay Berkenbilt
1 parent 568f518f

Generate PNG files

.travis.yml
@@ -5,7 +5,7 @@ dist: trusty @@ -5,7 +5,7 @@ dist: trusty
5 5
6 install: 6 install:
7 - sudo apt-get update -qq 7 - sudo apt-get update -qq
8 - - sudo apt-get install -qq docbook* fop xsltproc less 8 + - sudo apt-get install -qq docbook* fop xsltproc less inkscape
9 9
10 script: 10 script:
11 - appimage/build-appimage 11 - appimage/build-appimage
appimage/build-appimage
@@ -91,8 +91,10 @@ rm -rf $here/build @@ -91,8 +91,10 @@ rm -rf $here/build
91 # Build! 91 # Build!
92 make -j$(nproc) 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 # Prepare AppDir which is the basis for the AppImage: 99 # Prepare AppDir which is the basis for the AppImage:
98 mkdir -p $appdir 100 mkdir -p $appdir
@@ -107,9 +109,10 @@ cd $here/build @@ -107,9 +109,10 @@ cd $here/build
107 rm -rf appdir/usr/include appdir/usr/lib/pkgconfig appdir/usr/lib/*.{a,la,so} 109 rm -rf appdir/usr/include appdir/usr/lib/pkgconfig appdir/usr/lib/*.{a,la,so}
108 110
109 # Copy icon which is needed for desktop integration into place: 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 done 116 done
114 117
115 # Copy .desktop and .appdata.xml metadata for desktop integration into place: 118 # Copy .desktop and .appdata.xml metadata for desktop integration into place:
logo/qpdf.png deleted

8.35 KB