mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-11 16:54:45 -05:00
b2c310f2e0
Currently, meek/meek_lite is one of the few, if not only, mature pluggable transport that works in some heavily cenosored areas, for example, China. Therefore, this can be a nice feature to have.
66 lines
1.5 KiB
Python
66 lines
1.5 KiB
Python
# -*- mode: python -*-
|
|
|
|
import platform
|
|
p = platform.system()
|
|
|
|
version = open('share/version.txt').read().strip()
|
|
|
|
a = Analysis(
|
|
['scripts/onionshare-pyinstaller'],
|
|
pathex=['.'],
|
|
binaries=None,
|
|
datas=[
|
|
('../share/license.txt', 'share'),
|
|
('../share/version.txt', 'share'),
|
|
('../share/wordlist.txt', 'share'),
|
|
('../share/torrc_template', 'share'),
|
|
('../share/torrc_template-obfs4', 'share'),
|
|
('../share/torrc_template-meek_lite_amazon', 'share'),
|
|
('../share/torrc_template-meek_lite_azure', 'share'),
|
|
('../share/torrc_template-windows', 'share'),
|
|
('../share/images/*', 'share/images'),
|
|
('../share/locale/*', 'share/locale'),
|
|
('../share/html/*', 'share/html')
|
|
],
|
|
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,
|
|
name='onionshare-gui',
|
|
debug=False,
|
|
strip=False,
|
|
upx=True,
|
|
console=False)
|
|
|
|
coll = COLLECT(
|
|
exe,
|
|
a.binaries,
|
|
a.zipfiles,
|
|
a.datas,
|
|
strip=False,
|
|
upx=True,
|
|
name='onionshare')
|
|
|
|
if p == 'Darwin':
|
|
app = BUNDLE(
|
|
coll,
|
|
name='OnionShare.app',
|
|
icon='install/onionshare.icns',
|
|
bundle_identifier='com.micahflee.onionshare',
|
|
info_plist={
|
|
'CFBundleShortVersionString': version,
|
|
'NSHighResolutionCapable': 'True'
|
|
}
|
|
)
|