Closed stupid-kid-af closed 2 years ago
I did a while ago a Pyqt5 application and deployed to an AppImage using this docker image
This is the recipe used to produce the AppImage, the inclusion/exclusion list is very confusing but with that setup I've got it working out (wmctrl and xdotool are not necessary, I needed them for my software) , the inclusion of qt5ct and Kvantum and the env var QT_QPA_PLATFORMTHEME: '${QT_QPA_PLATFORMTHEME}'
is to make the app get the configuration from your system and display same colors, themes and fonts that u have configured for Qt.
The exclusion of libfontconfig1, libfreetype6 and libharfbuzz0b were necessary since the AppImage was crashing on ArchLinux but u can play including/excluding till u have everything necessary working
As a side note for some desktop environtments that don't use qt5ct to style qt apps (lxqt) but u still want to apply your kvantum config you can launch your Qt-AppImage using something like QT_STYLE_OVERRIDE=kvantum QT_QPA_PLATFORMTHEME=gtk3 /yourAppImage
Please refer to https://appimage-builder.readthedocs.io/en/latest/examples/pyqt.html
Proceeding to close as this is a question, please reopen if needed.
Docs is very confusing. How I can compile pyqt5 projects/app to appimage. Repo => https://github.com/ankydv/Dice-Simulator
Any help would be highly appreciated.