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:
Nicola Smaniotto 2021-12-02 06:07:27 +01:00 committed by GitHub
parent 4e8dbd0b86
commit de13d4e326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 1 deletions

View File

@ -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()

View File

@ -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