[gnome-builder] appdata: make screenshot link commit dependent



commit e1f8c9445ce3517308239db5f199fbe74e9ddea5
Author: Günther Wagner <info gunibert de>
Date:   Thu Sep 16 22:37:47 2021 +0200

    appdata: make screenshot link commit dependent

 data/appdata/meson.build                                   |  8 +++++++-
 ....appdata.xml.in => org.gnome.Builder.appdata.xml.in.in} | 14 +++++++-------
 2 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index 4901e65eb..ad8339caa 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -1,6 +1,12 @@
 # Appdata file.
+appdata_file_untranslated = vcs_tag(
+  command: ['git', 'rev-parse', '--short', 'HEAD'],
+  input: 'org.gnome.Builder.appdata.xml.in.in',
+  output: 'org.gnome.Builder.appdata.xml.in',
+)
+
 appdata_file = i18n.merge_file(
-  input: 'org.gnome.Builder.appdata.xml.in',
+  input: appdata_file_untranslated[0],
   output: 'org.gnome.Builder.appdata.xml',
   po_dir: '../../po',
   install: true,
diff --git a/data/appdata/org.gnome.Builder.appdata.xml.in b/data/appdata/org.gnome.Builder.appdata.xml.in.in
similarity index 93%
rename from data/appdata/org.gnome.Builder.appdata.xml.in
rename to data/appdata/org.gnome.Builder.appdata.xml.in.in
index 675f73a50..f8f1f831b 100644
--- a/data/appdata/org.gnome.Builder.appdata.xml.in
+++ b/data/appdata/org.gnome.Builder.appdata.xml.in.in
@@ -44,31 +44,31 @@
   <screenshots>
     <screenshot type="default">
       <caption>Quickly access your projects</caption>
-      <image width="2104" 
height="1398">https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/data/appdata/01-greeter.png</image>
+      <image width="2104" 
height="1398">https://gitlab.gnome.org/GNOME/gnome-builder/raw/@VCS_TAG@/data/appdata/01-greeter.png</image>
     </screenshot>
     <screenshot type="default">
       <caption>Create new projects from a variety of templates</caption>
-      <image width="2104" 
height="1580">https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/data/appdata/02-template.png</image>
+      <image width="2104" 
height="1580">https://gitlab.gnome.org/GNOME/gnome-builder/raw/@VCS_TAG@/data/appdata/02-template.png</image>
     </screenshot>
     <screenshot type="default">
       <caption>Integration with Git to clone your projects</caption>
-      <image width="2104" 
height="1398">https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/data/appdata/03-clone.png</image>
+      <image width="2104" 
height="1398">https://gitlab.gnome.org/GNOME/gnome-builder/raw/@VCS_TAG@/data/appdata/03-clone.png</image>
     </screenshot>
     <screenshot type="default">
       <caption>The source code editor</caption>
-      <image width="2976" 
height="1774">https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/data/appdata/04-editor.png</image>
+      <image width="2976" 
height="1774">https://gitlab.gnome.org/GNOME/gnome-builder/raw/@VCS_TAG@/data/appdata/04-editor.png</image>
     </screenshot>
     <screenshot type="default">
       <caption>Fast global fuzzy search</caption>
-      <image width="1232" 
height="963">https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/data/appdata/05-search.png</image>
+      <image width="1232" 
height="963">https://gitlab.gnome.org/GNOME/gnome-builder/raw/@VCS_TAG@/data/appdata/05-search.png</image>
     </screenshot>
     <screenshot type="default">
       <caption>Debug with the GNU debugger</caption>
-      <image width="2976" 
height="1774">https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/data/appdata/06-debugger.png</image>
+      <image width="2976" 
height="1774">https://gitlab.gnome.org/GNOME/gnome-builder/raw/@VCS_TAG@/data/appdata/06-debugger.png</image>
     </screenshot>
     <screenshot type="default">
       <caption>Use the minimap to see more of the file</caption>
-      <image width="2664" 
height="1638">https://gitlab.gnome.org/GNOME/gnome-builder/raw/master/data/appdata/07-minimap.png</image>
+      <image width="2664" 
height="1638">https://gitlab.gnome.org/GNOME/gnome-builder/raw/@VCS_TAG@/data/appdata/07-minimap.png</image>
     </screenshot>
   </screenshots>
   <launchable type="desktop-id">org.gnome.Builder.desktop</launchable>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]