changeset 1950:debd173b6905

Install desktop and icon files
author Chris Cannam
date Thu, 09 Aug 2018 10:55:54 +0100
parents 037493178de5
children 5665c580081a
files sonic-visualiser.desktop sv.pro
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sonic-visualiser.desktop	Thu Aug 09 10:49:14 2018 +0100
+++ b/sonic-visualiser.desktop	Thu Aug 09 10:55:54 2018 +0100
@@ -6,6 +6,6 @@
 Keywords=audio; sound; visualiser; sonic;
 Terminal=false
 Type=Application
-Icon=sv-icon
+Icon=sonic-visualiser
 Categories=Audio;AudioVideo;
 MimeType=application/x-sonicvisualiser;application/x-sonicvisualiser-layer;application/x-ogg;audio/mp3;audio/mpeg;audio/mpegurl;audio/x-flac;audio/x-mp3;audio/x-mpeg;audio/x-mpegurl;audio/x-wav;audio/wav;application/ogg;audio/x-vorbis+ogg;
--- a/sv.pro	Thu Aug 09 10:49:14 2018 +0100
+++ b/sv.pro	Thu Aug 09 10:55:54 2018 +0100
@@ -23,10 +23,20 @@
 }
 
 linux* {
+
     sv_bins.path = $$PREFIX_PATH/bin/
     sv_bins.files = checker/vamp-plugin-load-checker piper-vamp-simple-server sonic-visualiser
     sv_bins.CONFIG = no_check_exist
-    INSTALLS += sv_bins
+
+    sv_desktop.path = $$PREFIX_PATH/share/applications/
+    sv_desktop.files = sonic-visualiser.desktop
+    sv_desktop.CONFIG = no_check_exist
+
+    sv_icon.path = $$PREFIX_PATH/share/icons/hicolor/scalable/apps/
+    sv_icon.files = icons/sonic-visualiser.svg
+    sv_icon.CONFIG = no_check_exist
+    
+    INSTALLS += sv_bins sv_desktop sv_icon
 }
 
 TRANSLATIONS += \