Skip to content

Commit

Permalink
Generate PNG files
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkenbilt committed Feb 25, 2018
1 parent 568f518 commit 44b1ac8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dist: trusty

install:
- sudo apt-get update -qq
- sudo apt-get install -qq docbook* fop xsltproc less
- sudo apt-get install -qq docbook* fop xsltproc less inkscape

script:
- appimage/build-appimage
Expand Down
13 changes: 8 additions & 5 deletions appimage/build-appimage
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Binary file removed logo/qpdf.png
Binary file not shown.

0 comments on commit 44b1ac8

Please sign in to comment.