Skip to content

Commit f478f87

Browse files
committed
Provide flatpak manifest, Appstream XML
1 parent 9df1e17 commit f478f87

File tree

6 files changed

+248
-1
lines changed

6 files changed

+248
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
*.pyc
22
build/
33
dist/
4+
/venv/
5+
/.flatpak/
6+
/io.github.pympress.flatpak
47

58
pympress.egg-info/
69

build-aux/io.github.pympress.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
id: io.github.pympress
2+
runtime: org.gnome.Platform
3+
runtime-version: "46"
4+
sdk: org.gnome.Sdk
5+
command: pympress
6+
finish-args:
7+
- "--socket=wayland"
8+
- "--socket=fallback-x11"
9+
- "--socket=pulseaudio"
10+
- "--device=dri"
11+
- "--share=ipc"
12+
- "--filesystem=xdg-documents"
13+
- "--filesystem=xdg-run/gvfs"
14+
- "--filesystem=xdg-run/gvfsd"
15+
- "--own-name=io.github.pympress.*"
16+
- "--talk-name=org.gtk.vfs.*"
17+
build-options:
18+
build-args:
19+
- "--share=network"
20+
test-args:
21+
- "--socket=x11"
22+
- "--share=network"
23+
modules:
24+
- name: poppler
25+
buildsystem: cmake-ninja
26+
config-opts:
27+
- "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
28+
- "-DCMAKE_INSTALL_LIBDIR=/app/lib"
29+
- "-DCMAKE_INSTALL_INCLUDEDIR=/app/include"
30+
- "-DENABLE_BOOST=OFF"
31+
- "-DENABLE_LIBOPENJPEG=none"
32+
- "-DENABLE_QT5=OFF"
33+
- "-DENABLE_QT6=OFF"
34+
- "-DENABLE_CPP=OFF"
35+
- "-DENABLE_UTILS=OFF"
36+
sources:
37+
- type: archive
38+
url: "https://poppler.freedesktop.org/poppler-24.04.0.tar.xz"
39+
sha256: 1e804ec565acf7126eb2e9bb3b56422ab2039f7e05863a5dfabdd1ffd1bb77a7
40+
- name: poppler-data
41+
buildsystem: cmake-ninja
42+
config-opts:
43+
- "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
44+
sources:
45+
- type: archive
46+
url: "https://poppler.freedesktop.org/poppler-data-0.4.12.tar.gz"
47+
sha256: c835b640a40ce357e1b83666aabd95edffa24ddddd49b8daff63adb851cdab74
48+
- name: pympress
49+
buildsystem: simple
50+
build-commands:
51+
- pip3 install --prefix=/app .
52+
sources:
53+
- type: dir
54+
path: ../

pympress/share/applications/io.github.pympress.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Categories=Office;Viewer;Presentation;GTK;
33
Keywords=Presentation;Dual-Screen;Beamer;
44
Comment=A simple yet powerful PDF reader designed for dual-screen presentations
55
Exec=pympress %f
6-
Icon=pympress
6+
Icon=io.github.pympress
77
MimeType=application/pdf;
88
Name=pympress
99
Terminal=false
Lines changed: 133 additions & 0 deletions
Loading
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>io.github.pympress</id>
4+
<metadata_license>CC0</metadata_license>
5+
<project_license>GPL-2.0-or-later</project_license>
6+
<name translatable="no">Pympress</name>
7+
<launchable type="desktop-id">io.github.pympress.desktop</launchable>
8+
<summary>A simple and powerful dual-screen PDF reader designed for presentations</summary>
9+
10+
<categories>
11+
<category>Graphics</category>
12+
<category>Education</category>
13+
<category>Office</category>
14+
<category>GNOME</category>
15+
<category>GTK</category>
16+
</categories>
17+
18+
<description>
19+
<p>
20+
Pympress is a PDF presentation tool designed for dual-screen setups such as presentations and public talks.
21+
Highly configurable, fully-featured, and portable.
22+
</p>
23+
</description>
24+
25+
<screenshots>
26+
<screenshot type="default">
27+
<image> https://pympress.github.io/resources/pympress-screenshot.png</image>
28+
<caption>A screenshot with Pympress’ 2 screens</caption>
29+
</screenshot>
30+
</screenshots>
31+
32+
<recommends>
33+
<control>keyboard</control>
34+
<control>pointing</control>
35+
<display_length compare="ge">500</display_length>
36+
</recommends>
37+
38+
<url type="homepage">https://pympress.github.io/</url>
39+
<url type="bugtracker">https://github.com/Cimbali/pympress/issues</url>
40+
<developer_name>The Pympress Authors</developer_name>
41+
<update_contact>[email protected]</update_contact>
42+
<content_rating type="oars-1.0" />
43+
44+
<provides>
45+
<binary>pympress</binary>
46+
</provides>
47+
48+
<releases>
49+
<release version="1.8.5" date="2023-12-15">
50+
<description>
51+
see: https://github.com/Cimbali/pympress/releases/latest
52+
</description>
53+
</release>
54+
</releases>
55+
</component>

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ def pympress_resources():
279279
if setuptools_version >= (30, 5):
280280
options['data_files'] = [
281281
('share/pixmaps/', ['pympress/share/pixmaps/pympress.png']),
282+
('share/icons/hicolor/scalable/apps/', ['pympress/share/icons/hicolor/scalable/apps/io.github.pympress.svg']),
282283
('share/applications/', ['pympress/share/applications/io.github.pympress.desktop']),
284+
('share/metainfo/', ['pympress/share/metainfo/io.github.pympress.metainfo.xml']),
283285
]
284286

285287
setuptools.setup(**options)

0 commit comments

Comments
 (0)