Generate .EXEs to make life easier for Windows admins
jay0lee opened this issue · 2 comments
PyInstaller makes it pretty simple to generate single-file .EXEs (32 and 64 bit) for Windows users. This is much easier than walking them through installing Python, pip-installing dependencies and then running the script.
Basic steps to setup a Windows buld machine would be:
- On x64 machine, install Python 2.7.11 for both x64 and x32. Our .bat file expects the paths c:\python27 and c:\python27-32 respectively (that can be changed as needed).
- Run
c:\python27\scripts\pip install google-api-python-client
c:\python27-32\sripts\pip install google-api-python-client
to install the API Client, oauth2client and other necessary libaries.
3. Install 7-zip to handle .zip of .exe and license so it can be added to a release on GitHub. http://www.7-zip.org/download.html
4. Now from the import-mailbox-to-gmail source folder it should be possible to run:
build.bat 1.3
to compile the .EXEs and zip them so that they are ready for release.
Pull requests inbound...
Oops, step 2.5 would be to install pyinstaller:
c:\python27-32\scripts\pip.exe install pyinstaller
c:\python27\scripts\pip.exe install pyinstaller