google / import-mailbox-to-gmail

Import .mbox files into Google Workspace
Apache License 2.0
337 stars 77 forks source link

Generate .EXEs to make life easier for Windows admins #13

Open jay0lee opened 8 years ago

jay0lee commented 8 years ago

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:

  1. 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).
  2. 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.

  1. 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
  2. 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...

jay0lee commented 8 years ago

Oops, step 2.5 would be to install pyinstaller:

c:\python27-32\scripts\pip.exe install pyinstaller c:\python27\scripts\pip.exe install pyinstaller

stilldirty commented 5 years ago

@jay0lee I noticed a typo, just thought I'd let you know.

Annotation 2019-08-12 022511

Btw, your work is phenomenal!