From f044e7eca3b38c972669357668cf6c441bcc5be1 Mon Sep 17 00:00:00 2001 From: Felix Zwettler Date: Sun, 9 Jun 2024 20:24:10 +0200 Subject: [PATCH] Provide flatpak manifest --- .gitignore | 3 + build-aux/io.github.pympress.yaml | 54 +++++++ .../applications/io.github.pympress.desktop | 2 +- .../scalable/apps/io.github.pympress.svg | 133 ++++++++++++++++++ .../metainfo/io.github.pympress.metainfo.xml | 55 ++++++++ setup.py | 2 + 6 files changed, 248 insertions(+), 1 deletion(-) create mode 100644 build-aux/io.github.pympress.yaml create mode 100644 pympress/share/icons/hicolor/scalable/apps/io.github.pympress.svg create mode 100644 pympress/share/metainfo/io.github.pympress.metainfo.xml diff --git a/.gitignore b/.gitignore index d3c9b6cd..25e771b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ *.pyc build/ dist/ +/venv/ +/.flatpak/ +/io.github.pympress.flatpak pympress.egg-info/ diff --git a/build-aux/io.github.pympress.yaml b/build-aux/io.github.pympress.yaml new file mode 100644 index 00000000..4cf182ec --- /dev/null +++ b/build-aux/io.github.pympress.yaml @@ -0,0 +1,54 @@ +id: io.github.pympress +runtime: org.gnome.Platform +runtime-version: "46" +sdk: org.gnome.Sdk +command: pympress +finish-args: + - "--socket=wayland" + - "--socket=fallback-x11" + - "--socket=pulseaudio" + - "--device=dri" + - "--share=ipc" + - "--filesystem=xdg-documents" + - "--filesystem=xdg-run/gvfs" + - "--filesystem=xdg-run/gvfsd" + - "--own-name=io.github.pympress.*" + - "--talk-name=org.gtk.vfs.*" +build-options: + build-args: + - "--share=network" + test-args: + - "--socket=x11" + - "--share=network" +modules: + - name: poppler + buildsystem: cmake-ninja + config-opts: + - "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" + - "-DCMAKE_INSTALL_LIBDIR=/app/lib" + - "-DCMAKE_INSTALL_INCLUDEDIR=/app/include" + - "-DENABLE_BOOST=OFF" + - "-DENABLE_LIBOPENJPEG=none" + - "-DENABLE_QT5=OFF" + - "-DENABLE_QT6=OFF" + - "-DENABLE_CPP=OFF" + - "-DENABLE_UTILS=OFF" + sources: + - type: archive + url: "https://poppler.freedesktop.org/poppler-24.04.0.tar.xz" + sha256: 1e804ec565acf7126eb2e9bb3b56422ab2039f7e05863a5dfabdd1ffd1bb77a7 + - name: poppler-data + buildsystem: cmake-ninja + config-opts: + - "-DCMAKE_BUILD_TYPE=RelWithDebInfo" + sources: + - type: archive + url: "https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz" + sha256: c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74 + - name: pympress + buildsystem: simple + build-commands: + - pip3 install --prefix=/app . + sources: + - type: dir + path: ../ diff --git a/pympress/share/applications/io.github.pympress.desktop b/pympress/share/applications/io.github.pympress.desktop index 8cd2ca9d..478b0f36 100644 --- a/pympress/share/applications/io.github.pympress.desktop +++ b/pympress/share/applications/io.github.pympress.desktop @@ -3,7 +3,7 @@ Categories=Office;Viewer;Presentation;GTK; Keywords=Presentation;Dual-Screen;Beamer; Comment=A simple yet powerful PDF reader designed for dual-screen presentations Exec=pympress %f -Icon=pympress +Icon=io.github.pympress MimeType=application/pdf; Name=pympress Terminal=false diff --git a/pympress/share/icons/hicolor/scalable/apps/io.github.pympress.svg b/pympress/share/icons/hicolor/scalable/apps/io.github.pympress.svg new file mode 100644 index 00000000..64db8423 --- /dev/null +++ b/pympress/share/icons/hicolor/scalable/apps/io.github.pympress.svg @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/pympress/share/metainfo/io.github.pympress.metainfo.xml b/pympress/share/metainfo/io.github.pympress.metainfo.xml new file mode 100644 index 00000000..b2dae3c1 --- /dev/null +++ b/pympress/share/metainfo/io.github.pympress.metainfo.xml @@ -0,0 +1,55 @@ + + + io.github.pympress + CC0 + GPL-2.0-or-later + Pympress + io.github.pympress.desktop + A simple and powerful dual-screen PDF reader designed for presentations + + + Graphics + Education + Office + GNOME + GTK + + + +

+ Pympress is a PDF presentation tool designed for dual-screen setups such as presentations and public talks. + Highly configurable, fully-featured, and portable. +

+
+ + + + https://pympress.github.io/resources/pympress-screenshot.png + A screenshot with Pympress’ 2 screens + + + + + keyboard + pointing + 500 + + + https://pympress.github.io/ + https://github.com/Cimbali/pympress/issues + The Pympress Authors + me@cimba.li + + + + pympress + + + + + + see: https://github.com/Cimbali/pympress/releases/latest + + + +
\ No newline at end of file diff --git a/setup.py b/setup.py index ff4ee8cf..db2301ed 100755 --- a/setup.py +++ b/setup.py @@ -279,7 +279,9 @@ def pympress_resources(): if setuptools_version >= (30, 5): options['data_files'] = [ ('share/pixmaps/', ['pympress/share/pixmaps/pympress.png']), + ('share/icons/hicolor/scalable/apps/', ['pympress/share/icons/hicolor/scalable/apps/io.github.pympress.svg']), ('share/applications/', ['pympress/share/applications/io.github.pympress.desktop']), + ('share/metainfo/', ['pympress/share/metainfo/io.github.pympress.metainfo.xml']), ] setuptools.setup(**options)