-
Notifications
You must be signed in to change notification settings - Fork 250
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
Update org.gnome.Hamster.GUI.metainfo.xml #690
base: master
Are you sure you want to change the base?
Conversation
Add required missing tags
Looks good to make the XML complete. AFAIU the content_rating you added just means "no offensive content" (empty XML tag - any noteworthy content would have been added as a subtag), which seems good. As for adding the "release" tag, I'm not sure that makes sense like this - setting the release to 3.0.2 like you did makes sense for the commit tagged 3.0.2, but not for the master branch in general - if you build a flatpak from master, it should IMHO not advertise itself as a release. Ideally, I think we would omit the release tag from the XML file in git, and add it (either by editing the file, or better, pass some option to the flatpak build if that is possible) automatically in the github workflow that makes the flatpack build. Then for PR's and regular pushes to master, the release could be set to some string that includes the git hash perhaps, and for tagged releases it could use the version from the tag. Do you know if such an approach is common for flatpak builds? Also, do you have any suggestions as to the format of the version number? Does flatpak need any particular format? Is it helpful if git builds and published releases are correctly sortable (i.e. by using Also, I saw you published a flatpak build of hamster on flathub, thanks! Is the XML file in our repository relevant for that (i.e. do you need this change for the flathub build), or does the flathub build use its own copy of the XML file? |
The output of
which shows this is 42 commits ahead of the v3.0.2 tag and the current commit is gb2aff82a. |
I agree, it doesn't make sense to have it hard coded like this, I will look to see how to change it to cosume a template base file to produce the final file which consumed by the builder. |
Cool, thanks. While reading #608, I realized that the python code does currently hardcode the version number as well in two places (which is, I think, also set to 3.0.2 in git master now), so your PR is in line with that, but I'd prefer to replace those version numbers with auto-detected versions based on git as well, so I'd be happy if you could investigate how to do this for the flatpak build as well. |
I had another look at flatpak versioning, and was a bit confused. The appstream specs (that define the .metainfo.xml format) seem to document the I could not find any documentation at flatpak about how to define the flatpak application version, literally nothing. However, this post suggests that the version is taken from the So, this So we should then probably not store any releases in there, except adding one release entry when generating a flatpak (or maybe more generally, when installing the file) containing the current version. As mentioned before, I'd rather have this version auto-added (I'm slowly composing a plan on how to do versioning, but I'll continue discussion about that in #608). For this PR, I think it means we should drop the |
Add required missing tags