From b9630ad2f29fe6b5fece5740818bde50f7b571d8 Mon Sep 17 00:00:00 2001 From: Snehit Sah Date: Sun, 24 Jul 2022 23:27:17 +0530 Subject: [PATCH] Add Flatpak CI Support Signed-off-by: Snehit Sah --- .flatpak-manifest.json | 157 +++++++++++++++++++++++++++++++++++++++++ .gitlab-ci.yml | 1 + .reuse/dep5 | 4 ++ 3 files changed, 162 insertions(+) create mode 100644 .flatpak-manifest.json diff --git a/.flatpak-manifest.json b/.flatpak-manifest.json new file mode 100644 index 000000000..ff1fec668 --- /dev/null +++ b/.flatpak-manifest.json @@ -0,0 +1,157 @@ +{ + "id": "org.kde.neochat", + "branch": "master", + "runtime": "org.kde.Platform", + "runtime-version": "5.15-21.08", + "sdk": "org.kde.Sdk", + "command": "neochat", + "tags": [ + "nightly" + ], + "desktop-file-name-suffix": " (Nightly)", + "finish-args": [ + "--share=network", + "--share=ipc", + "--socket=x11", + "--socket=wayland", + "--device=dri", + "--filesystem=xdg-download", + "--talk-name=org.freedesktop.Notifications", + "--talk-name=org.kde.kwalletd5", + "--talk-name=org.kde.StatusNotifierWatcher", + "--own-name=org.kde.StatusNotifierItem-2-2" + ], + "modules": [ + { + "name": "kquickimageeditor", + "buildsystem": "cmake-ninja", + "sources": [ + { + "type": "git", + "url": "https://invent.kde.org/libraries/kquickimageeditor" + } + ] + }, + { + "name": "olm", + "buildsystem": "cmake-ninja", + "sources": [ + { + "type": "git", + "url": "https://gitlab.matrix.org/matrix-org/olm.git", + "tag": "3.2.10", + "x-checker-data": { + "type": "git", + "tag-pattern": "^([\\d.]+)$" + }, + "commit": "9908862979147a71dc6abaecd521be526ae77be1" + } + ] + }, + { + "name": "libsecret", + "buildsystem": "meson", + "config-opts": [ + "-Dmanpage=false", + "-Dvapi=false", + "-Dgtk_doc=false", + "-Dintrospection=false", + "-Dgcrypt=false" + ], + "sources": [ + { + "type": "archive", + "url": "https://download.gnome.org/sources/libsecret/0.20/libsecret-0.20.5.tar.xz", + "sha256": "3fb3ce340fcd7db54d87c893e69bfc2b1f6e4d4b279065ffe66dac9f0fd12b4d", + "x-checker-data": { + "type": "gnome", + "name": "libsecret", + "stable-only": true + } + } + ] + }, + { + "name": "qtkeychain", + "buildsystem": "cmake-ninja", + "sources": [ + { + "type": "archive", + "url": "https://github.com/frankosterfeld/qtkeychain/archive/v0.13.2.tar.gz", + "sha256": "20beeb32de7c4eb0af9039b21e18370faf847ac8697ab3045906076afbc4caa5", + "x-checker-data": { + "type": "anitya", + "project-id": 4138, + "stable-only": true, + "url-template": "https://github.com/frankosterfeld/qtkeychain/archive/v$version.tar.gz" + } + } + ], + "config-opts": [ + "-DCMAKE_INSTALL_LIBDIR=/app/lib", + "-DLIB_INSTALL_DIR=/app/lib", + "-DBUILD_TRANSLATIONS=NO" + ] + }, + { + "name": "libQuotient", + "buildsystem": "cmake-ninja", + "sources": [ + { + "type": "git", + "url": "https://github.com/quotient-im/libQuotient.git", + "branch": "dev" + } + ], + "config-opts": [ + "-DQuotient_ENABLE_E2EE=ON" + ] + }, + { + "name": "cmark", + "buildsystem": "cmake-ninja", + "sources": [ + { + "type": "git", + "url": "https://github.com/commonmark/cmark.git" + } + ], + "config-opts": [ + "-DCMARK_TESTS=OFF", + "-DCMAKE_BUILD_TYPE=Release", + "-DCMAKE_INSTALL_PREFIX=/app" + ], + "builddir": true + }, + { + "name": "qcoro", + "buildsystem": "cmake-ninja", + "sources": [ + { + "type": "archive", + "url": "https://github.com/danvratil/qcoro/archive/refs/tags/v0.4.0.tar.gz", + "sha256": "0e68b3f0ce7bf521ffbdd731464d2d60d8d7a39a749b551ed26855a1707d86d1", + "x-checker-data": { + "type": "anitya", + "project-id": 236236, + "stable-only": true, + "url-template": "https://github.com/danvratil/qcoro/archive/refs/tags/v$version.tar.gz" + } + } + ] + }, + { + "name": "neochat", + "buildsystem": "cmake-ninja", + "sources": [ + { + "type": "dir", + "path": "." + } + ], + "config-opts": [ + "-DNEOCHAT_FLATPAK=ON" + ] + } + ] +} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59a1b4b3a..064c7caef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,3 +9,4 @@ include: # - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux-qt6.yml - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/windows.yml - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml + - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/flatpak.yml diff --git a/.reuse/dep5 b/.reuse/dep5 index 131b0a519..f6b433fc3 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -42,3 +42,7 @@ License: BSD-2-Clause Files: imports/NeoChat/Component/confetti.png imports/NeoChat/Component/glowdot.png Copyright: 2021 Alexey Andreyev License: CC0-1.0 + +Files: .flatpak-manifest.json +Copyright: 2020-2022 Tobias Fella +License: BSD-2-Clause