2017-01-07 21:17:15 -05:00
|
|
|
# -*- mode: python -*-
|
|
|
|
|
|
|
|
import platform
|
|
|
|
p = platform.system()
|
|
|
|
|
2017-02-21 19:59:14 -05:00
|
|
|
version = open('share/version.txt').read().strip()
|
2017-01-07 21:17:15 -05:00
|
|
|
|
|
|
|
a = Analysis(
|
2017-02-22 16:34:20 -05:00
|
|
|
['scripts/onionshare-pyinstaller'],
|
2017-01-07 21:17:15 -05:00
|
|
|
pathex=['.'],
|
|
|
|
binaries=None,
|
|
|
|
datas=[
|
2017-02-21 19:59:14 -05:00
|
|
|
('../share/license.txt', 'share'),
|
|
|
|
('../share/version.txt', 'share'),
|
2017-02-21 20:07:14 -05:00
|
|
|
('../share/wordlist.txt', 'share'),
|
2017-04-18 18:12:24 -04:00
|
|
|
('../share/torrc_template', 'share'),
|
2018-01-14 04:12:06 -05:00
|
|
|
('../share/torrc_template-obfs4', 'share'),
|
2018-02-15 18:19:53 -05:00
|
|
|
('../share/torrc_template-meek_lite_amazon', 'share'),
|
|
|
|
('../share/torrc_template-meek_lite_azure', 'share'),
|
2017-04-14 21:33:44 -04:00
|
|
|
('../share/torrc_template-windows', 'share'),
|
2017-02-21 19:59:14 -05:00
|
|
|
('../share/images/*', 'share/images'),
|
|
|
|
('../share/locale/*', 'share/locale'),
|
2017-02-21 20:07:14 -05:00
|
|
|
('../share/html/*', 'share/html')
|
2017-01-07 21:17:15 -05:00
|
|
|
],
|
|
|
|
hiddenimports=[],
|
|
|
|
hookspath=[],
|
|
|
|
runtime_hooks=[],
|
|
|
|
win_no_prefer_redirects=False,
|
|
|
|
win_private_assemblies=False,
|
|
|
|
cipher=None)
|
|
|
|
|
|
|
|
pyz = PYZ(
|
|
|
|
a.pure, a.zipped_data,
|
|
|
|
cipher=None)
|
|
|
|
|
|
|
|
exe = EXE(
|
|
|
|
pyz,
|
|
|
|
a.scripts,
|
|
|
|
exclude_binaries=True,
|
2017-02-22 16:34:20 -05:00
|
|
|
name='onionshare-gui',
|
2017-01-07 21:17:15 -05:00
|
|
|
debug=False,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
|
|
|
console=False)
|
|
|
|
|
|
|
|
coll = COLLECT(
|
|
|
|
exe,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
strip=False,
|
|
|
|
upx=True,
|
2017-02-22 17:28:50 -05:00
|
|
|
name='onionshare')
|
2017-01-07 21:17:15 -05:00
|
|
|
|
|
|
|
if p == 'Darwin':
|
|
|
|
app = BUNDLE(
|
|
|
|
coll,
|
|
|
|
name='OnionShare.app',
|
|
|
|
icon='install/onionshare.icns',
|
|
|
|
bundle_identifier='com.micahflee.onionshare',
|
|
|
|
info_plist={
|
|
|
|
'CFBundleShortVersionString': version,
|
|
|
|
'NSHighResolutionCapable': 'True'
|
|
|
|
}
|
|
|
|
)
|