[tracker/wip/carlosg/portal: 49/61] examples: Add example flatpak definition



commit cd1d04ad133a54f4286a71b8bf1498d09227faca
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 24 11:16:53 2020 +0100

    examples: Add example flatpak definition
    
    This doesn't do much, just builds tracker inside a sandbox, but does
    handle limiting access to certain graphs, and lets you do your own
    queries/endpoint within the sandbox. It does rely on matching
    Tracker 3.x services and portal running in the host.
    
    With everything in place, queries to the FS miner will go through
    the portal, and be limited to the Tracker3 policies defined in the
    .flatpak-info file. This is done through --add-policy on "flatpak
    build finish" as per the manifest, but can also be influenced at
    "flatpak run" time for further testing.

 .../flatpak/org.freedesktop.TrackerSandbox.json    | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
---
diff --git a/examples/flatpak/org.freedesktop.TrackerSandbox.json 
b/examples/flatpak/org.freedesktop.TrackerSandbox.json
new file mode 100644
index 000000000..683e75cb4
--- /dev/null
+++ b/examples/flatpak/org.freedesktop.TrackerSandbox.json
@@ -0,0 +1,27 @@
+{
+    "app-id" : "org.freedesktop.TrackerSandbox",
+    "runtime" : "org.gnome.Platform",
+    "runtime-version" : "master",
+    "sdk" : "org.gnome.Sdk",
+    "command" : "/bin/sh",
+    "tags" : [
+        "nightly"
+    ],
+    "finish-args" : [
+       /* Define policy for the XDG Tracker portal */
+       "--add-policy=Tracker3.dbus:org.freedesktop.Tracker3.Miner.Files=tracker:Audio"
+    ],
+    "modules" : [
+        {
+            "name" : "tracker",
+           "buildsystem" : "meson",
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/tracker.git";,
+                    "branch" : "wip/carlosg/portal"
+                }
+            ]
+        }
+    ]
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]