It is a memorandum. As we approach the completion of our own application, we will also work on the surrounding area.
It's a little disappointing to use python3 hoge.py from the terminal to start the Gui application, but it's not about packaging, and I investigated if it could be easily placed on the desktop or in the Application folder. I saw it. It's my first time, but can I go with Automator? I came up with it, and refer to the following site. (Thank you.)
[Mac] How to make terminal commands into apps with Automator
If you work with Automater, create an app called hoge.app, and hit it on the desktop, the Gui app of QtforPython will start, but Automater's own twirl gear icon remains in the menu bar, which is Pretty sad.
First plan
start.sh
/usr/local/bin/python3 hoge.py &
exit
I don't know why the gear icon twirl doesn't disappear, so when I investigated further, I arrived at the following site. (Thank you.)
Automator shell script specifies the output destination of standard error
amendment
start.sh
/usr/local/bin/python3 mainwindow.py >& log &
exit
The gear icon has disappeared and it is in the desired state.
Recommended Posts