Skip to content

Conversation

hfiguiere
Copy link
Contributor

Only when mirroring. This is to be compatible with existing flatpak deployment and appstream-glib

See ximion/appstream#505

Should fix #573

This can be tested on flathub with flathub/org.flatpak.Builder#196

@bbhtt
Copy link
Contributor

bbhtt commented Dec 28, 2023

This requires at least appstreamcli>=0.16.3 in meson.build.

I think it is fine, partials URLs when a baseurl is supplied doesn't make sense. The spec says icon/image should start with http(s)

Should fix #573

I don't think this fixes that issue? --no-partial-urls does not change the location of screenshots, they are still in share/app-info/media. The expectation there is, builddir/screenshots (it's not that flatpak-builder does not create screenshot dir, but it changed the previous location)

@barthalion
Copy link
Member

This fixes a problem we would experience in the Flathub backend, and --no-partial-urls was added per our request.

@TingPing
Copy link
Member

This requires at least appstreamcli>=0.16.3 in meson.build.

I think this is all that's needed to land this.

@hfiguiere
Copy link
Contributor Author

../meson.build:44:15: ERROR: Invalid version of program, need 'appstreamcli' ['>= 0.16.3'] found '0.16.1'.

I guess building on fedora 38 is a no go.

@hfiguiere
Copy link
Contributor Author

Also it's a runtime dependency while this is a meson (build-time) check.

@hfiguiere
Copy link
Contributor Author

done, but I don't think it will build in CI

@hfiguiere
Copy link
Contributor Author

On CI:

Program appstreamcli found: NO found 0.15.2 but need: '>= 0.16.3' (/usr/bin/appstreamcli)

@TingPing
Copy link
Member

Ubuntu 23.10 has 0.16.2... how annoying.

Only when mirroring. This is to be compatible with existing flatpak
deployment and appstream-glib

See ximion/appstream#505

Should fix flatpak#573

Signed-off-by: Hubert Figuière <[email protected]>
@hfiguiere hfiguiere marked this pull request as draft February 21, 2024 18:46
@GeorgesStavracas
Copy link
Member

Ubuntu folks clarified that it's unlikely they'll ever update the appstream package, so either the Ubuntu workflows are dropped, or updated to a non-LTS version

@hfiguiere
Copy link
Contributor Author

I'll reset the checks in meson and check at runtime in some way. Using CLI as an API...

@barthalion
Copy link
Member

And this, in turn, explodes with this:

Unable to set icon policy: 64x64@1 icons were not selected for being cached, which is not permitted.

so I'm dropping it after all

@hfiguiere
Copy link
Contributor Author

The approach here would be to degrade if the version of appstream is too low. But the check is a bit too hackish.

Checking in meson.build is kind of irrelevant since it's build time.

bbhtt added a commit that referenced this pull request Sep 19, 2025
appstream-glib always composed with full urls. The URL policy got
unintentionallly switched to partial urls during libappstream port in
1.3.x.

Such a break in behaviour makes sense for unstable releases but we
cannot revert back to full urls in a stable release. Using full URLs
is desired for Flathub.

So add a cli arg to control the behaviour and default to partial url.
This may be flipped later in the next unstable release to default
to full urls again.

This is an alternative to #576
@bbhtt bbhtt closed this in #652 Sep 19, 2025
@github-project-automation github-project-automation bot moved this from In Review to Done in @hfiguiere's xdg-portal Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

screenshots folder is no longer created in the builddir
5 participants