diff --git a/js/extensionPrefs/data/meson.build b/js/extensionPrefs/data/meson.build index 2f43ae180..1a4b77ed8 100644 --- a/js/extensionPrefs/data/meson.build +++ b/js/extensionPrefs/data/meson.build @@ -27,3 +27,4 @@ i18n.merge_file('desktop', ) subdir('icons') +subdir('metainfo') diff --git a/js/extensionPrefs/data/metainfo/extensions-main.png b/js/extensionPrefs/data/metainfo/extensions-main.png new file mode 100644 index 000000000..42f397758 Binary files /dev/null and b/js/extensionPrefs/data/metainfo/extensions-main.png differ diff --git a/js/extensionPrefs/data/metainfo/extensions-remove.png b/js/extensionPrefs/data/metainfo/extensions-remove.png new file mode 100644 index 000000000..be031e13b Binary files /dev/null and b/js/extensionPrefs/data/metainfo/extensions-remove.png differ diff --git a/js/extensionPrefs/data/metainfo/extensions-update.png b/js/extensionPrefs/data/metainfo/extensions-update.png new file mode 100644 index 000000000..6cf6903e7 Binary files /dev/null and b/js/extensionPrefs/data/metainfo/extensions-update.png differ diff --git a/js/extensionPrefs/data/metainfo/meson.build b/js/extensionPrefs/data/metainfo/meson.build new file mode 100644 index 000000000..932651fbc --- /dev/null +++ b/js/extensionPrefs/data/metainfo/meson.build @@ -0,0 +1,16 @@ +metainfo = app_id + '.metainfo.xml' +i18n.merge_file(metainfo, + input: metainfo + '.in', + output: metainfo, + po_dir: '../../../../po', + install: true, + install_dir: metainfodir +) + +if (appstream_util.found()) + test('Validating ' + metainfo, + appstream_util, + args: ['validate', '--nonet', metainfo], + workdir: meson.current_build_dir() + ) +endif diff --git a/js/extensionPrefs/data/metainfo/org.gnome.Extensions.metainfo.xml.in b/js/extensionPrefs/data/metainfo/org.gnome.Extensions.metainfo.xml.in new file mode 100644 index 000000000..80c18609a --- /dev/null +++ b/js/extensionPrefs/data/metainfo/org.gnome.Extensions.metainfo.xml.in @@ -0,0 +1,55 @@ + + + org.gnome.Extensions + + Extensions + Manage your GNOME Extensions + + CC0-1.0 + GPL-2.0-or-later + + https://gitlab.gnome.org/GNOME/gnome-shell + https://gitlab.gnome.org/GNOME/gnome-shell/issues/new + http://www.gnome.org/friends/ + https://wiki.gnome.org/TranslationProject + + GNOME + + org.gnome.Extensions.desktop + + + HiDpiIcon + HighContrast + ModernToolkit + + + + pointing + keyboard + touch + + + + + +

+ GNOME Extensions handles updating extensions, configuring extension preferences and removing or disabling unwanted extensions. +

+
+ + + + + + + + https://gitlab.gnome.org/GNOME/gnome-shell/raw/master/js/extensionPrefs/data/metainfo/extensions-main.png + + + https://gitlab.gnome.org/GNOME/gnome-shell/raw/master/js/extensionPrefs/data/metainfo/extensions-update.png + + + https://gitlab.gnome.org/GNOME/gnome-shell/raw/master/js/extensionPrefs/data/metainfo/extensions-remove.png + + +
diff --git a/meson.build b/meson.build index 55dcccad0..43071fa23 100644 --- a/meson.build +++ b/meson.build @@ -58,6 +58,7 @@ desktopdir = join_paths(datadir, 'applications') icondir = join_paths(datadir, 'icons') ifacedir = join_paths(datadir, 'dbus-1', 'interfaces') localedir = join_paths(datadir, 'locale') +metainfodir = join_paths(datadir, 'metainfo') portaldir = join_paths(datadir, 'xdg-desktop-portal', 'portals') schemadir = join_paths(datadir, 'glib-2.0', 'schemas') servicedir = join_paths(datadir, 'dbus-1', 'services') @@ -139,6 +140,7 @@ mutter_typelibdir = mutter_dep.get_pkgconfig_variable('typelibdir') python = find_program('python3') sassc = find_program('sassc') gjs = find_program('gjs') +appstream_util = find_program('appstream-util', required: false) cc = meson.get_compiler('c') diff --git a/po/POTFILES.in b/po/POTFILES.in index 4cb847888..3a0c0a151 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -4,6 +4,7 @@ data/50-gnome-shell-system.xml data/org.gnome.Shell.desktop.in.in data/org.gnome.shell.gschema.xml.in data/org.gnome.Shell.PortalHelper.desktop.in.in +js/extensionPrefs/data/metainfo/org.gnome.Extensions.metainfo.xml.in js/extensionPrefs/data/org.gnome.Extensions.desktop.in.in js/extensionPrefs/js/main.js js/extensionPrefs/data/ui/extension-row.ui