mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
43 lines
1.3 KiB
Python
43 lines
1.3 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'),
|
|
('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'),
|
|
]
|
|
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())
|