Open eeintech opened 1 year ago
I've tried it and unfortunately PyInstaller does not support icons on Linux:
WARNING: Ignoring icon; supported only on Windows and macOS!
What a disappointment :disappointed:
^5.8.0
) dependencies listkintree_build = 'kintree.build_app:build'
build_app.py
in kintree
folder with the following content:
import os
def build(): os.system('flet pack kintree_gui.py --icon logo.png')
if name == 'main': build()
Won't make it into 1.0.0
as there is no support for this feature in Flet yet.
Unfortunately Flet does not support it at the moment during run-time:
Therefore building using Poetry and distributing Ki-nTree via PyPI will show the default application icon, examples:
![image](https://user-images.githubusercontent.com/4020546/220976396-3bd4b33a-10b9-42a8-a0da-2b753e6f9249.png)
The only way to add an icon is to require the user to build the app locally and package it with the
flet pack
command and--icon
option: https://flet.dev/docs/guides/python/packaging-desktop-app#customizing-package-icon It might be added to Poetry'spyproject.toml
file with something like:This still feels very like a lot of work for just getting the proper icon!