diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8be2e5bddb..c71cac32dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -269,6 +269,18 @@ flatpak-main:icon-browser: variables: APPID: org.gtk.IconBrowser4 +flatpak-manual:node-editor: + extends: .flatpak-manual + needs: [] + variables: + APPID: org.gtk.gtk4.NodeEditor + +flatpak-main:node-editor: + extends: .flatpak-main + needs: [] + variables: + APPID: org.gtk.gtk4.NodeEditor + # Publish the demo apps to the GNOME Nightly repo # https://wiki.gnome.org/Apps/Nightly # https://gitlab.gnome.org/GNOME/Initiatives/-/wikis/DevOps-with-Flatpak @@ -287,6 +299,11 @@ nightly icon-browser: dependencies: ['flatpak-main:icon-browser'] needs: ['flatpak-main:icon-browser'] +nightly node-editor: + extends: '.publish_nightly' + dependencies: ['flatpak-main:node-editor'] + needs: ['flatpak-main:node-editor'] + static-scan: image: $FEDORA_IMAGE stage: analysis diff --git a/.gitlab-ci/flatpak-build.sh b/.gitlab-ci/flatpak-build.sh index 20c3a21f9f..4f19082f7e 100644 --- a/.gitlab-ci/flatpak-build.sh +++ b/.gitlab-ci/flatpak-build.sh @@ -16,7 +16,7 @@ flatpak-builder \ flatpak build ${builddir} meson \ --prefix=/app \ --libdir=/app/lib \ - --buildtype=release \ + --buildtype=debugoptimized \ -Dx11-backend=true \ -Dwayland-backend=true \ -Dbuild-tests=false \ diff --git a/build-aux/flatpak/org.gtk.gtk4.NodeEditor.json b/build-aux/flatpak/org.gtk.gtk4.NodeEditor.json new file mode 100644 index 0000000000..bff6b20be3 --- /dev/null +++ b/build-aux/flatpak/org.gtk.gtk4.NodeEditor.json @@ -0,0 +1,138 @@ +{ + "app-id" : "org.gtk.gtk4.NodeEditor", + "runtime" : "org.gnome.Platform", + "runtime-version" : "master", + "sdk" : "org.gnome.Sdk", + "command" : "gtk4-node-editor", + "tags" : [ + "devel", + "development", + "nightly" + ], + "desktop-file-name-prefix" : "(Development) ", + "finish-args" : [ + "--device=dri", + "--share=ipc", + "--socket=fallback-x11", + "--socket=wayland", + "--talk-name=org.gtk.vfs", + "--talk-name=org.gtk.vfs.*" + ], + "cleanup" : [ + "/include", + "/lib/pkgconfig", + "/share/pkgconfig", + "/share/aclocal", + "/man", + "/share/man", + "/share/gtk-doc", + "*.la", + ".a", + "/lib/girepository-1.0", + "/share/gir-1.0", + "/share/doc" + ], + "modules" : [ + { + "name" : "wayland", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "-Ddocumentation=false" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.freedesktop.org/wayland/wayland.git", + "branch" : "main" + } + ] + }, + { + "name" : "graphene", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "--libdir=/app/lib", + "-Dtests=false" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://github.com/ebassi/graphene.git" + } + ] + }, + { + "name" : "libsass", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "--libdir=/app/lib" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://github.com/lazka/libsass.git", + "branch" : "meson" + } + ] + }, + { + "name" : "sassc", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "--libdir=/app/lib" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://github.com/lazka/sassc.git", + "branch" : "meson" + } + ] + }, + { + "name" : "pango", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "--libdir=/app/lib" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/pango.git", + "branch" : "main" + } + ] + }, + { + "name" : "gtk", + "buildsystem" : "meson", + "builddir" : true, + "config-opts" : [ + "--libdir=/app/lib", + "-Dvulkan=disabled", + "-Dbuildtype=debugoptimized", + "-Dprofile=devel" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/gtk.git", + "branch" : "main" + } + ] + } + ], + "build-options" : { + "env" : { + "DBUS_SESSION_BUS_ADDRESS" : "''", + "GSK_RENDERER" : "opengl", + "GDK_DEBUG" : "vulkan-disable", + "G_ENABLE_DEBUG" : "true" + } + } +}