Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide flatpak manifest, Appstream XML #318

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
*.pyc
build/
dist/
/venv/
/.flatpak/
/.flatpak-builder/
/io.github.pympress.flatpak

pympress.egg-info/

Expand Down
53 changes: 53 additions & 0 deletions build-aux/io.github.pympress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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"
- "--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: ../
2 changes: 1 addition & 1 deletion pympress/share/applications/io.github.pympress.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
133 changes: 133 additions & 0 deletions pympress/share/icons/hicolor/scalable/apps/io.github.pympress.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions pympress/share/metainfo/io.github.pympress.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.github.pympress</id>
<metadata_license>CC0</metadata_license>
<project_license>GPL-2.0-or-later</project_license>
<name translatable="no">Pympress</name>
<launchable type="desktop-id">io.github.pympress.desktop</launchable>
<summary>A simple and powerful dual-screen PDF reader designed for presentations</summary>

<categories>
<category>Graphics</category>
<category>Education</category>
<category>Office</category>
<category>GNOME</category>
<category>GTK</category>
</categories>

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

<screenshots>
<screenshot type="default">
<image> https://pympress.github.io/resources/pympress-screenshot.png</image>
<caption>A screenshot with Pympress’ 2 screens</caption>
</screenshot>
</screenshots>

<recommends>
<control>keyboard</control>
<control>pointing</control>
<display_length compare="ge">500</display_length>
</recommends>

<url type="homepage">https://pympress.github.io/</url>
<url type="bugtracker">https://github.com/Cimbali/pympress/issues</url>
<developer_name>The Pympress Authors</developer_name>
<update_contact>me@cimba.li</update_contact>
<content_rating type="oars-1.0" />

<provides>
<binary>pympress</binary>
</provides>

<releases>
<release version="1.8.5" date="2023-12-15">
<description>
see: https://github.com/Cimbali/pympress/releases/latest
</description>
</release>
</releases>
</component>
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,11 @@ 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)
Expand Down
Loading