Skip to content

Commit 7602f21

Browse files
committed
Add app icon
1 parent 23ffd59 commit 7602f21

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ endif()
6060
if(UNIX)
6161
include(GNUInstallDirs)
6262
install(TARGETS magicseteditor DESTINATION "${CMAKE_INSTALL_FULL_BINDIR}")
63-
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/data" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/magicseteditor")
64-
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/resource" DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/magicseteditor")
63+
install(FILES io.github.mattiasb.MagicSetEditor2.desktop DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
64+
install(FILES resource/icon/io.github.mattiasb.MagicSetEditor2.png DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/64x64/apps/")
65+
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/data" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/magicseteditor")
66+
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/resource" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/magicseteditor")
6567
endif()
6668

6769
# warnings
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Desktop Entry]
2+
Name=Magic Set Editor
3+
Comment=Create custom Magic: the Gathering cards
4+
Exec=magicseteditor
5+
Icon=io.github.mattiasb.MagicSetEditor2
6+
Terminal=false
7+
Type=Application
8+
Categories=Game;
6.17 KB
Loading

0 commit comments

Comments
 (0)