-
Notifications
You must be signed in to change notification settings - Fork 114
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
Flatpak build #142
Comments
Not sure why the bsnes menu is back instead of grey as in higan 🤔 |
I filed bsnes-emu/bsnes#108 about the bsnes menu-bar thing. I don't know much about Flatpak, but I'm cautiously interested — the idea of being able to ship bsnes with GTK+2 UI even when distros no longer support it seems pretty useful. However, I have questions:
|
Among the list of Flatpak features, I think those 3 stand out for higan / bsnes:
Well, freedesktop runtime got rid of GTK2, hence why I focused on GTK3 builds. It is possible to build GTK2 from the freedesktop runtime, but the fact that even conservative distros like Debian want to get rid of it (see this bug report) should signal that it's time to move on.
Once a working Flatpak manifest is submitted, subsequent updates are just a matter of updating the release tag and the release information in the appstream metadata file. You can have a look at the Flatpak for OpenTTD for an example. Flathub (the main Flatpak repo) has its own CI setup, with builders for all supported architectures and test repositories for PRs. New Flatpak releases are pushed twice a day, if I remember correctly.
I have never done nightlies personally, but can ask the Flatpak community for best practices. There is support for different "channels" if you want to submit preview releases in addition to stable releases.
GTK2 is dead, like really dead. Yes, it would be possible to provide GTK2 with a freedesktop runtime. Using a more modern and supported toolkit (Qt5, GTK3, SDL2) remains more desirable.
See the list of sponsors in the about page.
What do you mean?
Flatpaks are sandboxed by default and you add the necessary permissions to access features from the host. As of today, I have enabled input devices, hardware acceleration, pulseaudio, x11 and selected filesystem access (~/Emulation).
No, you won't. But using portals is recommended for better integration.
No, provided the relevant file system is exposed. We usually want to avoid exposing the full host or home file systems in favour of XDG directories (like xdg-documents) or targeted directories (like ~/Emulation). |
It will if someone fixes up hiro to work as well with GTK3 and Qt5 as it does with GTK2. I don't think we're there yet. |
How do you measure that? |
You can use flatpak-github-actions for CI but it can't publish to a remote yet and won't in the near future. Although setting it up is pretty simple and uploads a nightly bundle to github artifact for each pr/commit |
I have been experimenting with the idea of providing a Flatpak for Higan and supporting apps (Icarus, and maybe Byuu?). The goal is to have the user be one
flatpak install org.byuu.higan
away from installing the app without having to care about the necessary runtime. The latter is still based on GTK2 for the official binaries, which is going away in most distros.Right now, I am focusing on version 110 and managed to get a working build based on freedesktop runtime version 20.08 and GTK3, with a minimal amount of patching involved (path management mostly, see #133 and #134).
For Linux users interested in helping maintain the Flatpak build, please reach out.
The text was updated successfully, but these errors were encountered: