2014-06-24 17:23:10 -04:00
|
|
|
# -*- mode: python -*-
|
2015-11-20 20:26:12 -05:00
|
|
|
a = Analysis(['onionshare-launcher.py'],
|
2014-06-24 17:23:10 -04:00
|
|
|
hiddenimports=['onionshare', 'onionshare_gui'],
|
2015-12-04 19:56:16 -05:00
|
|
|
excludes=['_tkinter'],
|
2014-06-24 17:23:10 -04:00
|
|
|
hookspath=None,
|
|
|
|
runtime_hooks=None)
|
2014-09-04 16:20:39 -04:00
|
|
|
a.datas += [
|
|
|
|
('images/logo.png', 'images/logo.png', 'DATA'),
|
|
|
|
('images/drop_files.png', 'images/drop_files.png', 'DATA'),
|
|
|
|
('images/server_stopped.png', 'images/server_stopped.png', 'DATA'),
|
|
|
|
('images/server_started.png', 'images/server_started.png', 'DATA'),
|
|
|
|
('images/server_working.png', 'images/server_working.png', 'DATA'),
|
2014-09-22 14:25:20 -04:00
|
|
|
('locale/de.json', 'locale/de.json', 'DATA'),
|
|
|
|
('locale/en.json', 'locale/en.json', 'DATA'),
|
2015-12-05 21:58:34 -05:00
|
|
|
('locale/eo.json', 'locale/eo.json', 'DATA'),
|
2014-09-22 14:25:20 -04:00
|
|
|
('locale/es.json', 'locale/es.json', 'DATA'),
|
|
|
|
('locale/fi.json', 'locale/fi.json', 'DATA'),
|
|
|
|
('locale/fr.json', 'locale/fr.json', 'DATA'),
|
|
|
|
('locale/it.json', 'locale/it.json', 'DATA'),
|
|
|
|
('locale/nl.json', 'locale/nl.json', 'DATA'),
|
|
|
|
('locale/no.json', 'locale/no.json', 'DATA'),
|
|
|
|
('locale/pt.json', 'locale/pt.json', 'DATA'),
|
|
|
|
('locale/ru.json', 'locale/ru.json', 'DATA'),
|
|
|
|
('locale/tr.json', 'locale/tr.json', 'DATA'),
|
2014-09-04 16:20:39 -04:00
|
|
|
]
|
2014-06-24 17:23:10 -04:00
|
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
|
|
|
exclude_binaries=True,
|
|
|
|
name='onionshare.exe',
|
|
|
|
debug=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
2015-05-15 16:03:04 -04:00
|
|
|
icon='install/onionshare.ico',
|
2014-06-24 17:23:10 -04:00
|
|
|
console=False )
|
|
|
|
coll = COLLECT(exe,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
Tree('onionshare', prefix='onionshare'),
|
|
|
|
Tree('onionshare_gui', prefix='onionshare_gui'),
|
2014-06-24 17:42:56 -04:00
|
|
|
[('LICENSE', 'LICENSE', 'DATA')],
|
2014-06-24 17:23:10 -04:00
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
name='onionshare')
|