Trying to get icon.png to work with single-file executable.

14 views
Skip to first unread message

Eric Mesa

unread,
Apr 12, 2020, 5:19:27 PM4/12/20
to PyInstaller
The Pyinstaller command I'm running:


I've got this Qt GUI that on line 18 sets the top-left icon of the program on the window decorations: https://github.com/djotaku/ELDonationTracker/blob/4.4/eldonationtracker/design.py . I'm trying to make that icon.png available with a one-file build in pyinstaller. Again, this isn't the icon you click on (there's a pyinstaller command for that) this is just making that file available for the Qt code to find it and set the top-left window icon. Does anyone know what I need to do with the --add-binary command (or other command) to get this to work? Thanks! PS - it works if I do a folder-build instead of a one-file build.
Reply all
Reply to author
Forward
0 new messages