diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 412c4e7..8fc139f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ build-native: - make -j4 artifacts: paths: - - build + - build/matrique build-flatpak: image: registry.gitlab.com/b0/matrique/flatpak @@ -27,17 +27,4 @@ build-flatpak: - cd ../ artifacts: paths: - - flatpak/matrique.flatpak - -deploy-flatpak: - stage: deploy - only: - - master - tags: - - deploy-flatpak - dependencies: [] - before_script: - - git submodule update --init --recursive - script: - - cd flatpak - - flatpak-builder --repo=/var/www/matrique-flatpak build-dir org.eu.encom.matrique.json --force-clean --gpg-sign=52986BF4D61350EC249F2E891B0DB3358FC5E4B2 \ No newline at end of file + - flatpak/matrique.flatpak \ No newline at end of file diff --git a/flatpak/org.eu.encom.matrique.json b/flatpak/org.eu.encom.matrique.json index 607ec0d..127afa3 100644 --- a/flatpak/org.eu.encom.matrique.json +++ b/flatpak/org.eu.encom.matrique.json @@ -3,8 +3,9 @@ "id": "org.eu.encom.matrique", "rename-icon": "matrique", "rename-desktop-file": "matrique.desktop", + "rename-appdata-file": "matrique.appdata.xml", "runtime": "org.kde.Platform", - "runtime-version": "5.10", + "runtime-version": "5.11", "sdk": "org.kde.Sdk", "command": "matrique", "finish-args": [ @@ -21,14 +22,12 @@ "modules": [ { "name": "matrique", - "buildsystem": "simple", - "build-commands": [ - "ls -l", - "qmake matrique.pro -spec linux-g++ CONFIG+=qtquickcompiler", - "make -j4", - "ls -l", + "buildsystem": "qmake", + "post-install": [ "install -D matrique /app/bin/matrique", "install -D matrique.desktop /app/share/applications/matrique.desktop", + "mkdir -p /app/share/appdata", + "install -D matrique.appdata.xml /app/share/appdata/", "for i in 16x16 32x32 128x128 256x256 512x512; do install -Dm644 icons/${i}.png /app/share/icons/hicolor/${i}/apps/matrique.png; done" ], "sources": [ diff --git a/icons/64x64.png b/icons/64x64.png new file mode 100644 index 0000000..961410c Binary files /dev/null and b/icons/64x64.png differ diff --git a/matrique.appdata.xml b/matrique.appdata.xml new file mode 100644 index 0000000..3a84768 --- /dev/null +++ b/matrique.appdata.xml @@ -0,0 +1,43 @@ + + + org.eu.encom.matrique + GFDL + GPL-3.0 + Matrique + IM client for the Matrix protocol + +

+ Matrique is a glossy cross-platform client for Matrix, the decentralized communication protocol for instant messaging. +

+

+ The source code is generally available at Gitlab +

+
+ org.eu.encom.matrique + +​ +​ Overview +​ https://raw.githubusercontent.com/encombhat/flathub/org.eu.encom.matrique/screenshots/1.png +​ +​ +​ Room Config +​ https://raw.githubusercontent.com/encombhat/flathub/org.eu.encom.matrique/screenshots/2.png +​ +​ +​ Create Room +​ https://raw.githubusercontent.com/encombhat/flathub/org.eu.encom.matrique/screenshots/3.png +​ +​ +​ Settings Panel +​ https://raw.githubusercontent.com/encombhat/flathub/org.eu.encom.matrique/screenshots/4.png +​ +​ + https://gitlab.com/b0/matrique + + intense + intense + + + + +
diff --git a/matrique.pro b/matrique.pro index 67fe50e..f56f899 100644 --- a/matrique.pro +++ b/matrique.pro @@ -60,3 +60,13 @@ HEADERS += \ src/messageeventmodel.h \ src/imageproviderconnection.h \ src/emojimodel.h + +unix:!mac { + metainfo.files = $$PWD/matrique.appdata.xml + metainfo.path = $$PREFIX/share/metainfo + desktop.files = $$PWD/matrique.desktop + desktop.path = $$PREFIX/share/applications + icons.files = $$PWD/icons/64x64.png + icons.path = $$PREFIX/share/icons/hicolor/64x64/apps + INSTALLS += metainfo desktop mime icons +}