From e448ad8af2724ebd1df04bcc0ca140662b8445ff Mon Sep 17 00:00:00 2001
From: Nico Alt <nicoalt@posteo.org>
Date: Thu, 12 Dec 2019 11:03:13 +0100
Subject: [PATCH] Add description to appdata stuff to make Flatpak check happy

---
 app.briar.gtk.json                |  4 ++--
 data/app.briar.gtk.appdata.xml.in | 21 ++++++++++++++++-----
 data/app.briar.gtk.desktop.in     |  2 ++
 3 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/app.briar.gtk.json b/app.briar.gtk.json
index 16677c3..343bb08 100644
--- a/app.briar.gtk.json
+++ b/app.briar.gtk.json
@@ -108,8 +108,8 @@
             "builddir": true,
             "sources": [
                 {
-                    "type": "git",
-                    "url": "https://code.briarproject.org/nicoalt/briar-gtk.git"
+                    "type": "dir",
+                    "path": "."
                 }
             ]
         }
diff --git a/data/app.briar.gtk.appdata.xml.in b/data/app.briar.gtk.appdata.xml.in
index 4fffb49..7cd381c 100644
--- a/data/app.briar.gtk.appdata.xml.in
+++ b/data/app.briar.gtk.appdata.xml.in
@@ -1,8 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <component type="desktop">
-	<id>app.briar.gtk.desktop</id>
-	<metadata_license>CC-BY-4.0</metadata_license>
-	<project_license>AGPL-3.0-only</project_license>
-	<description>
-	</description>
+  <id>app.briar.gtk</id>
+  <metadata_license>CC-BY-4.0</metadata_license>
+  <project_license>AGPL-3.0-only</project_license>
+  <summary>Keeps the information flowing in a crisis</summary>
+  <description>
+    <p>
+      Briar is a messaging app designed for activists, journalists, and anyone
+      else who needs a safe, easy and robust way to communicate. Unlike
+      traditional messaging apps, Briar doesn't rely on a central server -
+      messages are synchronized directly between the users' devices. If the
+      internet's down, Briar can sync via Bluetooth or Wi-Fi, keeping the
+      information flowing in a crisis. If the internet's up, Briar can sync via
+      the Tor network, protecting users and their relationships from
+      surveillance.
+    </p>
+  </description>
 </component>
diff --git a/data/app.briar.gtk.desktop.in b/data/app.briar.gtk.desktop.in
index 7d63a56..890ff74 100644
--- a/data/app.briar.gtk.desktop.in
+++ b/data/app.briar.gtk.desktop.in
@@ -1,5 +1,7 @@
 [Desktop Entry]
 Name=Briar
+Comment=Keeps the information flowing in a crisis
+Keywords=Briar;
 Icon=app.briar.gtk
 Exec=briar-gtk
 Terminal=false
-- 
GitLab