2014-12-28 04:39:44 +00:00
|
|
|
# -*- mode: python -*-
|
|
|
|
|
|
|
|
from glob import glob
|
|
|
|
|
2015-08-16 07:55:55 +00:00
|
|
|
VENV = "../release/venv"
|
|
|
|
|
2015-11-05 22:44:37 +00:00
|
|
|
a = Analysis(['../../mitmproxy/mitmdump'],
|
2014-12-28 04:39:44 +00:00
|
|
|
hiddenimports=[],
|
|
|
|
hookspath=None,
|
|
|
|
runtime_hooks=None,
|
|
|
|
excludes=None,
|
|
|
|
)
|
|
|
|
a.datas = Tree(
|
2015-08-16 07:55:55 +00:00
|
|
|
"../mitmproxy/libmproxy/onboarding/templates",
|
2014-12-28 04:39:44 +00:00
|
|
|
prefix="libmproxy/onboarding/templates"
|
|
|
|
)
|
|
|
|
a.datas += Tree(
|
2015-08-16 07:55:55 +00:00
|
|
|
"../mitmproxy/libmproxy/onboarding/static",
|
2014-12-28 04:39:44 +00:00
|
|
|
prefix="libmproxy/onboarding/static"
|
|
|
|
)
|
2015-05-25 01:08:32 +00:00
|
|
|
a.datas += Tree(
|
2015-08-16 07:55:55 +00:00
|
|
|
os.path.join(
|
|
|
|
VENV,
|
|
|
|
"lib/python2.7/site-packages/certifi",
|
|
|
|
),
|
|
|
|
prefix = "certifi"
|
2015-05-25 01:08:32 +00:00
|
|
|
)
|
2015-03-12 02:26:21 +00:00
|
|
|
pyz = PYZ(a.pure)
|
2014-12-28 04:39:44 +00:00
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
|
|
|
a.binaries,
|
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
name='mitmdump',
|
|
|
|
debug=False,
|
|
|
|
strip=None,
|
|
|
|
upx=True,
|
|
|
|
console=True )
|