Skip to content

Commit

Permalink
chore: metainfo: Set screenshot from app version (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano authored Aug 12, 2024
1 parent 318405a commit 0d9055f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ appstream_conf.set('APP_ID', app_id)
appstream_conf.set('GETTEXT_PACKAGE', meson.project_name())
# Use screenshots taken on Pantheon, which is a publishing requirement for AppCenter, if build with granite.
appstream_conf.set('DE', get_option('granite').enabled() ? 'pantheon' : 'gnome')
appstream_conf.set('VERSION', meson.project_version())
appstream_file_in = configure_file(
input: 'pinit.metainfo.xml.in.in',
output: '@0@.metainfo.xml.in'.format(app_id),
Expand Down
4 changes: 2 additions & 2 deletions data/pinit.metainfo.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<screenshots>
<screenshot type="default">
<caption>App window in the light mode</caption>
<image>https://raw.githubusercontent.com/ryonakano/pinit/2.1.0/data/screenshots/@DE@/screenshot-light.png</image>
<image>https://raw.githubusercontent.com/ryonakano/pinit/@VERSION@/data/screenshots/@DE@/screenshot-light.png</image>
</screenshot>

<screenshot>
<caption>App window in the dark mode</caption>
<image>https://raw.githubusercontent.com/ryonakano/pinit/2.1.0/data/screenshots/@DE@/screenshot-dark.png</image>
<image>https://raw.githubusercontent.com/ryonakano/pinit/@VERSION@/data/screenshots/@DE@/screenshot-dark.png</image>
</screenshot>
</screenshots>

Expand Down

0 comments on commit 0d9055f

Please sign in to comment.