Successfully builds a .exe with Python3/Qt5. Switched from pyinstaller to py2exe. (#261)

This commit is contained in:
Micah Lee 2016-02-15 22:16:09 -08:00
parent d1c36fa04f
commit d438e25b9b
6 changed files with 91 additions and 173 deletions

View file

@ -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'],
)