Use project info from meson for the appdata file

parent 0269ede0
subdir('icons')
appdata = configure_file(input : 'org.gnome.Fractal.appdata.xml.in',
output : 'org.gnome.Fractal.appdata.xml',
configuration : conf)
install_data('org.gnome.Fractal.desktop', install_dir : datadir + '/applications')
install_data('org.gnome.Fractal.appdata.xml', install_dir : datadir + '/appdata')
install_data(appdata, install_dir : datadir + '/appdata')
......@@ -2,7 +2,7 @@
<component type="desktop">
<id>org.gnome.Fractal.desktop</id>
<name>Fractal</name>
<project_license>GPL-3.0</project_license>
<project_license>@LICENSE@</project_license>
<metadata_license>CC0-1.0</metadata_license>
<developer_name>Daniel García Moreno</developer_name>
<summary>Matrix group messaging app</summary>
......@@ -18,7 +18,7 @@
</screenshot>
</screenshots>
<releases>
<release version="0.1.28" date="2018-04-30"/>
<release version="@VERSION@" date="@BUILD_DATE@"/>
</releases>
<update_contact>danigm@wadobo.com</update_contact>
......
project(
'fractal', 'rust',
version: '0.1.28',
license: 'GPLv3',
license: 'GPL-3.0-only',
)
fractal_version = meson.project_version()
version_array = fractal_version.split('.')
fractal_major_version = version_array[0].to_int()
fractal_minor_version = version_array[1].to_int()
fractal_version_micro = version_array[2].to_int()
build_date = run_command('date', '+%Y-%m-%d').stdout().strip()
fractal_prefix = get_option('prefix')
fractal_bindir = join_paths(fractal_prefix, get_option('bindir'))
conf = configuration_data()
conf.set('VERSION', fractal_version)
conf.set('LICENSE', meson.project_license()[0])
conf.set('BUILD_DATE', build_date)
datadir = get_option('datadir')
icondir = join_paths(datadir, 'icons')
......@@ -33,7 +32,7 @@ cargo_release = custom_target('cargo-build',
input: sources,
output: ['fractal'],
install: true,
install_dir: fractal_bindir,
install_dir: get_option('bindir'),
command: [cargo_script, '@CURRENT_SOURCE_DIR@', '@OUTPUT@'])
run_target('release', command: ['scripts/release.sh',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment