diff --git a/.gitignore b/.gitignore index 362af8e..5f201e4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ alsa-scarlett-gui alsa-scarlett-gui-resources.c vu.b4.alsa-scarlett-gui.desktop +.flatpak-builder/ +flatpak-build/ diff --git a/USAGE.md b/USAGE.md index 1994368..9d8f63a 100644 --- a/USAGE.md +++ b/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 diff --git a/vu.b4.alsa-scarlett-gui.yml b/vu.b4.alsa-scarlett-gui.yml new file mode 100644 index 0000000..212850e --- /dev/null +++ b/vu.b4.alsa-scarlett-gui.yml @@ -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"