add new pyinstaller spec files
This commit is contained in:
parent
43ed82062f
commit
0b06b02c92
15
MANIFEST.in
15
MANIFEST.in
|
@ -1,9 +1,8 @@
|
|||
include mitmproxy mitmdump
|
||||
include LICENSE CHANGELOG CONTRIBUTORS README.rst
|
||||
recursive-include examples *
|
||||
recursive-include doc *
|
||||
recursive-include test *
|
||||
recursive-include libmproxy *
|
||||
include mitmproxy mitmdump mitmweb
|
||||
include LICENSE CHANGELOG CONTRIBUTORS CONTRIBUTING.md README.rst
|
||||
graft examples
|
||||
graft doc
|
||||
graft test
|
||||
prune test/tools
|
||||
graft libmproxy
|
||||
recursive-exclude * *.pyc *.pyo *.swo *.swp
|
||||
recursive-exclude netlib *
|
||||
recursive-exclude libpathod *
|
||||
|
|
|
@ -1,31 +1,15 @@
|
|||
# -*- mode: python -*-
|
||||
|
||||
from glob import glob
|
||||
from PyInstaller.utils.hooks import collect_data_files
|
||||
|
||||
VENV = "../release/venv"
|
||||
|
||||
a = Analysis(['../../mitmproxy/mitmdump'],
|
||||
a = Analysis(['../mitmdump'],
|
||||
binaries=None,
|
||||
datas=collect_data_files("libmproxy.onboarding"),
|
||||
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)
|
||||
excludes=None)
|
||||
pyz = PYZ(a.pure, a.zipped_data)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
|
|
|
@ -1,31 +1,15 @@
|
|||
# -*- mode: python -*-
|
||||
import os.path
|
||||
from glob import glob
|
||||
|
||||
VENV = "../release/venv"
|
||||
from PyInstaller.utils.hooks import collect_data_files
|
||||
|
||||
a = Analysis(['../../mitmproxy/mitmproxy'],
|
||||
a = Analysis(['../mitmproxy'],
|
||||
binaries=None,
|
||||
datas=collect_data_files("libmproxy.onboarding"),
|
||||
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)
|
||||
excludes=None)
|
||||
pyz = PYZ(a.pure, a.zipped_data)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
# -*- mode: python -*-
|
||||
|
||||
from PyInstaller.utils.hooks import collect_data_files
|
||||
|
||||
a = Analysis(['../mitmweb'],
|
||||
binaries=None,
|
||||
datas=collect_data_files("libmproxy"),
|
||||
hiddenimports=[],
|
||||
hookspath=None,
|
||||
runtime_hooks=None,
|
||||
excludes=None)
|
||||
pyz = PYZ(a.pure, a.zipped_data)
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
name='mitmweb',
|
||||
debug=False,
|
||||
strip=None,
|
||||
upx=True,
|
||||
console=True )
|
|
@ -1,46 +0,0 @@
|
|||
# -*- mode: python -*-
|
||||
|
||||
from glob import glob
|
||||
|
||||
VENV = "../release/venv"
|
||||
|
||||
a = Analysis(['../mitmproxy/mitmweb'],
|
||||
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(
|
||||
"../mitmproxy/libmproxy/web/templates",
|
||||
prefix="libmproxy/web/templates"
|
||||
)
|
||||
a.datas += Tree(
|
||||
"../mitmproxy/libmproxy/web/static",
|
||||
prefix="libmproxy/web/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='mitmweb',
|
||||
debug=False,
|
||||
strip=None,
|
||||
upx=True,
|
||||
console=True )
|
Loading…
Reference in New Issue