Skip to content

Flatpak prototype#676

Merged
berry120 merged 25 commits into
quelea-projection:masterfrom
ebbez:flatpak
May 3, 2025
Merged

Flatpak prototype#676
berry120 merged 25 commits into
quelea-projection:masterfrom
ebbez:flatpak

Conversation

@ebbez
Copy link
Copy Markdown
Contributor

@ebbez ebbez commented Apr 18, 2025

The Flatpak build scripts needs an archive/tarball of the Quelea application (dist/) with the Quelea.jar in it, so I had to tweak a couple of things with the build.

To build the Flatpak you need to have Flatpak installed, and run the following commands:

1. Go to releases and download .flatpak bundle file

You can now go to the releases and download the .flatpak bundle file. With this bundle file you can easily install it by using either flatpak install quelea-CI-UNSTABLE.flatpak or double clicking it and opening it with your Flatpak frontend manager GUI of choice (Gnome Software or KDE Discover for example), and installing it through the manager.

image

image

Notes

JavaFX <= 23 has an issue where maximized windows will shrink to half the screen's size when opening dialogs on Linux (/Wayland). This is fixed in JavaFX 24, so I used a JRE w/ FX 24 from Azul for the Flatpak, which fixes the issue and seems to run fine. Might need more testing though.

I also tested this against version 21 from Azul but the bugfix hasn't been backported.

This PR only uses JDK/JFX 24 for the Flatpak.

Does it work?

The applications open, but I haven't tested running a full service/schedule in it or in the production setting.

Follow-up

  1. After the merge, some links in the manifest (flatpak/org.quelea.Quelea.yml) will need to be changed to reference this repository instead of my fork.
  2. In order to make this available for every Linux distro, it'll need to be submitted to Flathub (the Flatpak repository which is used by almost all Linux distros). It'd be willing to help with that submission if needed.

ebbez added 13 commits April 18, 2025 09:37
* Only build CI on changes in the Quelea/ (Java app) directory

* Use other GH Actions to simplify the script and remove static linking to JDK downloads

* Use a Windows Github Actions Runner to compile and package the Windows standalone

* Change the release GH Action to a more actively maintained one, and use newlines to make it more readible.
@ebbez ebbez marked this pull request as draft April 24, 2025 10:19
@ebbez
Copy link
Copy Markdown
Contributor Author

ebbez commented Apr 24, 2025

Changed this PR to a draft since I'll work on the CI-build making a .flatpak bundle file so users will be able to install it without using the Flathub repository.

@ebbez ebbez marked this pull request as ready for review April 24, 2025 18:13
@ebbez
Copy link
Copy Markdown
Contributor Author

ebbez commented Apr 24, 2025

It now creates a .flatpak file (Flatpak Bundle) and adds it to the Releases.

@ebbez
Copy link
Copy Markdown
Contributor Author

ebbez commented Apr 24, 2025

It does increase the build action time to 11 mins. It might be nicer to split it up or also add an if like with the publish release step

@ebbez ebbez mentioned this pull request Apr 25, 2025
@ebbez ebbez closed this Apr 28, 2025
@ebbez ebbez reopened this May 2, 2025
Copy link
Copy Markdown
Member

@berry120 berry120 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's give this a go - let me know if there's any issues with it after merge!

@berry120 berry120 merged commit 5d299d3 into quelea-projection:master May 3, 2025
1 check passed
@ebbez
Copy link
Copy Markdown
Contributor Author

ebbez commented May 4, 2025

After uninstalling every flatpak and using the .flatpak bundle file from this repo's releases page/CI-RELEASE it installed succesfully! :) Opens up good.

@ebbez ebbez deleted the flatpak branch May 16, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants