Skip to content

Commit

Permalink
Add and install appstream and icon files with flatpak package naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jonri committed Oct 2, 2022
1 parent 7f7010a commit 8490b73
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Expand Up @@ -171,6 +171,15 @@ install(DIRECTORY install/ui DESTINATION ${PKGDATADIR}
FILES_MATCHING PATTERN "*.ttf" PATTERN "*.xrc")
install(DIRECTORY install/resources DESTINATION ${PKGDATADIR})

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/install/bitmaps/darkradiant_icon_64x64.png
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/64x64/apps
RENAME net.darkradiant.DarkRadiant.png)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/install/bitmaps/darkradiant_icon_128x128.png
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/128x128/apps
RENAME net.darkradiant.DarkRadiant.png)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/install/net.darkradiant.DarkRadiant.metainfo.xml
DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)

# Install locale data
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14")
# CMake 3.14 and above support TYPE LOCALE, they deduct DESTINATION themselves
Expand Down
Binary file added install/bitmaps/darkradiant_icon_128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions install/darkradiant.desktop.in
Expand Up @@ -4,10 +4,10 @@ Name=DarkRadiant
GenericName=Level editor
Keywords=doom;doom3;idtech;level;map;the dark mod;game development;

Comment=3D level editor for Doom 3 and the Dark Mod
Comment[de]=3D Level Editor für Doom 3 und The Dark Mod
Comment=3D level editor for The Dark Mod and Doom 3
Comment[de]=3D Level Editor für The Dark Mod und Doom 3

Icon=@CMAKE_INSTALL_PREFIX@/share/darkradiant/bitmaps/darkradiant_icon_64x64.png
Icon=net.darkradiant.DarkRadiant

# The %f means a single, local, absolute file. Remote files will be
# first copied in a local temp location and then given to the program:
Expand Down
76 changes: 76 additions & 0 deletions install/net.darkradiant.DarkRadiant.metainfo.xml
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>net.darkradiant.DarkRadiant</id>
<name>DarkRadiant</name>
<summary>3D level editor for The Dark Mod and Doom 3</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0-or-later</project_license>
<content_rating type="oars-1.1" />
<url type="homepage">https://www.darkradiant.net/</url>
<screenshots>
<screenshot type="default">
<caption>Main window</caption>
<image type="source" width="1960" height="1039">https://www.darkradiant.net/images/screenshots/appstream_screenshot1.png</image>
</screenshot>
<screenshot>
<caption>Prefab chooser</caption>
<image type="source" width="1960" height="1039">https://www.darkradiant.net/images/screenshots/appstream_screenshot2.png</image>
</screenshot>
<screenshot>
<caption>Animation viewer</caption>
<image type="source" width="1960" height="1039">https://www.darkradiant.net/images/screenshots/appstream_screenshot3.png</image>
</screenshot>
<screenshot>
<caption>Material editor</caption>
<image type="source" width="1960" height="1039">https://www.darkradiant.net/images/screenshots/appstream_screenshot4.png</image>
</screenshot>
</screenshots>
<description>
<p>
DarkRadiant is an overhauled version originally based on GtkRadiant designed for use with The Dark Mod (www.thedarkmod.com), a Thief-inspired modification of the Doom 3 game engine.
</p>
<p>
Feature Highlights include:
<ul>
<li>Media Browser</li>
<li>Surface / Patch / Light Inspector</li>
<li>Layers, Grouping and Selection Sets</li>
<li>Model Scaling</li>
<li>Particle Editor incl. realtime Preview</li>
<li>Export entire map sections to ASE, LWO and OBJ format</li>
<li>Browsers for Models, Entity Classes, Skins, Sounds</li>
<li>Support for most idTech4 shader features</li>
<li>TexTool (U/V Editing Tool)</li>
<li>MD5 Animation Viewer</li>
<li>Curve Editing</li>
<li>Drag-Manipulation of Brushes, Patches and Lights (Point and Projected)</li>
<li>Python Script Interface</li>
<li>Game support for: The Dark Mod 2.0, Doom 3, Quake 4, Quake 3, XreaL</li>
<li>Imports all kinds of maps in classic Quake/idTech map formats</li>
<li>Exports maps to Doom 3 / Quake4 / Quake 3 format</li>
<li>Customisable colour schemes</li>
<li>English and German localisation</li>
</ul>
</p>
<p>
Our goal is to provide the TDM fan-mission community with a capable and easy-to-use editor. To achieve this, specialised plugins were developed to assist authors in tackling the complex mission creating tasks:
<ul>
<li>Stim/Response Editor</li>
<li>Objectives Editor</li>
<li>Difficulty Editor</li>
<li>Conversation Editor</li>
<li>AI Property Panel</li>
<li>Readable Editor incl. Preview</li>
<li>AI Head Selector</li>
</ul>
</p>
</description>

<launchable type="desktop-id">net.darkradiant.DarkRadiant.desktop</launchable>

<releases>
<release version="3.3.0" date="2022-09-23"/>
<release version="3.2.0" date="2022-09-03"/>
</releases>

</component>

0 comments on commit 8490b73

Please sign in to comment.