Add flatpak target to ebuilder.config.mjs, update linux category metadata - #9524
Add flatpak target to ebuilder.config.mjs, update linux category metadata#9524radmorecameron wants to merge 5 commits into
Conversation
|
Not sure why we would even want this, as the flatpak's that electron-builder creates are documented to be different than what would be published on flathub. We will also not be able to use whatever is generated here to publish on flathub, we already have a special exception to be allowed to build the app itself here instead of on flathub's infra like the flathub rules say you are supposed to do (we can't because our builds require internet connectivity), if we don't even want to use the proper tools to create the flatpak, we might as well just go ahead and ask them to remove FreeTube from flathub instead of waiting for them to inevitably remove it for breaking lots of rules.
https://www.electron.build/docs/flatpak/
https://docs.flatpak.org/en/latest/single-file-bundles.html I also mentioned in that past that I do not want the FreeTube nightlies to be available on flathub, for the same reason that we got rid of the dedicated nightly repository, the nightlies are pre-release testing versions, that are not supposed to be used by most users and the friction of having to be logged into GitHub and find the artefacts in the Actions tab, is thankfully enough friction to deter most users. |
|
I agree with Absidue's comment. I would like to see some more arguments for the benefits of including it in other builds. I've never seen users bring it up in this repo so i wonder if they really care |
|
I should have been more clear in the description, I wasn't planning to push the single file build to Flathub. It was more for me to test some changes using Flatpak on some of my devices where AppImage wouldn't work (ex: I want to test #9523 on some weirder devices before marking it as ready). Adding the flatpak to nightly (Not Flathub but our GitHub Actions nightlies like our other packages!) was a potential suggestion for the future if needed (but this PR didn't include it as I didn't feel it was necessary) For including the Desktop and Metainfo here,
For including appstream in our other Linux builds:
|
|
I updated the description of this PR, hopefully it's more clear now, I removed the part about metadata/desktop file because that's a future discussion. |
|
I have to say I was more onboard with the idea of the metadata as that sounded like it would be useful, rather than providing unofficial flatpaks. If we were to merge this I would want to agree first that we will not be adding this to the nightly builds in this repo and add a code comment to the flatpak additions added by this pull request explaining that we will not provide support for flatpaks built this way and that it exists purely to help people create personal flatpak builds. |
|
Probably best to leave the flatpak stuff commented out by default to reenforce the point, that it is completely unused for all of the official release and nightly builds. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
| }, | ||
| linux: { | ||
| category: 'Network', | ||
| category: 'AudioVideo;Video;Player;Network', |
There was a problem hiding this comment.
should this be the same as?
https://github.com/flathub/io.freetubeapp.FreeTube/pull/170/files#diff-b3a1c21ff901033cb7f4734a94954da241931549d94f6b27e30c5097803c6fc2R10
also are the keywords needed here? or does only category matter here?
This is something to explore later when metadata gets moved here Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
Co-Authored-By: absidue <48293849+absidue@users.noreply.github.com>
d859054 to
12dcf8d
Compare
Pull Request Type
Description
The main purpose for adding this to
ebuilder.config.mjsis so I can create builds to easily test on my Steamdeck and postmarketOS phone.This PR adds configuration necessary for Flatpak in
ebuilder.config.mjs. I didn't add this to_scripts/build.mjsbut it could potentially be useful for Flathub users (especially ones on immutable distros like the Steam Deck or Bazzite) to test specific PRs (we'd need to make special builds for them)Testing
On a linux machine:
ebuilder.config.mjspnpm run build.I had an issue when I first ran at and was able to debug by patching
@malept/flatpak-bundlerwith the changes in this PR: malept/flatpak-bundler#60Essentially you'll need flathub setup, the runtimes installed and flatpak-builder installed
Desktop