Browse Source

CI: Allow Flatpak audio plugins be found

Add an extension point for org.freedesktop.LinuxAudio.Plugins,
and create the corresponding folder at post-install time.

Commit originally made by @hfiguiere for Flathub.
Georges Basile Stavracas Neto 4 years ago
parent
commit
0d3ce3dfe6
1 changed files with 12 additions and 2 deletions
  1. 12 2
      CI/flatpak/com.obsproject.Studio.json

+ 12 - 2
CI/flatpak/com.obsproject.Studio.json

@@ -17,7 +17,8 @@
     "--talk-name=org.freedesktop.Flatpak",
     "--talk-name=org.freedesktop.Flatpak",
     "--talk-name=org.freedesktop.Notifications",
     "--talk-name=org.freedesktop.Notifications",
     "--own-name=org.kde.StatusNotifierItem-2-2",
     "--own-name=org.kde.StatusNotifierItem-2-2",
-    "--system-talk-name=org.freedesktop.Avahi"
+    "--system-talk-name=org.freedesktop.Avahi",
+    "--env=VST_PATH=/app/extensions/Plugins/lxvst"
   ],
   ],
   "add-extensions": {
   "add-extensions": {
     "com.obsproject.Studio.Plugin": {
     "com.obsproject.Studio.Plugin": {
@@ -27,6 +28,14 @@
       "merge-dirs": "lib/obs-plugins;share/obs/obs-plugins",
       "merge-dirs": "lib/obs-plugins;share/obs/obs-plugins",
       "no-autodownload": true,
       "no-autodownload": true,
       "autodelete": true
       "autodelete": true
+    },
+    "org.freedesktop.LinuxAudio.Plugins": {
+      "directory": "extensions/Plugins",
+      "version": "21.08",
+      "add-ld-path": "lib",
+      "merge-dirs": "lxvst",
+      "subdirectories": true,
+      "no-autodownload": true
     }
     }
   },
   },
   "cleanup": [
   "cleanup": [
@@ -280,7 +289,8 @@
         "-DYOUTUBE_SECRET_HASH=$YOUTUBE_SECRET_HASH"
         "-DYOUTUBE_SECRET_HASH=$YOUTUBE_SECRET_HASH"
       ],
       ],
       "post-install": [
       "post-install": [
-        "install -d /app/plugins"
+        "install -d /app/plugins",
+        "install -d /app/extensions/Plugins"
       ],
       ],
       "sources": [
       "sources": [
         {
         {