only essential files pyinstaller code example Example: generate spec file using pyinstaller pyi-makespec [--onefile] main.py