mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Adapt mitmproxy.spec for new cryptography, certifi and new release structure
This commit is contained in:
parent
7e4020213c
commit
2973a79c59
@ -1,24 +1,29 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
|
import os.path
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
a = Analysis(['./mitmproxy'],
|
VENV = "../release/venv"
|
||||||
|
|
||||||
|
a = Analysis(['../mitmproxy/mitmproxy'],
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=None,
|
hookspath=None,
|
||||||
runtime_hooks=None,
|
runtime_hooks=None,
|
||||||
excludes=None,
|
excludes=None,
|
||||||
)
|
)
|
||||||
a.datas = Tree(
|
a.datas = Tree(
|
||||||
"./libmproxy/onboarding/templates",
|
"../mitmproxy/libmproxy/onboarding/templates",
|
||||||
prefix="libmproxy/onboarding/templates"
|
prefix="libmproxy/onboarding/templates"
|
||||||
)
|
)
|
||||||
a.datas += Tree(
|
a.datas += Tree(
|
||||||
"./libmproxy/onboarding/static",
|
"../mitmproxy/libmproxy/onboarding/static",
|
||||||
prefix="libmproxy/onboarding/static"
|
prefix="libmproxy/onboarding/static"
|
||||||
)
|
)
|
||||||
a.datas += Tree(
|
a.datas += Tree(
|
||||||
"../venv.mitmproxy/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/src",
|
os.path.join(
|
||||||
prefix = "cryptography/hazmat/bindings/openssl/src"
|
VENV,
|
||||||
|
"lib/python2.7/site-packages/certifi",
|
||||||
|
),
|
||||||
|
prefix = "certifi"
|
||||||
)
|
)
|
||||||
pyz = PYZ(a.pure)
|
pyz = PYZ(a.pure)
|
||||||
exe = EXE(pyz,
|
exe = EXE(pyz,
|
||||||
|
Loading…
Reference in New Issue
Block a user