Skip to content

cacao-accounting/cacao-accounting-flatpak

Repository files navigation

Flatpak packaging for Cacao Accounting Desktop

Note: The main Cacao Accounting project is still a work in progress.

Update requirements file

rm -rf venv
python -m venv venv
venv/bin/python -m pip install -r development.txt
venv/bin/python -m pip freeze --require-virtualenv --isolated --no-input --exclude-editable --requirement requirements.txt  > requirements.txt

Note that cacao-accounting unit tests must past with those libraries in the virtual enviroment.

Do not run this on Windows, doing so will add unwanted libraries.

Update python packages manifest:

Update python packages manifest with

pip install req2flatpak setuptools
req2flatpak --requirements-file requirements.txt --target-platforms 311-x86_64 --outfile pypi_packages.json

The python version must match the python version in the freedesktop runtime.

Update the tkinter library:

The python version of python the freedesktop sdk do not come with the Tkinter module, update the Tkinter Standalone manifest with your python version:

https://github.com/iwalton3/tkinter-standalone

Current version: Python 3.11

Create the flatpak:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08
flatpak run org.flatpak.Builder build-dir --force-clean com.cacaoaccounting.CacaoAccounting.yml

Test the flatpak

flatpak-builder --user --install --force-clean build-dir com.cacaoaccounting.CacaoAccounting.yml
flatpak run com.cacaoaccounting.CacaoAccounting

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published