diff --git a/data/com.github.sgpthomas.hourglass.metainfo.xml.in b/data/com.github.sgpthomas.hourglass.metainfo.xml.in.in similarity index 98% rename from data/com.github.sgpthomas.hourglass.metainfo.xml.in rename to data/com.github.sgpthomas.hourglass.metainfo.xml.in.in index 297f955..c7340dd 100644 --- a/data/com.github.sgpthomas.hourglass.metainfo.xml.in +++ b/data/com.github.sgpthomas.hourglass.metainfo.xml.in.in @@ -19,17 +19,17 @@ Alarm View - https://raw.githubusercontent.com/sgpthomas/hourglass/3.0.0/data/screenshots/alarm.png + https://raw.githubusercontent.com/sgpthomas/hourglass/@VERSION@/data/screenshots/alarm.png Stopwatch View - https://raw.githubusercontent.com/sgpthomas/hourglass/3.0.0/data/screenshots/stopwatch.png + https://raw.githubusercontent.com/sgpthomas/hourglass/@VERSION@/data/screenshots/stopwatch.png Timer View - https://raw.githubusercontent.com/sgpthomas/hourglass/3.0.0/data/screenshots/timer.png + https://raw.githubusercontent.com/sgpthomas/hourglass/@VERSION@/data/screenshots/timer.png diff --git a/data/meson.build b/data/meson.build index 548125b..774a5cd 100644 --- a/data/meson.build +++ b/data/meson.build @@ -12,8 +12,16 @@ install_data( install_dir: get_option('datadir') / 'pixmaps' ) -i18n.merge_file( - input: meson.project_name() + '.metainfo.xml.in', +appstream_conf = configuration_data() +appstream_conf.set('VERSION', meson.project_version()) +appstream_file_in = configure_file( + input: meson.project_name() + '.metainfo.xml.in.in', + output: meson.project_name() + '.metainfo.xml.in', + configuration: appstream_conf +) + +appstream_file = i18n.merge_file( + input: appstream_file_in, output: meson.project_name() + '.metainfo.xml', po_dir: meson.project_source_root() / 'po' / 'extra', install: true, diff --git a/po/extra/POTFILES b/po/extra/POTFILES index 456fc5c..61fa6f7 100644 --- a/po/extra/POTFILES +++ b/po/extra/POTFILES @@ -1,2 +1,2 @@ data/com.github.sgpthomas.hourglass.desktop.in.in -data/com.github.sgpthomas.hourglass.metainfo.xml.in +data/com.github.sgpthomas.hourglass.metainfo.xml.in.in