mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-04 07:25:10 -04:00
made pyinstaller work for OSX (#43)
This commit is contained in:
parent
8011472dee
commit
9db3ca59c8
6 changed files with 64 additions and 44 deletions
19
setup.py
19
setup.py
|
@ -19,25 +19,6 @@ def file_list(path):
|
|||
version = open('version').read().strip()
|
||||
args = {}
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
args['data_files'] = ['LICENSE', 'README.md', 'version']
|
||||
args['app'] = ['setup/onionshare-launcher.py']
|
||||
args['options'] = {
|
||||
'py2app': {
|
||||
'argv_emulation': True,
|
||||
'packages': ['flask', 'stem', 'jinja2', 'onionshare_gui', 'onionshare'],
|
||||
'includes': ['PyQt4'],
|
||||
'excludes': ['PyQt4.QtDesigner', 'PyQt4.QtOpenGL', 'PyQt4.QtScript', 'PyQt4.QtSql', 'PyQt4.QtTest', 'PyQt4.QtXml', 'PyQt4.phonon'],
|
||||
'iconfile': 'setup/onionshare.icns',
|
||||
'qt_plugins': 'imageformats',
|
||||
'site_packages': True,
|
||||
'plist': {
|
||||
'CFBundleName': 'OnionShare',
|
||||
}
|
||||
}
|
||||
}
|
||||
args['setup_requires'] = 'py2app'
|
||||
|
||||
else:
|
||||
args['packages'] = ['onionshare', 'onionshare_gui']
|
||||
args['include_package_data'] = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue