From cce5099709c1978d927fdcca5a538cce142e7a47 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 18 Jul 2019 12:05:28 +1000 Subject: [PATCH] Fix the flatpak for tuhi to point to the GUI now This means we can drop the normal one. Since Tuhi wasn't a GUI application anyway it wasn't technically flatpak-compatible. --- ....TuhiGui.json => org.freedesktop.Tuhi.json | 22 +--- org.freedesktop.tuhi.json | 107 ------------------ 2 files changed, 3 insertions(+), 126 deletions(-) rename org.freedesktop.TuhiGui.json => org.freedesktop.Tuhi.json (76%) delete mode 100644 org.freedesktop.tuhi.json diff --git a/org.freedesktop.TuhiGui.json b/org.freedesktop.Tuhi.json similarity index 76% rename from org.freedesktop.TuhiGui.json rename to org.freedesktop.Tuhi.json index 4940392..cf93424 100644 --- a/org.freedesktop.TuhiGui.json +++ b/org.freedesktop.Tuhi.json @@ -1,12 +1,13 @@ { - "app-id": "org.freedesktop.TuhiGui", + "app-id": "org.freedesktop.Tuhi", "runtime": "org.gnome.Platform", "runtime-version": "3.30", "sdk": "org.gnome.Sdk", - "command": "tuhi-gui", + "command": "tuhi", "finish-args": [ "--share=ipc", "--socket=x11", + "--socket=wayland", "--talk-name=org.freedesktop.tuhi1", "--own-name=org.freedesktop.tuhi1", "--system-talk-name=org.bluez" @@ -54,29 +55,12 @@ }, { "name": "tuhi", - "buildsystem": "simple", - "sources": [ - { - "type": "git", - "url": "https://github.com/tuhiproject/tuhi" - } - ], - "build-commands": [ - "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ." - ] - }, - { - "name": "tuhigui", "buildsystem": "meson", "sources": [ { "type": "git", "url": "." } - ], - "post-install": [ - "cp tuhi-gui-flatpak.py /app/bin/tuhi-gui", - "chmod +x /app/bin/tuhi-gui" ] } ] diff --git a/org.freedesktop.tuhi.json b/org.freedesktop.tuhi.json deleted file mode 100644 index f1721ef..0000000 --- a/org.freedesktop.tuhi.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "id": "org.freedesktop.tuhi", - "command": "/app/bin/tuhi", - "runtime": "org.freedesktop.Platform", - "sdk": "org.freedesktop.Sdk", - "runtime-version": "18.08", - "cleanup": [ "/cache", - "/include", - "/lib/pkgconfig", - "/man", - "/share/aclocal", - "/share/devhelp", - "/share/gir-1.0", - "/share/gtk-doc", - "/share/man", - "/share/pkgconfig", - "/share/vala", - "/lib/systemd", - "*.la", "*.a" ], - "build-options" : { - "cflags": "-O2 -g", - "cxxflags": "-O2 -g" - }, - "finish-args": [ - "--system-talk-name=org.bluez", - "--own-name=org.freedesktop.tuhi1" - ], - "modules": [ - { - "name": "pygobject", - "buildsystem": "simple", - "build-commands": [ - "python3 setup.py install --prefix=/app" - ], - "build-options": { - "env": { - "PYGOBJECT_WITHOUT_PYCAIRO" : "1" - } - }, - "sources": [ - { - "type": "archive", - "url": "https://ftp.gnome.org/pub/GNOME/sources/pygobject/3.32/pygobject-3.32.1.tar.xz", - "sha256": "32c99def94b8dea5ce9e4bc99576ef87591ea779b4db77cfdca7af81b76d04d8" - } - ] - }, - { - "name": "pyxdg", - "buildsystem": "simple", - "sources": [ - { - "type": "git", - "url": "git://anongit.freedesktop.org/xdg/pyxdg" - } - ], - "build-commands": [ - "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ." - ] - }, - { - "name": "python-pyparsing", - "buildsystem": "simple", - "sources": [ - { - "type": "archive", - "url": "https://github.com/pyparsing/pyparsing/releases/download/pyparsing_2.4.0/pyparsing-2.4.0.tar.gz", - "sha512": "71877dc006cce5c1b1d45e7cc89cd60e03cb80353387fb0c6498cfc0d69af465dc574d1bceb87248033e7a82694aa940e9fce1ca80b2ef538a8df51f697ef530" - } - ], - "build-commands": [ - "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ." - ] - }, - { - "name": "python-svgwrite", - "buildsystem": "simple", - "sources": [ - { - "type": "git", - "url": "https://github.com/mozman/svgwrite.git" - } - ], - "build-commands": [ - "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ." - ] - }, - { - "name": "tuhi", - "buildsystem": "simple", - "sources": [ - { - "type": "git", - "path": "." - } - ], - "build-commands": [ - "pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} ." - ], - "post-install": [ - "cp tools/kete.py /app/lib/python3.7/site-packages/kete.py", - "cp tools/tuhi-kete-sandboxed.py /app/bin/tuhi-kete", - "chmod +x /app/bin/tuhi-kete" - ] - } - ] -}