Repository navigation
fix(packaging): ship AppStream metainfo so software centres show the licence - #800
Merged
Merged
Conversation
…licence GNOME Software and KDE Discover listed the installed .deb as "Unknown License — may be proprietary", with no description, screenshots or age rating: they read all of that from AppStream metainfo, which the package did not carry. build-deb.sh now installs de.codeforfire.lagebuch.metainfo.xml: the MIT licence, a German summary and description, homepage, bug tracker and source links, the Einsatzdatei MIME type, an OARS rating, the release and five README screenshots fetched at the release tag. The id is the macOS bundle identifier. The script validates the file with appstreamcli when it is installed, as it does the desktop entry, and the release workflow now installs it. A .deb opened before installing still shows an unknown licence: PackageKit's apt backend reports "unknown" for every package. Closes #799 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #799.
GNOME Software and KDE Discover listed the installed
.debas Unknown License ("may be proprietary"), with no description, screenshots or age rating. They read all of that from AppStream metainfo, which the package didn't carry. This ports CodeForFire/freizeichen#18, where the result was checked on GNOME.What changes
packaging/linux/build-deb.shinstalls/usr/share/metainfo/de.codeforfire.lagebuch.metainfo.xml. It carries:project_licenseMIT, plus a German summary (the desktop entry'sComment) and a short description from the README introapplication/x-lagebuchTwo details:
de.codeforfire.lagebuch, the macOS bundle identifier.<launchable>ties it tolagebuch.desktop.raw.githubusercontent.com/…/v${VERSION}/docs/screenshots/), so every release shows its own screenshots. The Linux leg only builds fromv*tags, so the URL always exists.The script validates the file with
appstreamcli validate --no-netwhenappstreamcliis present, the same pattern as the existingdesktop-file-validate. The release workflow now installsappstream, so the check runs in CI.What this can't fix: a
.debopened in a software centre before installing still shows an unknown licence and size. PackageKit's apt backend hard-codes"unknown"as the licence for every package (backends/apt/apt-job.cpp,emitPackageDetail).Verification
build-deb.sh 0.9.1 …with the arguments fromrelease.yml. The script's ownappstreamcli validatepassed.appstreamcli validatewith network checks passes on the extracted file, and all five screenshot URLs atv0.9.1return200 image/png.zizmor .is clean, andtowncrier checkfinds the changelog entry.src/change, somake ciwasn't run.main's package with this one, both installed. The installed app's page now shows the MIT licence, the five screenshots, the description, the age rating and the links. To repeat this, rungnome-software --quitafter installing (the background service caches metadata).appstreamcli get de.codeforfire.lagebuchshows the metadata without the GUI.libicu78and the ICU list stops at 76. That's debian: libicu missing #801. These test packages hadlibicu78added locally; that change isn't part of this PR.Before / after (installed app in GNOME Software)
Before (
main): Unknown License, no screenshots, no age rating.After (this branch): screenshots, description, age rating, MIT licence, website and issue tracker.
🤖 Generated with Claude Code