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 target and workflow #421

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add Flatpak target and workflow #421

wants to merge 3 commits into from

Conversation

gastmaier
Copy link

@gastmaier gastmaier commented Mar 20, 2023

Generate a flatpak package[1], as we already do with Scopy.

Flatpak policy is set in the manifest files instead of through CMake, therefore during flatpak build:

  • libiio is compiled with -DINSTALL_UDEV_RULE=OFF.
  • CMakeLists.txt does not install org.adi.pkexec.osc.policy file.

The flatpak build was tested with org.gnome.Platform version x86_64/3.38 (oldest available in flathub) and x86_64/43 (latest).

The Flathub/Flatpak Builder GitHub Action is being used,
which will pull an image from the author's account (gnome developer, flathub maintainer)
(if that's not ok, we can create our own image and publish in Docker hub, like in the others workflows).

[1] The flatpak package is available for master and flatpak branches, at flatpak build -> Summary -> Artifacts,
we also could include to the Release Assets list.

Suggestions are welcome.

Include files to generate flatpaks.
libiio is compiled with -DINSTALL_UDEV_RULE=OFF and CMakeLists.txt does not
install org.adi.pkexec.osc.policy file if CMAKE_INSTALL_PREFIX is /app
(flatpak install prefix); this is because flatpaks run in a sandbox and
its policies are defined in the main manifest file (CI/flatpak/app.yml).

The flatpak was tested with org.gnome.Platform version x86_64/3.38
and x86_64/43.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Include GitHub Workflow to generate the flatpak.
Uses the Flathub/Flatpak\ Builder GitHub Action.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
@gastmaier gastmaier marked this pull request as ready for review March 20, 2023 20:25
Badge will only show status for builds at master branch.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
@SRaus SRaus changed the base branch from master to main January 9, 2024 09:42
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

Successfully merging this pull request may close these issues.

1 participant