pyinstaller compile for mac 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