Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize the AppStream metadata #1575

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
APPNAME = redeclipse
APPIDNAME = net.redeclipse.RedEclipse
APPCLIENT = $(APPNAME)
APPSERVER = $(APPNAME)_server

Expand Down
50 changes: 50 additions & 0 deletions src/install/nix/net.redeclipse.RedEclipse.metainfo.xml.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>@APPIDNAME@</id>
<launchable type="desktop-id">@[email protected]</launchable>
<provides>
<binary>@APPNAME@</binary>
</provides>
<metadata_license>CC-BY-SA-3.0+</metadata_license>
<project_license>Zlib and CC-BY-SA-3.0+</project_license>
<name>Red Eclipse</name>
<developer_name>Red Eclipse Team</developer_name>
<summary>First-person shooter with agile gameplay and built-in editor</summary>
<description>
<p>
Red Eclipse is a fun-filled new take on the first person arena shooter,
based on the Tesseract game engine, which lends itself toward a balanced
gameplay, with a general theme of agility in a variety of environments.
</p>
<ul>
<li>Cross-platform multiplayer</li>
<li>Features parkour, impulse boosts, dashing, and other tricks</li>
<li>Favourite gamemodes with an array of mutators and variables</li>
<li>Builtin editor lets you create your own maps cooperatively online</li>
</ul>
</description>
<url type="homepage">https://redeclipse.net/</url>
<url type="bugtracker">https://github.com/redeclipse/base/issues</url>
<url type="donation">https://redeclipse.net/donate</url>
<url type="help">https://redeclipse.net/faq</url>
<screenshots>
<screenshot type="default">
<image>https://redeclipse.net/bits/images/053.jpg</image>
<caption>Posing with fire on the map venus</caption>
</screenshot>
<screenshot>
<image>https://redeclipse.net/bits/images/045.jpg</image>
<caption>Mine fireworks on the map vault</caption>
</screenshot>
<screenshot>
<image>https://redeclipse.net/bits/images/019.jpg</image>
<caption>Overlooking friendly fire on the map cutec</caption>
</screenshot>
</screenshots>
<update_contact>https://redeclipse.net/forum/</update_contact>
<content_rating type="oars-1.1">
<content_attribute id="violence-fantasy">moderate</content_attribute>
<content_attribute id="violence-bloodshed">mild</content_attribute>
<content_attribute id="social-chat">intense</content_attribute>
</content_rating>
</component>
69 changes: 0 additions & 69 deletions src/install/nix/redeclipse.appdata.xml.am

This file was deleted.

11 changes: 7 additions & 4 deletions src/system-install.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
appname=$(APPNAME)
appidname=$(APPIDNAME)
appnamefull=$(shell sed -n 's/.define VERSION_NAME *"\([^"]*\)"/\1/p' version.h)
appsrcname=$(APPNAME)
appidsrcname=$(APPIDNAME)
cappname=$(shell echo $(appname) | tr '[:lower:]' '[:upper:]')# Captial appname
appclient=$(APPCLIENT)$(APPMODIFIER)$(BIN_SUFFIX)
appserver=$(APPSERVER)$(APPMODIFIER)$(BIN_SUFFIX)
Expand All @@ -17,7 +19,7 @@ mandir=$(DESTDIR)$(prefix)/share/man
menudir=$(DESTDIR)$(prefix)/share/applications
icondir=$(DESTDIR)$(prefix)/share/icons/hicolor
pixmapdir=$(DESTDIR)$(prefix)/share/pixmaps
appdatadir=$(DESTDIR)$(prefix)/share/appdata
appdatadir=$(DESTDIR)$(prefix)/share/metainfo

ICONS= \
install/nix/$(appsrcname)_x16.png \
Expand Down Expand Up @@ -149,8 +151,9 @@ system-install-menus: icons
-e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
-e 's,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-e 's,@APPNAME@,$(appname),g' \
install/nix/$(appsrcname).appdata.xml.am > \
$(appdatadir)/$(appname).appdata.xml
-e 's,@APPIDNAME@,$(appidname),g' \
install/nix/$(appidsrcname).metainfo.xml.am > \
$(appdatadir)/$(appidname).metainfo.xml
install -m644 install/nix/$(appsrcname)_x16.png \
$(icondir)/16x16/apps/$(appname).png
install -m644 install/nix/$(appsrcname)_x32.png \
Expand Down Expand Up @@ -201,7 +204,7 @@ system-uninstall-docs:

system-uninstall-menus:
@rm -fv $(menudir)/$(appname).desktop
@rm -fv $(appdatadir)/$(appname).appdata.xml
@rm -fv $(appdatadir)/$(appidname).metainfo.xml
@rm -fv $(icondir)/16x16/apps/$(appname).png
@rm -fv $(icondir)/32x32/apps/$(appname).png
@rm -fv $(icondir)/48x48/apps/$(appname).png
Expand Down