From 74441a0c4228bae705c74e629138bd56d49a24d7 Mon Sep 17 00:00:00 2001
From: Antoine Fontaine <antoine.fontaine@epfl.ch>
Date: Fri, 31 May 2019 11:06:06 +0200
Subject: [PATCH] Updated metadata

---
 ch.gnugen.Moody.appdata.xml | 6 +++++-
 ch.gnugen.Moody.desktop     | 4 ++--
 ch.gnugen.Moody.json        | 4 ++--
 meson.build                 | 9 ++++++++-
 4 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/ch.gnugen.Moody.appdata.xml b/ch.gnugen.Moody.appdata.xml
index ef55273..30f26ef 100644
--- a/ch.gnugen.Moody.appdata.xml
+++ b/ch.gnugen.Moody.appdata.xml
@@ -9,6 +9,10 @@
 
   <description>
     <p>
+      [Insert here an explaination of what the app is doing]
+    </p>
+    <p>
+      Moody is an app to access Moodle, though it currently only works with the EPFL one, I'd like it to change!
     </p>
   </description>
 
@@ -32,7 +36,7 @@
   </provides>
 
   <releases>
-    <release version="1.0" date="2019-05-31">
+    <release version="0.1" date="2019-06-06">
       <description>
         <p>The first «works for all Moodle» version,
            you can set your password and access about every file
diff --git a/ch.gnugen.Moody.desktop b/ch.gnugen.Moody.desktop
index 86be566..1298d57 100755
--- a/ch.gnugen.Moody.desktop
+++ b/ch.gnugen.Moody.desktop
@@ -2,7 +2,7 @@
 Type=Application
 Name=Moody
 GenericName=Moodle client
-TryExec=moody
-Exec=moody
+TryExec=@exec_dir@/moody
+Exec=@exec_dir@/moody
 Terminal=true
 StartupNotify=true
diff --git a/ch.gnugen.Moody.json b/ch.gnugen.Moody.json
index 14b1ea1..f32597d 100644
--- a/ch.gnugen.Moody.json
+++ b/ch.gnugen.Moody.json
@@ -3,7 +3,7 @@
     "runtime" : "org.gnome.Platform",
     "runtime-version" : "3.30",
     "sdk" : "org.gnome.Sdk",
-    "license" : "GPLv3+",
+    "license" : "GPL-3.0+",
     "command" : "moody",
     "tags" : [
         "devel",
@@ -80,4 +80,4 @@
             ]
         }
     ]
-}
\ No newline at end of file
+}
diff --git a/meson.build b/meson.build
index 1728679..210d010 100644
--- a/meson.build
+++ b/meson.build
@@ -99,8 +99,15 @@ summary = [
 
 message('\n'.join(summary))
 
+configure_file(
+  input: 'ch.gnugen.Moody.desktop',
+  output: 'ch.gnugen.Moody.desktop',
+  copy: true,
+  install: true,
+  install_dir: join_paths(get_option('datadir'), 'applications')
+)
 install_data('ch.gnugen.Moody.gschema.xml', install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas'))
-install_data('ch.gnugen.Moody.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
+install_data('ch.gnugen.Moody.appdata.xml', install_dir: join_paths(get_option('datadir'), 'metainfo'))
 meson.add_install_script('meson_post_install.py')
 
 gnome.compile_schemas(depend_files: 'ch.gnugen.Moody.gresources.xml')
-- 
GitLab