Enable Flatpak packaging support
This commit is contained in:
committed by
Geoffrey D. Bennett
parent
2ce8450031
commit
e899eae6a1
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,3 +5,5 @@
|
||||
alsa-scarlett-gui
|
||||
alsa-scarlett-gui-resources.c
|
||||
vu.b4.alsa-scarlett-gui.desktop
|
||||
.flatpak-builder/
|
||||
flatpak-build/
|
||||
|
||||
18
USAGE.md
18
USAGE.md
@@ -5,6 +5,24 @@ install, and run.
|
||||
|
||||
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
|
||||
|
||||
If no interface is detected (usually because there isn’t one
|
||||
|
||||
27
vu.b4.alsa-scarlett-gui.yml
Normal file
27
vu.b4.alsa-scarlett-gui.yml
Normal 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"
|
||||
Reference in New Issue
Block a user