Explorar o código

CI: Add extension point to Flatpak plugins

This is what the Flathub manifest does, which allows for plugins
distributed through Flatpak extension points.

Add extension point for Flatpak-distributed plugins.
Georges Basile Stavracas Neto %!s(int64=4) %!d(string=hai) anos
pai
achega
baead91374
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      CI/flatpak/com.obsproject.Studio.json

+ 13 - 0
CI/flatpak/com.obsproject.Studio.json

@@ -19,6 +19,16 @@
     "--own-name=org.kde.StatusNotifierItem-2-2",
     "--system-talk-name=org.freedesktop.Avahi"
   ],
+  "add-extensions": {
+    "com.obsproject.Studio.Plugin": {
+      "directory": "plugins",
+      "subdirectories": true,
+      "add-ld-path": "lib",
+      "merge-dirs": "lib/obs-plugins;share/obs/obs-plugins",
+      "no-autodownload": true,
+      "autodelete": true
+    }
+  },
   "cleanup": [
     "/lib/pkgconfig",
     "/share/man",
@@ -269,6 +279,9 @@
         "-DYOUTUBE_SECRET=$YOUTUBE_SECRET",
         "-DYOUTUBE_SECRET_HASH=$YOUTUBE_SECRET_HASH"
       ],
+      "post-install": [
+        "install -d /app/plugins"
+      ],
       "sources": [
         {
           "type": "dir",