CHollingworth / Lampray

Linux Application Modding Platform. A native Linux mod manager.
https://www.nexusmods.com/baldursgate3/mods/2169
The Unlicense
179 stars 18 forks source link

feat: introduce Flatpak support #128

Closed Plarpoon closed 8 months ago

Plarpoon commented 8 months ago

Introduction:

Hello, I’m Alex.

I believe that the primary challenge for this project is distribution, not missing features. By improving distribution, we can enhance popularity, attract more backers and contributors. Flatpak could provide a ubiquitous distribution system across all Linux distributions, including immutable ones like the Steam Deck, which are highly focused on gaming.

Proposal:

This PR is my attempt to introduce Flatpak support for this program. It’s in an early stage, but it already builds and works, so we have a starting point. I propose to keep this PR open with an RFC tag for discussion. @CHollingworth if you think this project doesn’t require this feature, feel free to delete it, no hard feelings from me. 😃

Future Plans:

Assuming the program runs as expected, I would like for this project to be uploaded to FlatHub either under @CHollingworth's name or a project organization name (a domain name will be required). This is a multi-staged PR and I do not think it's ready for a merge yet, I would like for this first step to be just of discussion and once we are all on the same page we can push it to the next phase which will be introducing it on FlatHub.

Notes:

Currently, I’ve set the flags for the program to run on Wayland only (as I do not have any setup that runs Xorg to test it with) I’ve also enabled it to access the entire filesystem in order to allow it to find all dependencies. However, I’m open to learning a better way to do this that is more secure and respectful of containerization good behaviors, if anyone has any suggestion.

Conclusion:

I appreciate everyone involved in this project and aim to contribute positively. Feel free to contact me on the project’s Discord if you want to discuss this further, even in a voice chat call! 😄

How to test it:

At this moment in time the flatpak is built and run only locally, there is a very easy way to do so:

1) Be sure to have installed the flatpak org.freedesktop.Sdk version 23.08 2) Run this command in the project root directory: flatpak-builder --user --install --force-clean build-dir flatpak.json 3) Run this other command immediately after: flatpak run com.local.Lampray

Plarpoon commented 8 months ago

I have actually formatted an old laptop and tested it with X11 too, it works beautifully with it equally as much as Wayland. Due to that, I have re-introduced the X11 socket too!

Plarpoon commented 8 months ago

Closing this in favor of #123