-
Notifications
You must be signed in to change notification settings - Fork 41
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
Files for Flatpak #3121
Files for Flatpak #3121
Conversation
Here is the guidance for the description: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/quality-guidelines/#description |
I see the builds are failing. Is this because of #3109 ? |
Description still needs to be written.
Otherwise the Ubuntu 20 build doesn't work in the Flatpak.
2bbf2fc
to
796c590
Compare
I've changed the branch to the release branch. Had to do a bit of wrangling with Git but I think its all sorted now. I think for the changelog, its probably best if we redirect users to the website rather than putting this into the metadata because our changelogs are quite long. I think the only two things outstanding for the metadata are a description, and I also need to include at least one screenshot. According to Flathub's guidance, they need to be taken on Linux so I will probably take my own of SasView after it opens. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once description is added.
A few TODOs left here:
|
Linter said it was too long.
Should probably discuss it.
Not going to provide a changelog because we have that on the website.
Nothing in particular raises the content rating but we still need this to avoid validation errors.
@krzywon Both of the TODO items have now been completed. Additionally, I have passed the metainfo file into a linter which highlighted a few issues with it. I've managed to fix all of them so it should be good for publishing. You can see the commit history for all of the errors I fixed but there is one issue I would like to highlight. The linter wanted me to include a licence for the metainfo file. I originally selected BSD 3-clause as it is also used for our codebase. However, the linter complained that the licence was not permissive enough. Instead, I have gone for CC0 as I have seen this licence used in other projects. I wanted to ask you if it is ok to include this licence for the metainfo file. The new directory for all these files is called I believe everything is in order for this branch to be merged. |
Nvm looks like a test failed. I have left the office but will check this first thing in the morning tomorrow. |
Sometimes mac builds get stuck. I've restarted the failed build. |
Ah yes fortunately that seems to be the case. They seem to be all passing now. |
build_tools/application_metadata/org.sasview.sasview.metainfo.xml
Outdated
Show resolved
Hide resolved
I'm asking if this is acceptable and will get back to you soon.
LGTM |
To follow up, the licensing seems fine based on what I've been reading. The only outstanding issue on this PR is the location of the images. |
@jamescrake-merani - please verify the new screenshot links I used are valid and, if so, merge this. |
@krzywon Unfortunately the new image URL is not valid. When I download it, it appears as corrupted. Upon reading the file, it looks like the HTML of the link gets fetched, and not the image itself. I was having an issue with this originally because GitHub doesn't seem to have a 'raw' button on images like it does for everything else. The link I originally put in there was the only working URL I can find. If there is an issue with it then I'm not sure how else to get the raw image through Github. |
These files should be resolvable from sasview.org. I'll find the URLs for those and change the links here soon. |
@jamescrake-merani - can you check again? |
Thanks; this should be fine now, and the linter is happy. I have removed the last one because, as per Flathub's quality guidance, the screenshots should just be of the application running. The welcome screen should be fine since it appears when launching the application but I think the logo won't count as a screenshot. If the above is fine, then I think this branch is ready to merge. If you're happy then feel free to merge it. |
Description
As mentioned in the fortnightly meeting yesterday, I have added the following files in the
data
directory which will be used by the Flatpak distribution. These are:org.sasview.sasview.png
file. I had to modify theball.ico
file present in the repository because the format is not supported for application logos (they need to be either SVGs, or PNGs), and the size of the image was too big (they need to be maximum 512x512).I have also added Ubuntu 22.04 to the OS release list so that GitHub Actions will build a separate Ubuntu 22.04 distribution. As discussed previously, the Ubuntu 20.04 distribution was not working in the Flatpak. If we still want to maintain the Ubuntu 20.04 distribution, then I'd suggest building for both Ubuntu 20, and 22. Alternatively, we could also drop support for Ubuntu 20.04, and advise users on that operating system to use the Flatpak instead. The Flatpak builder will need a permanent URL from which it can fetch a working distribution of SasView to package.
I have marked this pull request as a draft because I need a description for the metainfo file. I have copied a 'summary' from the website but, looking at other projects, the description is expected to be a bit of a longer overview of the software. @krzywon do you know of any text that would be most appropriate for this? I also realised while writing this that I need to put a version history. I'll probably just put SasView 6 for now as that will be the first version the Flatpak will be packaged for.
How Has This Been Tested?
I have built a Flatpak bundle with these files, and it seems from my testing to integrate into my desktop without any issues. There is a SasView desktop entry which I can search for, and the logo shows up as expected. IT have just set up virtual machines on my laptop so I should be able to test the Flatpak on other Linux operating systems.
Review Checklist:
Documentation (check at least one)
Installers
Licencing (untick if necessary)