mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-22 00:50:59 +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 = configuration_data()
|
||||||
appdata_conf.set('app-id', application_id)
|
appdata_conf.set('app-id', application_id)
|
||||||
appdata_conf.set('gettext-package', gettext_package)
|
appdata_conf.set('gettext-package', gettext_package)
|
||||||
|
appdata_conf.set('version', version)
|
||||||
|
appdata_conf.set('current_date', current_date)
|
||||||
appdata_file = i18n.merge_file (
|
appdata_file = i18n.merge_file (
|
||||||
input: configure_file(
|
input: configure_file(
|
||||||
input: '@0@.appdata.xml.in.in'.format(base_id),
|
input: '@0@.appdata.xml.in.in'.format(base_id),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<component type="desktop-application">
|
||||||
<id>@app-id@</id>
|
<id>@app-id@</id>
|
||||||
<metadata_license>CC0</metadata_license>
|
<metadata_license>CC0</metadata_license>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<translation type="gettext">@gettext-package@</translation>
|
<translation type="gettext">@gettext-package@</translation>
|
||||||
<launchable type="desktop-id">@app-id@.desktop</launchable>
|
<launchable type="desktop-id">@app-id@.desktop</launchable>
|
||||||
<releases>
|
<releases>
|
||||||
<release version="0.1.0" date="2022-01-11"/>
|
<release version="@version@" date="@current_date@"/>
|
||||||
</releases>
|
</releases>
|
||||||
<content_rating type="oars-1.1">
|
<content_rating type="oars-1.1">
|
||||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||||
|
|
|
@ -5,6 +5,9 @@ project('gst_pipeline_studio',
|
||||||
],
|
],
|
||||||
license: 'GPL-3.0-or-later',
|
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')
|
i18n = import('i18n')
|
||||||
|
|
||||||
dependency('glib-2.0', version: '>= 2.66')
|
dependency('glib-2.0', version: '>= 2.66')
|
||||||
|
|
Loading…
Reference in a new issue