mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
misc: Add linux assets
Add a .desktop file, this is used by application launchers in order to find and execute applications, this should be installed to `/usr/share/applications/org.openmoh.openmohaa.desktop`. Add appstream metainfo, this provides metainfo that is used by Software Centers for discoverability, this should be installed to `/usr/share/metainfo/org.openmoh.openmohaa.metainfo.xml`. This will open the door to getting OpenMoHAA packaged up by various linux distros.
This commit is contained in:
parent
58d8a73269
commit
f1c12e0649
5 changed files with 106 additions and 1 deletions
|
@ -145,7 +145,7 @@ INSTALL(TARGETS omohaaded DESTINATION "./")
|
|||
|
||||
if (NOT BUILD_NO_CLIENT)
|
||||
## Client app
|
||||
|
||||
|
||||
add_subdirectory("code/client")
|
||||
add_subdirectory("code/renderer")
|
||||
add_subdirectory("code/sdl")
|
||||
|
@ -167,6 +167,40 @@ if (NOT BUILD_NO_CLIENT)
|
|||
set_target_properties(openmohaa PROPERTIES OUTPUT_NAME "openmohaa${TARGET_BIN_SUFFIX}")
|
||||
set_target_properties(openmohaa PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
|
||||
set(TARGET_ARCH ${TARGET_BIN_SUFFIX})
|
||||
|
||||
# Configure the .desktop entries with the arch suffix
|
||||
configure_file(
|
||||
misc/linux/org.openmoh.openmohaa.desktop.in
|
||||
${CMAKE_BINARY_DIR}/misc/linux/org.openmoh.openmohaa.desktop
|
||||
@ONLY
|
||||
)
|
||||
configure_file(
|
||||
misc/linux/org.openmoh.openmohaab.desktop.in
|
||||
${CMAKE_BINARY_DIR}/misc/linux/org.openmoh.openmohaab.desktop
|
||||
@ONLY
|
||||
)
|
||||
configure_file(
|
||||
misc/linux/org.openmoh.openmohaas.desktop.in
|
||||
${CMAKE_BINARY_DIR}/misc/linux/org.openmoh.openmohaas.desktop
|
||||
@ONLY
|
||||
)
|
||||
|
||||
# Set destination directory for .desktop files
|
||||
set(DESKTOP_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/applications)
|
||||
|
||||
# Install .desktop entries
|
||||
install(FILES ${CMAKE_BINARY_DIR}/misc/linux/org.openmoh.openmohaa.desktop DESTINATION ${DESKTOP_INSTALL_DIR})
|
||||
install(FILES ${CMAKE_BINARY_DIR}/misc/linux/org.openmoh.openmohaab.desktop DESTINATION ${DESKTOP_INSTALL_DIR})
|
||||
install(FILES ${CMAKE_BINARY_DIR}/misc/linux/org.openmoh.openmohaas.desktop DESTINATION ${DESKTOP_INSTALL_DIR})
|
||||
|
||||
install(FILES misc/linux/org.openmoh.openmohaa.metainfo.xml DESTINATION share/metainfo)
|
||||
|
||||
install(FILES misc/openmohaa.svg DESTINATION share/icons/hicolor/symbolic/apps/ RENAME org.openmoh.openmohaa.svg)
|
||||
endif()
|
||||
|
||||
if(USE_INTERNAL_JPEG)
|
||||
target_include_directories(openmohaa PUBLIC "code/jpeg-8c")
|
||||
target_link_libraries(openmohaa PRIVATE jpeg8)
|
||||
|
|
11
misc/linux/org.openmoh.openmohaa.desktop.in
Normal file
11
misc/linux/org.openmoh.openmohaa.desktop.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
|
||||
Name=OpenMoHAA
|
||||
Comment=An open-source game engine compatible with Medal of Honor: Allied Assault
|
||||
Categories=Game;Shooter;
|
||||
|
||||
Icon=org.openmoh.openmohaa
|
||||
Exec=launch_openmohaa_base@TARGET_ARCH@
|
||||
Terminal=false
|
38
misc/linux/org.openmoh.openmohaa.metainfo.xml
Normal file
38
misc/linux/org.openmoh.openmohaa.metainfo.xml
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>org.openmoh.openmohaa</id>
|
||||
|
||||
<name>OpenMoHAA</name>
|
||||
<summary>An open-source game engine compatible with Medal of Honor: Allied Assault and its expansions (Spearhead and Breakthrough)</summary>
|
||||
|
||||
<metadata_license>FSFAP</metadata_license>
|
||||
<project_license>GPL-2.0-or-later</project_license>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
The main goal of OpenMoHAA is to ensure the future and continuity of Medal of Honor: Allied Assault. It has always been a dream in the community to provide patches and security fixes for the game. Thanks to the ioquake3 project, F.A.K.K SDK and other quality tools, OpenMoHAA has already reached more than half of its goal: to create an open-source version of MoH:AA (based on version 2.40) that is fully compatible with the original game (in terms of protocol, assets, and scripts).
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">org.openmoh.openmohaa.desktop</launchable>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://github.com/openmoh/openmohaa/blob/main/docs/images/v0.60.0-x86_64/mohdm1_1.png?raw=true</image>
|
||||
<caption>Shows a smoke being deployed during multiplayer gameplay</caption>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<image>https://github.com/openmoh/openmohaa/blob/main/docs/images/v0.60.0-x86_64/flughafen_1.png?raw=true</image>
|
||||
<caption>Shows a turret firing during multiplayer gameplay</caption>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<image>https://github.com/openmoh/openmohaa/blob/main/docs/images/v0.60.0-x86_64/flughafen_3.png?raw=true</image>
|
||||
<caption>Shows a mortar firing during multiplayer gameplay</caption>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-realistic">moderate</content_attribute>
|
||||
<content_attribute id="social-chat">moderate</content_attribute>
|
||||
<content_attribute id="social-audio">intense</content_attribute>
|
||||
</content_rating>
|
||||
</component>
|
11
misc/linux/org.openmoh.openmohaab.desktop.in
Normal file
11
misc/linux/org.openmoh.openmohaab.desktop.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
|
||||
Name=OpenMoHAA Breakthrough
|
||||
Comment=An open-source game engine compatible with Medal of Honor: Allied Assault Breakthrough
|
||||
Categories=Game;Shooter;
|
||||
|
||||
Icon=org.openmoh.openmohaa
|
||||
Exec=launch_openmohaa_breakthrough@TARGET_ARCH@
|
||||
Terminal=false
|
11
misc/linux/org.openmoh.openmohaas.desktop.in
Normal file
11
misc/linux/org.openmoh.openmohaas.desktop.in
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
|
||||
Name=OpenMoHAA Spearhead
|
||||
Comment=An open-source game engine compatible with Medal of Honor: Allied Assault Spearhead
|
||||
Categories=Game;Shooter;
|
||||
|
||||
Icon=org.openmoh.openmohaa
|
||||
Exec=launch_openmohaa_spearhead@TARGET_ARCH@
|
||||
Terminal=false
|
Loading…
Add table
Add a link
Reference in a new issue