Reducing the size of my flatpak which uses PyQt6 and webengine

Feb 27, 2026 Closed
A

I recently switched from GTK3 to PyQt6 and the size of my app increased (the python and html files should just be a couple of MBs, but currently it is about 135 MB). Most likely it is bundling something that can probably be used as a shared resource (just like the KDE SDK).

Is there any way to reduce it?

Here is my manifest file io.github.archisman_panigrahi.typhoon/io.github.archisman_panigrahi.typhoon.json at master · flathub/io.github.archisman_panigrahi.typhoon · GitHub

E

pyqt uses webengine which is very big dependency. It’s not clear to me whether your app uses webengine or not. If it does then not much you can do. If it doesn’t you may cleanup it by following instructions.

A
Replying to #2

My app uses webengine

A
Replying to #2

But, is there no way this dependency can be made a separate package (just like org.kde.sdk is a separate package) such that not all app updates require the user to download it?

E
Replying to #4

One of flatpak features is deduplication so users download only bits of software that were changed.

A
Replying to #5

I verified that it works. I am relieved to know that.