onionshare/setup/onionshare-osx.spec

43 lines
1.3 KiB
RPMSpec
Raw Normal View History

2014-06-25 17:42:39 -04:00
# -*- 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/logo.png', 'onionshare_gui/logo.png', 'DATA'),
('onionshare_gui/drop_files.png', 'onionshare_gui/drop_files.png', 'DATA'),
2014-08-27 19:11:43 -04:00
('onionshare_gui/server_stopped.png', 'onionshare_gui/server_stopped.png', 'DATA'),
('onionshare_gui/server_started.png', 'onionshare_gui/server_started.png', 'DATA'),
('onionshare_gui/server_working.png', 'onionshare_gui/server_working.png', 'DATA'),
2014-06-25 17:42:39 -04:00
]
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())