diff options
author | Micah Lee <micah@micahflee.com> | 2016-02-15 22:16:09 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2016-02-15 22:16:09 -0800 |
commit | d438e25b9b6e1993a8839ef811b2e2533c17bf40 (patch) | |
tree | 4dcaa3171ea66967497c721efd541f91adce43ba /setup.py | |
parent | d1c36fa04f82079def2e7cf36c13f259df8b7df2 (diff) | |
download | onionshare-d438e25b9b6e1993a8839ef811b2e2533c17bf40.tar.gz onionshare-d438e25b9b6e1993a8839ef811b2e2533c17bf40.zip |
Successfully builds a .exe with Python3/Qt5. Switched from pyinstaller to py2exe. (#261)
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -121,3 +121,28 @@ elif system == 'Darwin': }, setup_requires=['py2app', 'flask', 'stem'], ) + +elif system == 'Windows': + import py2exe + setup( + name='OnionShare', + version=version, + description=description, + long_description=long_description, + data_files=[ + ('images', images), + ('locale', locale), + ('html', ['onionshare/index.html', 'onionshare/404.html']), + ('', ['version', 'install/license.txt', 'install/onionshare.ico']), + ('platforms', ['C:\\Python34\\Lib\\site-packages\\PyQt5\\plugins\\platforms\\qwindows.dll']) + ], + windows=['install/windows_scripts/onionshare.py'], + options={ + 'py2exe': { + 'includes': [ + 'PyQt5', 'PyQt5.QtCore', 'PyQt5.QtGui', 'PyQt5.QtWidgets', + 'jinja2', 'jinja2.ext', 'sip'] + } + }, + setup_requires=['py2exe', 'flask', 'stem'], + ) |