Closed debilin closed 11 months ago
PyInstaller builds are not tested (or supported), and are more of a bonus than a core feature.
My instinct is that this behaviour is due to a missing import for pystray
on Linux that PyInstaller is not detecting. It might be worth trying the same build configuration that is know to work for the release macOS and Windows builds – see the GitHub action file. Does this make any difference?
If not, and you can track down the missing dependency, you should be able to add this in the same way the timeago one is included (i.e., --hidden-import missing.package.name
).
I finally found the reason. I ran pyinstaller
inside docker and so pystray
didn't get included because there is no X server and I got a Bad display name
error which I couldn't see because the log was collapsed during the docker build
run. When I build inside a full VM in VirtualBox, pyinstaller
generated an single executable that work just fine with menu and all. Thanks.
The proxy runs fine when I installed it directly using
pip
. But when I build it withpyinstaller
I only see the icon in the taskbar but no menu when I clicked on it. I am on Linux Mint 21 Cinnamon. The icon also appear discolored. I build it with the commandCan you give me some pointer?