MCPcopy
hub / github.com/mitmproxy/mitmproxy / standalone_binaries

Function standalone_binaries

release/build.py:137–150  ·  view source on GitHub ↗

Windows and Linux: Build the standalone binaries generated with PyInstaller

()

Source from the content-addressed store, hash-verified

135
136@cli.command()
137def standalone_binaries():
138 """Windows and Linux: Build the standalone binaries generated with PyInstaller"""
139 with archive(DIST_DIR / f"mitmproxy-{version()}-{operating_system()}") as f:
140 _pyinstaller("standalone.spec")
141
142 _test_binaries(TEMP_DIR / "pyinstaller/out")
143
144 for tool in ["mitmproxy", "mitmdump", "mitmweb"]:
145 executable = TEMP_DIR / "pyinstaller/out" / tool
146 if platform.system() == "Windows":
147 executable = executable.with_suffix(".exe")
148
149 f.add(str(executable), str(executable.name))
150 print(f"Packed {f.name!r}.")
151
152
153@cli.command()

Callers

nothing calls this directly

Calls 6

archiveFunction · 0.85
operating_systemFunction · 0.85
_pyinstallerFunction · 0.85
_test_binariesFunction · 0.85
versionFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…