fractal-gtk/res: rename appdata to metainfo
Appstream nowadays prefers `.metainfo.xml`: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html
This commit is contained in:
parent
88bace4d20
commit
eae019e2d1
5 changed files with 12 additions and 12 deletions
|
@ -60,7 +60,7 @@ parts:
|
|||
|
||||
fractal:
|
||||
after: [gspell]
|
||||
parse-info: [usr/share/metainfo/org.gnome.Fractal.appdata.xml]
|
||||
parse-info: [usr/share/metainfo/org.gnome.Fractal.metainfo.xml]
|
||||
source: .
|
||||
plugin: meson
|
||||
meson-parameters: [--prefix=/usr]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# List of source files containing translatable strings.
|
||||
# Please keep this file sorted alphabetically.
|
||||
fractal-gtk/res/gtk/help-overlay.ui
|
||||
fractal-gtk/res/org.gnome.Fractal.appdata.xml.in.in
|
||||
fractal-gtk/res/org.gnome.Fractal.desktop.in.in
|
||||
fractal-gtk/res/org.gnome.Fractal.gschema.xml
|
||||
fractal-gtk/res/org.gnome.Fractal.metainfo.xml.in.in
|
||||
|
||||
# ui files
|
||||
fractal-gtk/res/ui/account_settings.ui
|
||||
|
|
|
@ -26,15 +26,15 @@ if desktop_file_validate.found()
|
|||
endif
|
||||
|
||||
|
||||
appdata_conf = configuration_data()
|
||||
appdata_conf.set('appid', application_id)
|
||||
appdata_file = i18n.merge_file ('appdata-file',
|
||||
metainfo_conf = configuration_data()
|
||||
metainfo_conf.set('appid', application_id)
|
||||
metainfo_file = i18n.merge_file ('metainfo-file',
|
||||
input: configure_file(
|
||||
input: files('org.gnome.Fractal.appdata.xml.in.in'),
|
||||
output: 'org.gnome.Fractal.appdata.xml.in',
|
||||
configuration: appdata_conf
|
||||
input: files('org.gnome.Fractal.metainfo.xml.in.in'),
|
||||
output: 'org.gnome.Fractal.metainfo.xml.in',
|
||||
configuration: metainfo_conf
|
||||
),
|
||||
output: '@0@.appdata.xml'.format(application_id),
|
||||
output: '@0@.metainfo.xml'.format(application_id),
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
install_dir: join_paths (datadir, 'metainfo')
|
||||
|
@ -42,9 +42,9 @@ appdata_file = i18n.merge_file ('appdata-file',
|
|||
appstream_util = find_program('appstream-util', required: false)
|
||||
if appstream_util.found()
|
||||
test(
|
||||
'validate-appdata', appstream_util,
|
||||
'validate-metainfo', appstream_util,
|
||||
args: [
|
||||
'validate-relax', '--nonet', appdata_file.full_path()
|
||||
'validate-relax', '--nonet', metainfo_file.full_path()
|
||||
]
|
||||
)
|
||||
endif
|
||||
|
|
|
@ -24,7 +24,7 @@ esac
|
|||
sed -i "s/$current/$next/" meson.build
|
||||
sed -i "s/$current/$next/" fractal-gtk/Cargo.toml
|
||||
sed -i "s/$current/$next/" fractal-matrix-api/Cargo.toml
|
||||
sed -i "s/version=\"$current\".*/version=\"$next\" date=\"$(date +%Y-%m-%d)\"\/>/" fractal-gtk/res/org.gnome.Fractal.appdata.xml.in.in
|
||||
sed -i "s/version=\"$current\".*/version=\"$next\" date=\"$(date +%Y-%m-%d)\"\/>/" fractal-gtk/res/org.gnome.Fractal.metainfo.xml.in.in
|
||||
|
||||
cargo check
|
||||
|
||||
|
|
Loading…
Reference in a new issue