onionshare/setup/onionshare-osx.spec
2014-06-25 14:42:39 -07:00

46 lines
1.6 KiB
Python

# -*- mode: python -*-
a = Analysis(['setup/onionshare-launcher.py'],
pathex=['.'],
hiddenimports=['onionshare', 'onionshare_gui'],
hookspath=None,
runtime_hooks=None)
a.datas += [
('onionshare/strings.json', 'onionshare/strings.json', 'DATA'),
('onionshare/index.html', 'onionshare/index.html', 'DATA'),
('onionshare/404.html', 'onionshare/404.html', 'DATA'),
('onionshare_gui/onionshare-icon.png', 'onionshare_gui/onionshare-icon.png', 'DATA'),
('onionshare_gui/static/jquery-1.11.1.min.js', 'onionshare_gui/static/jquery-1.11.1.min.js', 'DATA'),
('onionshare_gui/static/helpers.js', 'onionshare_gui/static/helpers.js', 'DATA'),
('onionshare_gui/static/onionshare.js', 'onionshare_gui/static/onionshare.js', 'DATA'),
('onionshare_gui/static/style.css', 'onionshare_gui/static/style.css', 'DATA'),
('onionshare_gui/static/loader.gif', 'onionshare_gui/static/loader.gif', 'DATA'),
('onionshare_gui/static/logo.png', 'onionshare_gui/static/logo.png', 'DATA'),
('onionshare_gui/templates/index.html', 'onionshare_gui/templates/index.html', 'DATA'),
]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='onionshare-launcher',
debug=False,
strip=False,
upx=True,
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='onionshare')
app = BUNDLE(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='OnionShare.app',
appname='OnionShare',
icon='setup/onionshare.icns',
version=open('version').read().strip())