commit 8210fa7a088655cb22c01e8c63916ee1c2d7e72d
parent 16ba0c7f97a7dca1cc499ee959982c5e97400afe
Author: TheJackiMonster <thejackimonster@gmail.com>
Date: Tue, 22 Mar 2022 23:19:35 +0100
Add appdata.xml with metadata about the application
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat:
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -121,6 +121,8 @@ install:
$(foreach SIZE,$(ICON_SIZES),$(call install-icon,$(SIZE));)
install -Dm644 $(addprefix $(APPICON_DIR), full_color.svg) $(addprefix $(INSTALL_DIR), share/icons/hicolor/scalable/apps/$(APP_ID).svg)
desktop-file-install --dir=$(addprefix $(INSTALL_DIR), share/applications/) $(addprefix $(RESOURCES_DIR), $(APP_ID).desktop)
+ mkdir -p $(addprefix $(INSTALL_DIR), share/appdata/)
+ install -Dm644 $(addprefix $(RESOURCES_DIR), $(APP_ID).appdata.xml) $(addprefix $(INSTALL_DIR), share/appdata/)
gtk-update-icon-cache -f -t $(addprefix $(INSTALL_DIR), share/icons/hicolor)
.PHONY: uninstall
@@ -134,6 +136,7 @@ uninstall:
$(foreach SIZE,$(ICON_SIZES),$(call uninstall-icon,$(SIZE));)
$(GNU_RM) -f $(addprefix $(INSTALL_DIR), share/icons/hicolor/scalable/apps/$(APP_ID).svg)
$(GNU_RM) -f $(addsuffix $(APP_ID).desktop, $(addprefix $(INSTALL_DIR), share/applications/))
+ $(GNU_RM) -f $(addsuffix $(APP_ID).appdata.xml, $(addprefix $(INSTALL_DIR), share/appdata/))
.PHONY: clean
diff --git a/resources/org.gnunet.Messenger.appdata.xml b/resources/org.gnunet.Messenger.appdata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2022 GNUnet e.V. -->
+<component type="desktop">
+ <id>org.gnunet.Messenger</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>AGPL-3.0</project_license>
+ <content_rating type="oars-1.1" />
+
+ <name>GNUnet Messenger</name>
+ <summary>A GTK based GUI for the Messenger service of GNUnet.</summary>
+ <description>
+ </description>
+
+ <screenshots>
+ </screenshots>
+
+ <url type="homepage">https://www.gnunet.org</url>
+
+ <update_contact>thejackimonster_at_gmail.com</update_contact>
+
+ <launchable type="desktop-id">org.gnunet.Messenger.desktop</launchable>
+ <releases>
+ </releases>
+</component>