[Initiatives.wiki] Update DevOps with Flatpak



commit 6f4c929669c90200b635dcfd7ee46512309dd705
Author: Carlos Soriano <csoriano1618 gmail com>
Date:   Mon Dec 10 14:09:39 2018 +0000

    Update DevOps with Flatpak

 DevOps-with-Flatpak.md | 30 +++++++++++-------------------
 1 file changed, 11 insertions(+), 19 deletions(-)
---
diff --git a/DevOps-with-Flatpak.md b/DevOps-with-Flatpak.md
index 65e34ea..07916df 100644
--- a/DevOps-with-Flatpak.md
+++ b/DevOps-with-Flatpak.md
@@ -19,7 +19,7 @@ flatpak:
     image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
     variables:
         MANIFEST_PATH: "build-aux/flatpak/org.gnome.NautilusDevel.yml"
-        MESON_ARGS: "-Dprofile=development"
+        MESON_ARGS: "-Dprofile=Devel"
         FLATPAK_MODULE: "nautilus"
         RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
         APP_ID: "org.gnome.NautilusDevel"
@@ -73,7 +73,7 @@ flatpak:
     image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
     variables:
         MANIFEST_PATH: "build-aux/flatpak/org.gnome.NautilusDevel.yml"
-        MESON_ARGS: "-Dprofile=development"
+        MESON_ARGS: "-Dprofile=Devel"
         FLATPAK_MODULE: "nautilus"
         RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
         APP_ID: "org.gnome.NautilusDevel"
@@ -101,11 +101,15 @@ First, let's add basic support for profiles in the root meson.build file.
 ```python
 if get_option('profile') == 'development'
   profile = 'Devel'
-  name_suffix = ' (Development)'
+  name_suffix = ' (Development Snapshot)'
+elif get_option('profile') != ''
+  profile = get_option('profile')
+  name_suffix = get_option('profile')
 else
   profile = ''
   name_suffix = ''
 endif
+```
 
 # Replace AppName with your app name
 application_id = 'org.gnome.AppName@0@'.format(profile)
@@ -324,30 +328,18 @@ g_dbus_interface_skeleton_export (G_DBUS_INTERFACE_SKELETON (self->skeleton),
 # Adding a visual hint for development
 The goal is that the person installing a profile knows that it's a development version right away, including 
in case errors are reported with an screenshot. For that we will add an style to the app when running in 
devel mode.
 
-In your data/Adwaita.css file
-```css
-.devel headerbar {
-    background: linear-gradient(to left, #a5b1bd 0%, #a5b1bd 8%, @theme_bg_color 25%);
-    box-shadow: inset 0 1px #f1f3f5;
-    border-color: #909fae;
-    color: rgba(46, 52, 54, 0.2);
-}
-```
-
-Then in your application window code:
+In your application window code:
 ```c
-    application_id = g_application_get_application_id (G_APPLICATION (gtkapplication));
-    if (g_strcmp0 (application_id, "org.gnome.AppNameDevel") == 0)
+    if (g_strcmp0 (PROFILE, "") != 0)
     {
         GtkStyleContext *style_context;
 
         style_context = gtk_widget_get_style_context (GTK_WIDGET (window));
+
         gtk_style_context_add_class (style_context, "devel");
     }
-
 ```
-
-[except_master]: 
https://gitlab.gnome.org/GNOME/nautilus/blob/4ae0361342c5306ccfe1502e69bb430ac530005b/.gitlab-ci.yml#L65
+Which assumes that if there is a profile set, it's going to be for development. Otherwise, no styling is 
set. The devel CSS style class is provided by gtk+ itself.
 
 # FAQ
 


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