New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question: how to test new AppData files? #259
Comments
|
GNOME Software is using it's own method (unlike AppCenter / Discover), but the principle is the same: Date is pulled from the distribution metadata, which is compiled from your metainfo files and possibly other data sources. For Flatpaks this data comes from the Flapak repo. You can force appstreamcli to prefer local metadata by default by changing Your metadata will never show up anywhere if it isn't valid though. So you should always run |
Ok, thanks, it works. It's a shame that GNOME Software uses its own method. |
I tried also with a local Flatpak repo, as I'm writing also the Flatpak manifest for this app. |
|
@ximion I've now added the appdata file in the repository where I'm sketching the Flatpak manifest, see here. appstream-compose command is failing. This is the log: There's no error on line 4 char 7. In fact the xml file passes the validation. |
It is compliant with the specification though, so everything should pretty much work the same (except for it not reading the appstream.conf flag).
The file looks absolutely fine to me, spec-wise.... BUT:
Yes, sadly. The reference implementation, which At the same time, I think I need to submit a patch to Publican or add a post-processing step to the spec HTML generation to remove these characters - this is probably where you got the from. |
Indeed. Thank you very much |
|
Nice :-) |
|
@ximion I still have one problem. I've generated the metadata with this command: Then my application becomes visible both in Software and appstreamcli. But appstreamcli prints a warning: And in Software the app icon and the screenshots are not displayed. |
|
After running this command:
GNOME Software still shows the application but its icon is replaced by some fallback icon (cannot see screenshots, version nor license). And I cannot launch the app. |
|
I've decompressed the xml.gz file I created with appstream-compose and used appstreamcli to validate it. IIUC I found a few errors. First, these images should not have the relative path: Second, the screenshot has an image type set to source, but should it be remote for URLs? Finally, it's been added as part of the KDE project even if it's not. It's just a Qt application. Here's the error: So I manually removed the project_group tag from the metadata file. But these changes doesn't have any effect on how the application is displayed in GNOME Software. |
Indeed. @hughsie do you know what's going on here? Is appstream-compose in some kind of legacy-compatibility mode maybe?
No, this one is fine. "source" refers to the original image, as opposed to a thumbnail. In retrospect, "original" would have been a less ambiguous name, but well, we can't change it now without breaking the world (and that minimal confusion is also a bad justification for a breaking change).
Jup, the "KDE" project group is for projects associated directly with the KDE Project.
I think so... |
Opened here.
AppCenter is available only on Elementary OS, right? I made the test above not with the Flatpak app but with a local build (the application is written in python and uses setup.py.. I've installed it in /usr). Here's the full output: |
I've now tried also with a custom RPM package. I was hoping that GNOME Software would have worked better, but I have the same problems listed before: no icon, no screenshots, launch button not working. |
Might be related to the presence of this line in the desktop file?!? |
I'm now trying Elementary OS. I wonder how Elementary generates AppStream metadata. Here's what I see on Elementary: |
Those are generated when the package is in the archive, so don't worry about that yet :-)
This is odd... According to your metainfo file, the AppStream-ID of the data is Try the |
|
@ximion Sorry for the late reply, I was too busy. Anyway, appstreamcli is very clear and it works. |
I'm trying to test a new appdata file for an application and I'd like to install it so it can be searched and found by GNOME Software or similar software centers. Software is using appstreamcli to perform the search?
Perhaps the command
appstreamcli search?Can anyone explain how this command finds the metadata? Where is the metadata database?
For example, how can I check where these data are fetched from:
The text was updated successfully, but these errors were encountered: