mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-17 15:20:17 +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:
parent
4e8dbd0b86
commit
de13d4e326
5 changed files with 20 additions and 1 deletions
|
@ -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_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()
|
||||
|
|
8
SpaceCadetPinball.desktop
Normal file
8
SpaceCadetPinball.desktop
Normal 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;
|
BIN
SpaceCadetPinball/Icon_16x16.png
Normal file
BIN
SpaceCadetPinball/Icon_16x16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 972 B |
BIN
SpaceCadetPinball/Icon_32x32.png
Normal file
BIN
SpaceCadetPinball/Icon_32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
BIN
SpaceCadetPinball/Icon_48x48.png
Normal file
BIN
SpaceCadetPinball/Icon_48x48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Loading…
Reference in a new issue