Commit 08463f43 authored by Jason Rhinelander's avatar Jason Rhinelander
Browse files

Install desktop file and app icons

parent 3dc4093a
......@@ -2,7 +2,7 @@ Source: ricochet-refresh
Section: net
Priority: optional
Maintainer: Jason Rhinelander <jason@imaginary.ca>
Build-Depends: debhelper (>= 9), pkg-config, libssl-dev, libprotobuf-dev, protobuf-compiler, qtdeclarative5-dev, qttools5-dev-tools
Build-Depends: debhelper (>= 9), pkg-config, libssl-dev, libprotobuf-dev, protobuf-compiler, qtdeclarative5-dev, qttools5-dev-tools, imagemagick
Standards-Version: 4.4.1
Homepage: https://ricochetrefresh.net/
......
debian/ricochet-refresh.desktop usr/share/applications
debian/icons/1024x1024/ricochet-refresh.png usr/share/icons/hicolor/1024x1024/apps
debian/icons/512x512/ricochet-refresh.png usr/share/icons/hicolor/512x512/apps
debian/icons/256x256/ricochet-refresh.png usr/share/icons/hicolor/256x256/apps
debian/icons/192x192/ricochet-refresh.png usr/share/icons/hicolor/192x192/apps
debian/icons/128x128/ricochet-refresh.png usr/share/icons/hicolor/128x128/apps
debian/icons/96x96/ricochet-refresh.png usr/share/icons/hicolor/96x96/apps
debian/icons/64x64/ricochet-refresh.png usr/share/icons/hicolor/64x64/apps
debian/icons/48x48/ricochet-refresh.png usr/share/icons/hicolor/48x48/apps
debian/icons/32x32/ricochet-refresh.png usr/share/icons/hicolor/32x32/apps
debian/icons/24x24/ricochet-refresh.png usr/share/icons/hicolor/24x24/apps
debian/icons/16x16/ricochet-refresh.png usr/share/icons/hicolor/16x16/apps
#!/bin/bash
set -e
set -x
for x in 1024 512 256 192 128 96 64 48 32 24 16; do
# Generate from the PNG. The SVG is fake (it just has an embedded png inside it).
mkdir -p debian/icons/${x}x${x}
convert -verbose -filter Catrom -resize ${x}x${x} icons/ricochet_refresh.png debian/icons/${x}x${x}/ricochet-refresh.png
done
......@@ -21,9 +21,11 @@ export QT_SELECT=qt5
override_dh_auto_configure:
dh_auto_configure -- DEFINES+=RICOCHET_NO_PORTABLE
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
override_dh_auto_install:
dh_auto_install
./debian/make-icons.sh
# Remove the images that `make install` installs: the 1517x1517 png gets installed into 48x48
# is just wrong, and the "scalable" svg file is actually just the same PNG stuffed into
# an svg file because, um.
rm -f debian/ricochet-refresh/usr/share/icons/hicolor/48x48/apps/ricochet_refresh.png
rm -f debian/ricochet-refresh/usr/share/icons/hicolor/scalable/apps/ricochet_refresh.svg
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment