mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-12-21 23:46:29 +00:00
appdata.xml: can now automatically fill date and version
This commit is contained in:
parent
82e62d7058
commit
53a379b790
3 changed files with 7 additions and 2 deletions
|
@ -27,6 +27,8 @@ install_data(
|
|||
appdata_conf = configuration_data()
|
||||
appdata_conf.set('app-id', application_id)
|
||||
appdata_conf.set('gettext-package', gettext_package)
|
||||
appdata_conf.set('version', version)
|
||||
appdata_conf.set('current_date', current_date)
|
||||
appdata_file = i18n.merge_file (
|
||||
input: configure_file(
|
||||
input: '@0@.appdata.xml.in.in'.format(base_id),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2019 Guillaume Desmottes 2019 <guillaume@desmottes.be -->
|
||||
<!-- Copyright 2022 Stephane Cerveau 2022 <scerveau@collabora.com -->
|
||||
<component type="desktop-application">
|
||||
<id>@app-id@</id>
|
||||
<metadata_license>CC0</metadata_license>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<translation type="gettext">@gettext-package@</translation>
|
||||
<launchable type="desktop-id">@app-id@.desktop</launchable>
|
||||
<releases>
|
||||
<release version="0.1.0" date="2022-01-11"/>
|
||||
<release version="@version@" date="@current_date@"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
|
|
|
@ -5,6 +5,9 @@ project('gst_pipeline_studio',
|
|||
],
|
||||
license: 'GPL-3.0-or-later',
|
||||
)
|
||||
python_mod = import('python')
|
||||
python3 = python_mod.find_installation()
|
||||
current_date = run_command(python3, '-c', 'import datetime; print(datetime.datetime.now().strftime("%Y-%m-%d"), end ="")').stdout()
|
||||
i18n = import('i18n')
|
||||
|
||||
dependency('glib-2.0', version: '>= 2.66')
|
||||
|
|
Loading…
Reference in a new issue