Enable Flatpak packaging support

This commit is contained in:
Alejandro Domínguez
2022-11-14 12:48:17 +01:00
committed by Geoffrey D. Bennett
parent 2ce8450031
commit e899eae6a1
3 changed files with 47 additions and 0 deletions

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@
alsa-scarlett-gui alsa-scarlett-gui
alsa-scarlett-gui-resources.c alsa-scarlett-gui-resources.c
vu.b4.alsa-scarlett-gui.desktop vu.b4.alsa-scarlett-gui.desktop
.flatpak-builder/
flatpak-build/

View File

@@ -5,6 +5,24 @@ install, and run.
For usage instructions, read on... For usage instructions, read on...
With Flatpak, in any distro:
```
flatpak-builder --user --install --force-clean flatpak-build \
vu.b4.alsa-scarlett-gui.yml
```
Be sure to use `flatpak-build` as the directory where the flatpak is
built or hence you risk bundling the artifacts when comitting!
If it asks for the SDK, just install it:
```
flatpak install org.gnome.Sdk
```
And pick the right version.
## No interface connected ## No interface connected
If no interface is detected (usually because there isnt one If no interface is detected (usually because there isnt one

View File

@@ -0,0 +1,27 @@
app-id: vu.b4.alsa-scarlett-gui
runtime: org.gnome.Platform
runtime-version: "43"
sdk: org.gnome.Sdk
command: alsa-scarlett-gui
# If publishing to Flathub, this option is required for version (tag) 0.2
rename-icon: alsa-scarlett-gui
finish-args:
# X11 + XShm access
- --share=ipc
- --socket=fallback-x11
# Wayland access
- --socket=wayland
# Needs access to ALSA device nodes:
- --device=all
modules:
- name: alsa-scarlett-gui
buildsystem: simple
build-commands:
- make install PREFIX=$FLATPAK_DEST
sources:
- type: dir
path: ./src
# Use the following and remove the above for Flathub publishing
# - type: git
# url: https://github.com/geoffreybennett/alsa-scarlett-gui.git
# tag: "0.2"