pyinstaller with spec code example
Example 1: generate spec file using pyinstaller
pyi-makespec [--onefile] main.py
Example 2: run spec file using pyinstaller
>> pyinstaller --onefile main.spec
pyi-makespec [--onefile] main.py
>> pyinstaller --onefile main.spec