pyinstaller compile for mac on iwndwos code example
Example: pyinstaller how to use mac
$ pyinstaller --onefile --windowed --icon icon.icns --name testApp main.py
$ pyinstaller --onefile --windowed --icon icon.icns --name testApp main.py