build-finish: Export appstream metainfo into a single directory #4350
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
build-finish: Export appstream metainfo into a single directory
This is similar to what is done for desktop files and allows
applications like desktop or mobile shell to use a flatpak's metainfo to retrieve e.g. required
input controllers or the supported screen sizes. Similar to what can be
done for non-flatpak'ed apps by looking at
/usr/share/{metainfo,appdata}
.This information is e.g. useful for desktop and mobile shells to figure out if an
application is currently usable (does meed the current input and screen
requirements) and hence where it should be placed in a menu.
Since flatpak moves the metadata from
metainfo/
toappdata/
during buildwe only need to export files from that single directory.