mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 23:39:31 -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'
|
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:
|
else:
|
||||||
args['packages'] = ['onionshare', 'onionshare_gui']
|
args['packages'] = ['onionshare', 'onionshare_gui']
|
||||||
args['include_package_data'] = True
|
args['include_package_data'] = True
|
||||||
|
Loading…
Reference in New Issue
Block a user