Skip to content

Ensure compose jxl image format test runs in CI #783

Description

@bbhtt

We need Appstream 1.2.0 in CI but it is only available in Debian unstable and nowhere else.

# test compose jxl image format
if appstream_has_version 1 2 0; then
APPDIR=builddir_jxl \
run_build \
--mirror-screenshots-url=https://example.org/media \
--state-dir .fp-compose-image-format-jxl \
--compose-url-policy=full \
--compose-image-format=jxl \
org.flatpak.appstream_media.json
gzip -cdq builddir_jxl/files/share/app-info/xmls/org.flatpak.appstream_media.xml.gz \
> appstream.xml
assert_file_has_content_extended appstream.xml '>https://example.org/media/org/flatpak/appstream_media/[^/]+/icons/128x128/org.flatpak.appstream_media.jxl</icon>'
ok "compose jxl image format"
else
ok "# Skip AppStream < 1.2.0"
fi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions