Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jay0lee opened this issue May 2, 2016 · 2 comments
Open

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

jay0lee opened this issue May 2, 2016 · 2 comments

Comments

@jay0lee
Copy link

jay0lee commented May 2, 2016

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

@jay0lee
Copy link
Author

jay0lee commented May 2, 2016

Oops, step 2.5 would be to install pyinstaller:

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

@devvvlanger
Copy link

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

Annotation 2019-08-12 022511

Btw, your work is phenomenal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants