Browse Source

Add Appstream metainfo (#4497)

* Add Appstream metainfo
* Add CMake logic to install metainfo
* Flatpak manifest fixes
pull/4634/head
Oleksandr Kalko 4 years ago committed by GitHub
parent
commit
99d8448c9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      CMakeLists.txt
  2. 39
      Packaging/nix/devilutionx.metainfo.xml
  3. 5
      Packaging/nix/org.diasurgical.DevilutionX.yml

4
CMakeLists.txt

@ -502,6 +502,10 @@ if(CPACK AND (APPLE OR BUILD_ASSETS_MPQ OR SRC_DIST))
DESTINATION "share/icons/hicolor/512x512/apps" DESTINATION "share/icons/hicolor/512x512/apps"
RENAME "${project_name}-hellfire.png" RENAME "${project_name}-hellfire.png"
) )
install(FILES "${PROJECT_SOURCE_DIR}/Packaging/nix/devilutionx.metainfo.xml"
DESTINATION "share/metainfo"
RENAME "${project_name}.metainfo.xml"
)
# -G DEB # -G DEB
set(CPACK_PACKAGE_CONTACT "anders@jenbo.dk") set(CPACK_PACKAGE_CONTACT "anders@jenbo.dk")

39
Packaging/nix/devilutionx.metainfo.xml

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.diasurgical.DevilutionX</id>
<name>DevilutionX</name>
<summary>Diablo/Hellfire source port for modern operating systems</summary>
<metadata_license>CC-BY-SA-4.0</metadata_license>
<project_license>UPL-1.0</project_license>
<supports>
<control>pointing</control>
<control>keyboard</control>
<control>touch</control>
<control>gamepad</control>
</supports>
<description>
<p>
DevilutionX is a source port of Diablo and Hellfire that strives to make it simple to run the game while providing engine improvements, bugfixes, and some optional quality of life features. This includes support for modern operating systems and higher resolutions, controller and touch control support, stash, optional experience and enemy health bars, etc.
</p>
<p>
Note: DevilutionX requires data files from original Diablo/Hellfire. Alternatively, a demo version of Diablo can be downloaded.
</p>
</description>
<launchable type="desktop-id">devilutionx.desktop</launchable>
<screenshots>
<screenshot type="default">
<image>https://cdn.discordapp.com/attachments/518541192993046562/965941731579277312/unknown.png</image>
</screenshot>
<screenshot>
<image>https://cdn.discordapp.com/attachments/518541192993046562/965941904086818826/unknown.png</image>
</screenshot>
<screenshot>
<image>https://cdn.discordapp.com/attachments/518541192993046562/965942617223348284/unknown.png</image>
</screenshot>
</screenshots>
</component>

5
Packaging/nix/org.diasurgical.DevilutionX.yml

@ -4,13 +4,16 @@ runtime-version: '21.08'
sdk: org.freedesktop.Sdk sdk: org.freedesktop.Sdk
command: devilutionx command: devilutionx
rename-desktop-file: devilutionx.desktop rename-desktop-file: devilutionx.desktop
rename-appdata-file: devilutionx.metainfo.xml
rename-icon: devilutionx
finish-args: finish-args:
- --socket=fallback-x11 - --socket=fallback-x11
- --socket=wayland - --socket=wayland
- --device=dri - --device=dri
- --share=network - --share=network
- --share-ipc
- --socket=pulseaudio - --socket=pulseaudio
- --filesystem=xdg-config
modules: modules:
- name: devilutionX - name: devilutionX
buildsystem: cmake-ninja buildsystem: cmake-ninja

Loading…
Cancel
Save