Skip to content

Commit

Permalink
Metainfo Improvements (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jul 21, 2023
1 parent e388812 commit 2f20f83
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/elementary/docker:odin-unstable
image: ghcr.io/elementary/docker:horus-unstable

steps:
- name: Install dependencies
Expand Down
72 changes: 44 additions & 28 deletions data/installer.appdata.xml.in → data/installer.metainfo.xml.in
Original file line number Diff line number Diff line change
@@ -1,15 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2021 elementary, Inc. <[email protected]> -->
<component>
<component type="desktop-application">
<id>io.elementary.installer</id>
<translation type="gettext">io.elementary.installer</translation>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>

<name>Installer</name>
<summary>Install elementary OS</summary>
<description>
<p>Step by step installer for elementary OS itself.</p>
</description>

<screenshots>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/1.0.7/data/screenshot-language.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-keyboard.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-try-install.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-custom.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-encrypt.png</image>
</screenshot>
<screenshot type="default">
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-progress.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-success.png</image>
</screenshot>
</screenshots>

<content_rating type="oars-1.1" />

<provides>
<binary>io.elementary.installer</binary>
<binary>io.elementary.installer-daemon</binary>
</provides>

<url type="bugtracker">https://github.com/elementary/installer/issues</url>
<url type="donation">https://elementary.io/get-involved#funding</url>
<url type="help">https://github.com/elementary/installer/discussions</url>
<url type="homepage">https://elementary.io/</url>
<url type="translate">https://l10n.elementary.io/projects/installer</url>

<developer_name>elementary, Inc.</developer_name>
<project_group>elementary</project_group>
<update_contact>contact_at_elementary.io</update_contact>

<releases>
<release version="1.0.7" date="2023-01-11" urgency="medium">
<description>
Expand Down Expand Up @@ -68,31 +111,4 @@
</description>
</release>
</releases>

<screenshots>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/1.0.7/data/screenshot-language.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-keyboard.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-try-install.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-custom.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-encrypt.png</image>
</screenshot>
<screenshot>
<image type="default">https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-progress.png</image>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/elementary/installer/master/data/screenshot-success.png</image>
</screenshot>
</screenshots>
<developer_name>elementary, Inc.</developer_name>
<url type="homepage">https://elementary.io</url>
<url type="bugtracker">https://github.com/elementary/installer/issues</url>
</component>
10 changes: 5 additions & 5 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ schemadir = join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
i18n.merge_file(
input: meson.project_name() + '.desktop.in',
output: meson.project_name() + '.desktop',
po_dir: join_paths(meson.source_root (), 'po', 'extra'),
po_dir: meson.project_source_root() / 'po' / 'extra',
type: 'desktop',
install_dir: join_paths(get_option('datadir'), 'applications'),
install: true
)

i18n.merge_file(
input: 'installer.appdata.xml.in',
output: meson.project_name() + '.appdata.xml',
po_dir: join_paths(meson.source_root (), 'po', 'extra'),
input: 'installer.metainfo.xml.in',
output: meson.project_name() + '.metainfo.xml',
po_dir: meson.project_source_root() / 'po' / 'extra',
type: 'xml',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo'),
install_dir: get_option('datadir') / 'metainfo',
)

install_data(
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project(
'io.elementary.installer',
'vala', 'c',
meson_version : '>= 0.56.0',
version: '1.0.7'
)

Expand Down
2 changes: 1 addition & 1 deletion po/extra/POTFILES
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
data/installer.appdata.xml.in
data/installer.metainfo.xml.in
data/io.elementary.installer.desktop.in
2 changes: 1 addition & 1 deletion po/extra/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
i18n.gettext('extra',
args: '--directory=' + meson.source_root(),
args: '--directory=' + meson.project_source_root(),
preset: 'glib',
install: false
)
2 changes: 1 addition & 1 deletion po/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
i18n.gettext(meson.project_name(),
args: '--directory=' + meson.source_root(),
args: '--directory=' + meson.project_source_root(),
preset: 'glib'
)
subdir('extra')

0 comments on commit 2f20f83

Please sign in to comment.