Hello. I want to build (and later publish this app in Flathub) that is written in Python with PySide6. I successfully built Snap package, but I have problems with Flatpak.
Project structure:
├── flatpak
├── requirements.txt
├── setup.py
├── snap
│ ├── gui
│ │ ├── tabela.desktop
│ │ └── tabela.png
│ └── snapcraft.yaml
├── tabela
│ ├── addItemDialog.py
│ ├── fileProcessing.py
│ ├── __init__.py
│ ├── LICENSE
│ ├── main.py
│ ├── mainwindow.py
│ ├── myTableModel.py
│ ├── README.md
│ └── saveDataDialog.py
└── tabela.json
setup.py:
from setuptools import setup
package_name = 'tabela'
filename = 'tabela/__init__.py'
setup(
name='tabela',
version='1.0',
description='Simple app that shows CSV content in table.',
author='cichy1173',
author_email='grzegorz@cichy1173.eu',
packages=['tabela'],
install_requires=[
'pyside6', # Add any other dependencies your app requires
],
entry_points={
'console_scripts': [
'tabela=tabela.main:main', # Replace 'yourappname' with the desired command
],
},
)
tabela.json (flatpak manifest):
{
"app-id": "eu.cichy1173.tabela",
"runtime": "org.kde.Platform",
"runtime-version": "6.2",
"sdk": " org.kde.Sdk",
"command": "tabela",
"finish-args": ["--share=ipc", "--share=x11", "--share=wayland", "filesystem=host", "device=dri"],
"modules": [
{
"name": "tabela",
"buildsystem": "simple",
"build-commands": [
"python -m pip install ."
],
"sources": [
{
"type": "dir",
"path": "/home/cichy1173/Projekty/Tabela"
}
],
"build-extensions": ["org.freedesktop.Sdk.Extension.python3.8"]
}
]
}
I am trying to build flatpak with command flatpak-builder --user --install flatpak tabela.json
but I have this error:
(flatpak-builder:364858): flatpak-builder-WARNING **: 13:04:45.674: Unknown property build-extensions for type BuilderModule
error: Invalid id org.kde.Sdk: Name can't start with
Failed to init: Unable to find sdk org.kde.Sdk version 6.2
But if I check installed sdks:
[cichy1173@starbook Tabela]$ flatpak list | grep org.kde.Sdk
KDE Software Development Kit org.kde.Sdk 5.15-21.08 flathub system
KDE Software Development Kit org.kde.Sdk 6.2 flathub system
I think, the lack of org.kde.Sdk (but i have it) it is not the only issue. My app is really basic, it uses only one dependency (PySide6), but I still have a lot of problems with building Flatpak. How can I do this in the right way?