I have already tried
pyinstaller --onefile main.py
And later, after adding image path to datas[] in main.spec
pyinstaller ma