Skip to content

chore: add missing appstream metainfo - #1014

Merged
TheOneRing merged 6 commits into
opencloud-eu:mainfrom
p-fruck:fix/appstream-metainfo
Aug 26, 2026
Merged

chore: add missing appstream metainfo#1014
TheOneRing merged 6 commits into
opencloud-eu:mainfrom
p-fruck:fix/appstream-metainfo

Conversation

@p-fruck

@p-fruck p-fruck commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Continues the work of #1011 (comment)

Questions of @TheOneRing:

Where are the branding colours coming from?

I used the header color from here:

return QColor("#20434F");

for the Windows store we got an age rating 0+ if that is in any way relevant for the oars part

Honestly I don't know, I just used the oars website and chose "Application that can connect to the internet", which I suspect is true here (even though we only connect to some opencloud instance and don't support webbrowsing etc). Do you suggest some other rating?

I would also like to get an approval from @CodedOre here before merging so we can continue on flathub/flathub#9623.

As the app id is defined via cmake, I would propose to change the name to opencloud.metainfo.xml as well

@TheOneRing

Copy link
Copy Markdown
Contributor

Looks good so far. You renamed the in file but the installed file name is still correct?

@p-fruck

p-fruck commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

@TheOneRing the resulting filename after cmake configure matches the app id which is correct, but I am not sure about the CMAKE_CURRENT_BINARY_DIR output folder. Any specific reason this was changed from KDE_INSTALL_METAINFODIR?

Comment thread opencloud.metainfo.xml.in
Comment thread opencloud.metainfo.xml.in
Comment on lines +48 to +50
<release version="3.0.3" date="2025-12-08">
<url type="details">https://github.com/opencloud-eu/desktop/releases/tag/v3.0.3</url>
</release>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be recommended to add an description for releases as well.

This description will be shown in software managers such as GNOME Software, Bazaar or KDE Discover.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly I don't like the idea of adding multiple lines of XML per release when the release details are linked already

@TheOneRing

Copy link
Copy Markdown
Contributor

@TheOneRing the resulting filename after cmake configure matches the app id which is correct, but I am not sure about the CMAKE_CURRENT_BINARY_DIR output folder. Any specific reason this was changed from KDE_INSTALL_METAINFODIR?

The files are now generated at build time, the resulting file is now placed in CMAKE_CURRENT_BINARY_DIR before it is installed one line later.

@p-fruck
p-fruck force-pushed the fix/appstream-metainfo branch from a1c2cf0 to 13fc381 Compare August 16, 2026 09:01
Comment thread opencloud.metainfo.xml.in Outdated

<icon>@APPLICATION_ICON_NAME@</icon>
<branding>
<color type="primary" scheme_preference="light">#20434F</color>

@TheOneRing TheOneRing Aug 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The branding in the desktop app is rather conservative.
Our official colours are:
Petrol:#20434F
Lilac: #E2BAFF

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One for a dark and a light theme, what colour is to be used here depends on whether its a highlight or a background or whatever.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I wasn't aware. The example shows #ff00ff for dark theme and #993d3d for light theme, hence I chose Lilac for light and petrol for dark correspondingly

@TheOneRing

Copy link
Copy Markdown
Contributor

Besides the branding colour, what is the state of this pr?

@p-fruck
p-fruck force-pushed the fix/appstream-metainfo branch from 13fc381 to 79acb88 Compare August 24, 2026 18:47
@p-fruck

p-fruck commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

@TheOneRing I just updated the branding colors and rebased this PR. From my point of view, we are ready to merge ^^

@TheOneRing

Copy link
Copy Markdown
Contributor

Thanks!

@TheOneRing
TheOneRing enabled auto-merge (squash) August 25, 2026 09:34
@TheOneRing

Copy link
Copy Markdown
Contributor

@p-fruck the kde appstream metadata test fails.

auto-merge was automatically disabled August 25, 2026 10:52

Head branch was pushed to by a user without write access

@p-fruck
p-fruck force-pushed the fix/appstream-metainfo branch from 79acb88 to 70216c7 Compare August 25, 2026 10:52
@p-fruck

p-fruck commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

@TheOneRing interesting, appstream validate passed locally... Added the missing icon type, can we try again?

@TheOneRing

Copy link
Copy Markdown
Contributor

Failed again, I assume the new ecm release made it more strict.

@p-fruck

p-fruck commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

I'm confused.

I: eu.opencloud.desktop.beta.opencloud_beta:11: unknown-tag developer

E: eu.opencloud.desktop.beta.opencloud_beta:22: metainfo-invalid-icon-type
local

Local is the correct icon type if I am not mistaken? https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-icon

Also, developer is a valid tag, but this is not an error: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-developer

@TheOneRing

Copy link
Copy Markdown
Contributor

For the developer tag, the version of appstreamcli might be too old.

For the image type, my ai says while its in the spec, you're not supposed to use it....
Would a remote url work here?

@p-fruck

p-fruck commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Sure, switched to remote in 1a2c895. Hopefully it works now

@TheOneRing

Copy link
Copy Markdown
Contributor

I guess we should use a specific revision for the url. Else stuff will break one day so one moves the file around.

@p-fruck
p-fruck force-pushed the fix/appstream-metainfo branch from 1a2c895 to dfeee95 Compare August 25, 2026 19:09
@p-fruck

p-fruck commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

good point, permalinked to current main

@TheOneRing
TheOneRing merged commit 5ed1b35 into opencloud-eu:main Aug 26, 2026
3 of 13 checks passed
@TheOneRing

Copy link
Copy Markdown
Contributor

yay, thx

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.

3 participants