/path/to/virtualenv/python pyinstaller.py --onefile /path/to/your/program/main.py --icon=/path/to/your/icon.icoThis will create the exe in the folder:
git log -n 1 > version.txtfrom the git repository folder, and copy that version.txt into the zip alongside the exe file.