(was: Re: Add "Install via AppStream" links to applications on kde.org)

Friedrich W. H. Kossebau kossebau at kde.org
Sun Dec 18 23:00:59 UTC 2016


Am Sonntag, 18. Dezember 2016, 20:42:33 CET schrieb Aleix Pol:
> On Sat, Dec 17, 2016 at 12:17 AM, Friedrich W. H. Kossebau
> 
> <kossebau at kde.org> wrote:
> > If committed, adding all the "appstream" entries to all the json files
> > could be a GCI task? Anyone who could overlook this?
> 
> If you explain to me exactly where it needs to be changed, I could set
> up such gci task.

What needs to be done:

For any file $app.json (but not $app_generated.json) in
https://websvn.kde.org/trunk/www/sites/www/applications/apps/
see if there is a matching *.appdata.xml file in
https://lxr.kde.org/search?_filestring=.*\.appdata\.xml&_advanced=1&_string=

>From the matching appdata.xml files extract the <id> content and add to the 
matched $app.json file an entry
    "appstream": "here-content-of-id",
ideally close to "kde-apps.org" key if present, to group entries semantically.

Example:
In org.kde.okteta.appdata.xml the <id> content is "org.kde.okteta.desktop".
So in okteta.json this line is added:

    "appstream": "org.kde.okteta.desktop",

As a result https://www.kde.org/applications/utilities/okteta
now shows
	Get Okteta
	Install via AppStream
in the box on the right.

Cheers
Friedrich


More information about the kde-www mailing list