[libshumate] demos: Create a Flatpak manifest



commit 05059f9883296eefa63c86951324193b28b39c97
Author: James Westman <james flyingpimonster net>
Date:   Sat Sep 5 21:46:27 2020 -0500

    demos: Create a Flatpak manifest
    
    This makes it easier to get started contributing to libshumate, since all you
    need to do is hit "run" in Builder--you don't need GTK4 installed on the host
    system.
    
    The manifest is set up to run the "minimal" demo by default.

 demos/meson.build                 |  2 +-
 demos/minimal.c                   |  2 +-
 demos/org.gnome.Shumate.Demo.json | 46 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 48 insertions(+), 2 deletions(-)
---
diff --git a/demos/meson.build b/demos/meson.build
index f595a29..066a7c4 100644
--- a/demos/meson.build
+++ b/demos/meson.build
@@ -12,7 +12,7 @@ foreach demo: libshumate_demos
   executable(
     demo_name,
     demo_sources,
-    install: false,
+    install: true,
     dependencies: [
       libshumate_dep,
     ]
diff --git a/demos/minimal.c b/demos/minimal.c
index 26039be..2b5e17f 100644
--- a/demos/minimal.c
+++ b/demos/minimal.c
@@ -78,7 +78,7 @@ main (int argc, char *argv[])
 {
   g_autoptr(GtkApplication) app = NULL;
 
-  app = gtk_application_new ("org.shumate.example", G_APPLICATION_FLAGS_NONE);
+  app = gtk_application_new ("org.gnome.Shumate.Demo", G_APPLICATION_FLAGS_NONE);
   g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
 
   return g_application_run (G_APPLICATION (app), argc, argv);
diff --git a/demos/org.gnome.Shumate.Demo.json b/demos/org.gnome.Shumate.Demo.json
new file mode 100644
index 0000000..7d54d90
--- /dev/null
+++ b/demos/org.gnome.Shumate.Demo.json
@@ -0,0 +1,46 @@
+{
+    "app-id" : "org.gnome.Shumate.Demo",
+    "runtime" : "org.gnome.Platform",
+    "runtime-version" : "master",
+    "sdk" : "org.gnome.Sdk",
+    "command" : "minimal",
+    "tags" : [
+        "devel"
+    ],
+    "finish-args" : [
+        "--share=ipc",
+        "--socket=x11",
+        "--socket=fallback-x11",
+        "--socket=wayland",
+        "--device=dri",
+        "--share=network"
+    ],
+    "cleanup" : [
+        "/include",
+        "/lib/pkgconfig",
+        "/share/pkgconfig",
+        "/share/aclocal",
+        "/man",
+        "/share/man",
+        "/share/gtk-doc",
+        "/share/vala",
+        "*.la",
+        "*.a"
+    ],
+    "modules" : [
+        {
+            "name" : "libshumate",
+            "buildsystem" : "meson",
+            "config-opts" : [
+                "-Ddemos=true"
+            ],
+            "builddir" : true,
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/libshumate.git";
+                }
+            ]
+        }
+    ]
+}


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