mac app from a python script?
Barry
barry at barrys-emacs.org
Tue Jan 25 17:23:43 EST 2022
> On 25 Jan 2022, at 02:56, Dan Stromberg <drsalists at gmail.com> wrote:
>
>
>
>> 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.
You mean it created a .app bundle?
That is the way that macOS makes it trivia to install apps
Just by drag and drop in /Applications.
Barry
> 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