From ae7684018c335c1866bd02cd38c0d20ee72f2c77 Mon Sep 17 00:00:00 2001 From: chrg Date: Tue, 7 Feb 2023 22:36:16 +0100 Subject: [PATCH] Add desktop files and install target --- CMakeLists.txt | 4 ++++ resources/linux/gmplayer.desktop | 9 +++++++++ resources/linux/gmplayer.png | Bin 0 -> 605 bytes 3 files changed, 13 insertions(+) create mode 100644 resources/linux/gmplayer.desktop create mode 100644 resources/linux/gmplayer.png diff --git a/CMakeLists.txt b/CMakeLists.txt index 58d2094..9a52ce1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,3 +31,7 @@ link_directories(${GME_LIBRARY_DIRS}) add_executable(gmplayer src/main.cpp src/gui.cpp src/player.cpp src/keyrecorder.cpp src/io.cpp resources/icons.qrc) target_link_libraries(gmplayer pthread Qt5::Widgets ${SDL2_LIBRARIES} ${GME_LIBRARIES} ${MPRISQT5_LIBRARIES}) + +install(FILES resources/linux/gmplayer.desktop DESTINATION share/applications/ COMPONENT desktop) +install(FILES resources/linux/gmplayer.png DESTINATION share/icons/hicolor/256x256/apps COMPONENT desktop) +install(TARGETS gmplayer DESTINATION bin COMPONENT binaries) diff --git a/resources/linux/gmplayer.desktop b/resources/linux/gmplayer.desktop new file mode 100644 index 0000000..bd02e59 --- /dev/null +++ b/resources/linux/gmplayer.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=gmplayer +Comment=Music player for retro game music +Exec=gmplayer %U +Icon=gmplayer +Terminal=false +Type=Application +Categories=Music; +GenericName=Retro music player diff --git a/resources/linux/gmplayer.png b/resources/linux/gmplayer.png new file mode 100644 index 0000000000000000000000000000000000000000..65bbe009d5c617d2793ee99a4b8bf775f9000348 GIT binary patch literal 605 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-HD>U=sIqaSW-L z^LF+|ze52cZQUy;u`N!JQ7AKRo3O*k{NT~;1;vFI#2;|Rl$3tvl!=jj@ZQ8(o)w~-KsI%CaXJr>7SFC z1-#vBT9^N~zr(PF!NfAsaq~@;kLRu_ciP+EO5vZTU0QVZ;ey#&_e`=?>dO+d6E*A^ z!73Y#9qxSgo^hIM!k)c$6HH6zv8&vF|J`%VAC>~<3rrVYEZQ#r_rmW#CpJ5MuUUQ7 zD=JtgrrhC+nNI&4PIs}j;dM+q7&90%Nb7FU;&vp>q@Od$fI9u-x!6!_8UECcDcd6MglB% z<|o5HJB3uR1e0CD?g|gCW&2P5V)z%UkPP+|OU;4m_pKr}rCt;DW_*(?k2NebU0_@Au2FJHeZ`(vf`-xQ{9}0A XdFe9Go#~H&>4m}5)z4*}Q$iB}-Y^OI literal 0 HcmV?d00001