Skip to content
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

Add flatpak version #92

Open
gattolfo98 opened this issue Apr 17, 2024 · 3 comments
Open

Add flatpak version #92

gattolfo98 opened this issue Apr 17, 2024 · 3 comments

Comments

@gattolfo98
Copy link
Contributor

Describe the bug
Is not a bug, but is very appreciate have a flatpak version, so on linux we will have this software on all distro.

Expected behavior
Have a flatpak version lol.

Desktop (please complete the following information):
Linux

@fgnm
Copy link
Member

fgnm commented Apr 17, 2024

Suggestions on how to make it? :) Currently release build are made with jpackage which bundle the main jar, a jvm (17 but upgradeable to 21 as soon as libGDX will move to Java 8) and all built-in plugins (other jar files)... I'm an ubuntu-only user, sorry, but if you have resources how to do that I can see if it's easy to setup a workflow for it

@gattolfo98
Copy link
Contributor Author

In flatpak you don't need to add a bundled jvm (or if you want yes) you can just say "my program use java 17" in the dependency and flatpak gonna take care of this. https://docs.flatpak.org/en/latest/first-build.html tutorial is how make your first flatpak, and https://www.reddit.com/r/flatpak/comments/b5vrv6/java_in_a_flatpak/ and https://discourse.flathub.org/t/how-can-i-make-flatpak-for-applications-like-i2p-java-version/3345/2 is a 2 post speaking about java in flatpak. If you want i can help you to make the flatpak (i'm also at firs approach)! I think flatpak can make easy acces for hyperlap to a lot of people (also me, now i'm on fedora, and if i want to use it, or i need a VM, or container o building from source).

@fgnm
Copy link
Member

fgnm commented Apr 18, 2024

Building from source is quite easy btw.. if java 17 is installed in someway (system or thorugh an ide), it's literally 1 line to run it ./gradlew runHyperLap2D... Anayway, I'll look into it, just found an example made for a libGDX game too (https://github.com/flathub/com.shatteredpixel.shatteredpixeldungeon/blob/94c9c577a251eec9caa6c256a5b37a8c9efd0893/com.shatteredpixel.shatteredpixeldungeon.yaml), it should't be too much difficult to make... I've to do more pressing issues first (sadly linux users are not so much :( ) but meanwhile if you want to give a try PR are always more then welcome... Also you can join Discord server for fast chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants