1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-12-18 10:37:53 +01:00

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
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 1 deletions

View file

@ -217,3 +217,14 @@ if(WIN32)
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${SDL2_MIXER_DLL_PATH}/SDL2_mixer.dll" $<TARGET_FILE_DIR:SpaceCadetPinball>
)
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