mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 15:29:38 -05:00
removing windows code from setup.py, because building for windows uses pyinstaller now (#35)
This commit is contained in:
parent
cf7d04099e
commit
27e269f646
19
setup.py
19
setup.py
@ -38,25 +38,6 @@ if platform.system() == 'Darwin':
|
||||
}
|
||||
args['setup_requires'] = 'py2app'
|
||||
|
||||
elif platform.system() == 'Windows':
|
||||
import py2exe
|
||||
args['windows'] = [{'script':'setup/onionshare-launcher.py'}]
|
||||
args['data_files'] = [
|
||||
('', ['LICENSE', 'README.md', 'version']),
|
||||
('onionshare', ['onionshare/index.html', 'onionshare/404.html', 'onionshare/strings.json']),
|
||||
('onionshare_gui', ['onionshare_gui/onionshare-icon.png']),
|
||||
('onionshare_gui/templates', glob('onionshare_gui/templates/*')),
|
||||
('onionshare_gui/static', glob('onionshare_gui/static/*'))
|
||||
]
|
||||
args['options'] = {
|
||||
'py2exe': {
|
||||
'includes': ['sip', 'PyQt4', 'PyQt4.QtNetwork'],
|
||||
'dll_excludes': ['MSVCP90.dll'],
|
||||
'packages': ['jinja2', 'flask', 'stem'],
|
||||
'skip_archive': True
|
||||
}
|
||||
}
|
||||
|
||||
else:
|
||||
args['packages'] = ['onionshare', 'onionshare_gui']
|
||||
args['include_package_data'] = True
|
||||
|
Loading…
Reference in New Issue
Block a user