aboutsummaryrefslogtreecommitdiffstats
path: root/release/mitmproxy.spec
blob: a5a75d7569c4bf04b4a6cf0932a9f1ff44501d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: python -*-
import os.path
from glob import glob

VENV = "../release/venv"

a = Analysis(['../mitmproxy/mitmproxy'],
             hiddenimports=[],
             hookspath=None,
             runtime_hooks=None,
             excludes=None,
          )
a.datas = Tree(
  "../mitmproxy/libmproxy/onboarding/templates",
  prefix="libmproxy/onboarding/templates"
)
a.datas += Tree(
  "../mitmproxy/libmproxy/onboarding/static",
  prefix="libmproxy/onboarding/static"
)
a.datas += Tree(
    os.path.join(
        VENV,
        "lib/python2.7/site-packages/certifi",
    ),
    prefix = "certifi"
)
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          name='mitmproxy',
          debug=False,
          strip=None,
          upx=True,
          console=True )