diff --git a/debian/changelog b/debian/changelog index c6be06c6..1b4674d8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ricochet-refresh (1.1.4-2) unstable; urgency=medium + + * add desktop file and resized icons + + -- Jason Rhinelander Tue, 31 Mar 2020 16:36:49 -0300 + ricochet-refresh (1.1.4-1) unstable; urgency=medium * deb package diff --git a/debian/control b/debian/control index edbf045f..aae566e9 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: ricochet-refresh Section: net Priority: optional Maintainer: Jason Rhinelander -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/ diff --git a/debian/install b/debian/install new file mode 100644 index 00000000..942f74aa --- /dev/null +++ b/debian/install @@ -0,0 +1,13 @@ +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 + diff --git a/debian/make-icons.sh b/debian/make-icons.sh new file mode 100755 index 00000000..73ac7f73 --- /dev/null +++ b/debian/make-icons.sh @@ -0,0 +1,10 @@ +#!/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 diff --git a/debian/rules b/debian/rules index 4399962e..e4b88403 100755 --- a/debian/rules +++ b/debian/rules @@ -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