Update 3 files

- /flatpak/org.openlp.OpenLP.yml
- /flatpak/requirements.txt
- /flatpak/build.sh
This commit is contained in:
Tomas Groth 2024-02-16 14:37:17 +00:00
parent 337479e1cf
commit 6c1001e8d1
3 changed files with 72 additions and 0 deletions

12
flatpak/build.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
# build PyMuPdf dependency file
PYMUPDF_VER=1.23.22
PY_TARGET=311
req2flatpak --requirements pymupdf==${PYMUPDF_VER} pymupdfb==${PYMUPDF_VER} --target-platforms ${PY_TARGET}-x86_64 ${PY_TARGET}-aarch64 --outfile python3-pymupdf.yaml
# build the openlp dependency file - remember to update requirements.txt if needed. Certain devel packages might be needed.
python flatpak-pip-generator --requirements-file requirements.txt
# Finally do the build
flatpak-builder --user --install --force-clean openlp-flatpak-builddir org.openlp.OpenLP.yml

View File

@ -0,0 +1,29 @@
app-id: org.openlp.OpenLP
runtime: org.kde.Platform
runtime-version: '5.15-23.08'
sdk: org.kde.Sdk
base: com.riverbankcomputing.PyQt.BaseApp
base-version: '5.15-23.08'
cleanup-commands:
- /app/cleanup-BaseApp.sh
modules:
- name: OpenLP
finish-args:
- --socket=x11
- --share=ipc
- --device=dri
- --share=network
- --socket=pulseaudio
- --env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess
- --filesystem=host
modules:
- python3-pymupdf.yaml
- python3-requirements.json
- name: OpenLP
buildsystem: simple
build-commands:
- pip install --no-deps --no-build-isolation --prefix=$FLATPAK_DEST .
sources:
- type: archive
url: https://gitlab.com/openlp/openlp/-/archive/3.1.0rc4/openlp-3.1.0rc4.tar.gz
sha256: 63cc3f49944b8e5d5e0576105813938dee87355cb672318acb6c78df2e33522d

31
flatpak/requirements.txt Normal file
View File

@ -0,0 +1,31 @@
# Note:
# PyQt* packages is missing due to being included in the base flatpak image
# PyMuPDF is installed seperately due to some dependency issues
# dbus-python and psycopg2 install didn't work...
alembic
beautifulsoup4
chardet
#dbus-python
distro
flask
flask-cors
lxml
Mako
platformdirs
PyICU
pymediainfo
QtAwesome
qrcode
requests
SQLAlchemy
waitress
websockets
PyMuPDF
QDarkStyle
#PyMySQL
python-vlc
#psycopg2
pyenchant
pysword
pytest
pytest-runner