mac app from a python script?
Dan Stromberg
drsalists at gmail.com
Mon Jan 24 21:54:06 EST 2022
On Sun, Jan 23, 2022 at 1:37 PM Barry <barry at barrys-emacs.org> wrote:
>
> I do not have experience with great, but you might try pyinstaller.
> I use it to make a PyQt Mac app successfully.
>
> It’s command line plus setup script.
>
I wound up doing:
1) pyinstaller, as normal, but this created a broken all-encompassing
binary of my script. At least it gave me the metadata I needed though.
2) overwriting /Applications/hcm.app/Contents/MacOS/hcm with a proper
#!/usr/bin/env python3 script
This mostly works. It's a kinda ugly hack, and it doesn't stay in the dock
after starting it.
There should be a way of installing a python GUI in the macOS Applications
list, without having to bundle everything up into a big binary.
More information about the Python-list
mailing list