dom0: Scale icons to 48x48

We register them as 48px icons, so scale them to that size (originally 600px).
Specifically required by gui-daemon which require prescalled icon.
This commit is contained in:
Marek Marczykowski 2013-02-19 01:05:22 +01:00
parent 39a26cdb08
commit b214fa6f9d
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1,2 @@
xen-devel-*DIST*
ImageMagick

View File

@ -48,6 +48,7 @@ Vendor: Invisible Things Lab
License: GPL
URL: http://www.qubes-os.org
BuildRequires: xen-devel
BuildRequires: ImageMagick
%if %{use_systemd}
BuildRequires: systemd-units
Requires(post): systemd-units
@ -202,7 +203,9 @@ mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/dvmdata
mkdir -p $RPM_BUILD_ROOT/var/lib/qubes/updates
mkdir -p $RPM_BUILD_ROOT/usr/share/qubes/icons
cp icons/*.png $RPM_BUILD_ROOT/usr/share/qubes/icons
for icon in icons/*.png; do
convert -resize 48 $icon $RPM_BUILD_ROOT/usr/share/qubes/$icon
done
cp misc/qubes-vm.directory.template $RPM_BUILD_ROOT/usr/share/qubes/
cp misc/qubes-templatevm.directory.template $RPM_BUILD_ROOT/usr/share/qubes/
cp misc/qubes-servicevm.directory.template $RPM_BUILD_ROOT/usr/share/qubes/