Add linux desktop file and install (#100)
* extract png icons from the ico * add desktop file * add linux install option to cmake * use 32bit icons
This commit is contained in:
1 parent
4e8dbd0b86
commit
de13d4e326
5 files changed
+20
-1
No files matched your search
+12
-1
@@ -216,4 +216,15 @@ if(WIN32)
|
|||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_DLL_PATH}/SDL2.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_DLL_PATH}/SDL2.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_MIXER_DLL_PATH}/SDL2_mixer.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_MIXER_DLL_PATH}/SDL2_mixer.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
|
install(TARGETS "${PROJECT_NAME}" RUNTIME)
|
||||||
|
install(FILES "${PROJECT_NAME}.desktop" DESTINATION "share/applications")
|
||||||
|
install(FILES "${PROJECT_NAME}/Icon_16x16.png" DESTINATION
|
||||||
|
"share/icons/hicolor/16x16/apps" RENAME "${PROJECT_NAME}.png")
|
||||||
|
install(FILES "${PROJECT_NAME}/Icon_32x32.png" DESTINATION
|
||||||
|
"share/icons/hicolor/32x32/apps" RENAME "${PROJECT_NAME}.png")
|
||||||
|
install(FILES "${PROJECT_NAME}/Icon_48x48.png" DESTINATION
|
||||||
|
"share/icons/hicolor/48x48/apps" RENAME "${PROJECT_NAME}.png")
|
||||||
|
endif()
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=SpaceCadetPinball
|
||||||
|
Comment=Decompilation of 3D Pinball for Windows – Space Cadet
|
||||||
|
Exec=SpaceCadetPinball
|
||||||
|
Icon=SpaceCadetPinball
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Game;
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 972 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
Reference in new issue
Block a user