Blob Blame History Raw
From 9a914db0145f0a270f57a257b674643cae18e8c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Tue, 16 Oct 2018 00:06:57 +0200
Subject: [PATCH] Add AppStream data file

---
 distfiles/Orion.appdata.xml | 38 +++++++++++++++++++++++++++++++++++++
 orion.pro                   |  5 ++++-
 2 files changed, 42 insertions(+), 1 deletion(-)
 create mode 100644 distfiles/Orion.appdata.xml

diff --git a/distfiles/Orion.appdata.xml b/distfiles/Orion.appdata.xml
new file mode 100644
index 0000000..b059835
--- /dev/null
+++ b/distfiles/Orion.appdata.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+  <id>Orion.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-3.0</project_license>
+  <name>Orion</name>
+  <summary>A desktop client for Twitch.tv</summary>
+  <description>
+    <p>
+      Cross-platform Twitch client. Features:
+    </p>
+    <ul>
+        <li>Channel browsing</li>
+        <li>Integrated player</li>
+        <li>Login via Twitch account</li>
+        <li>Chat</li>
+        <li>Streamable videos</li>
+        <li>Desktop notifications</li>
+    </ul>
+  </description>
+  <screenshots>
+    <screenshot type="default">
+      <image>https://user-images.githubusercontent.com/5585454/27839943-cc1834ae-60fd-11e7-9b87-d3aaf5f7483c.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://user-images.githubusercontent.com/5585454/27839974-fb7a6d3e-60fd-11e7-8638-9214fe5a1355.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://user-images.githubusercontent.com/5585454/27840063-b6429fce-60fe-11e7-9e96-54d6d0657953.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://user-images.githubusercontent.com/5585454/27840062-b2f14eba-60fe-11e7-9e04-7d12477519d7.png</image>
+    </screenshot>
+  </screenshots>
+  <url type="homepage">https://alamminsalo.github.io/orion/</url>
+  <url type="bugtracker">https://github.com/alamminsalo/orion/issues</url>
+  <update_contact>eclipseo_at_fedoraproject.org</update_contact>
+</component>
diff --git a/orion.pro b/orion.pro
index 1861a48..9e2bde7 100644
--- a/orion.pro
+++ b/orion.pro
@@ -129,13 +129,16 @@ linux:!android: {
     target.path = /usr/bin
     INSTALLS += target
 
+    _appdata.files = distfiles/Orion.appdata.xml
+    _appdata.path = /usr/local/share/metainfo
+
     _desktop.files = distfiles/Orion.desktop
     _desktop.path = /usr/local/share/applications
 
     _icon.files = distfiles/orion.svg
     _icon.path = /usr/local/share/icons
 
-    INSTALLS += _desktop _icon
+    INSTALLS += _appdata _desktop _icon
 }
 
 RESOURCES += \
-- 
2.19.1