packaging: add icon to launcher
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 14 May 2014 14:16:53 +0000 (16:16 +0200)
committerTomasz Olszak <olszak.tomasz@gmail.com>
Mon, 9 Nov 2015 17:27:21 +0000 (18:27 +0100)
Change-Id: I3e3cb3bb9a203a55132197a0835aa411df265dc5
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/qt5-qtdeclarative-examples.desktop
packaging/qt5-qtdeclarative.spec

index 111872ea782f70c6354ab446ec0afa4f7c4d4e90..87ce5b66ce31378b5a5eed9198abb348ace93301 100644 (file)
@@ -2,3 +2,4 @@
 Name=Qt Declarative examples
 Type=Application
 Exec=/usr/bin/qt5-qtdeclarative-examples.sh
+Icon=/usr/share/icons/default/small/qt5-qtdeclarative-examples.png
index e958ff879de0e47089277e87238d41bb1fd7a568..be385a1f3e150e7c5194da96430c2e84097436a5 100644 (file)
@@ -328,6 +328,8 @@ install -d "%{buildroot}%{_bindir}/"
 install %{SOURCE1010} "%{buildroot}%{_bindir}/"
 install -d "%{buildroot}%{_datadir}/applications/"
 install %{SOURCE1011} "%{buildroot}%{_datadir}/applications/"
+install -d "%{buildroot}%{_datadir}/icons/default/small/"
+install ./tests/benchmarks/qml/painting/data/64x64.png "%{buildroot}%{_datadir}/icons/default/small/%{name}-examples.png"
 
 #### Pre/Post section
 
@@ -527,6 +529,7 @@ install %{SOURCE1011} "%{buildroot}%{_datadir}/applications/"
 %manifest %{name}.manifest
 %{_bindir}/%{name}-examples.sh
 %{_datadir}/applications/%{name}-examples.desktop
+%{_datadir}/icons/default/small/%{name}-examples.png
 %{_datadir}/qt5/%{name}/examples/*