Windows and Linux: Build the standalone binaries generated with PyInstaller
()
| 135 | |
| 136 | @cli.command() |
| 137 | def 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() |
nothing calls this directly
no test coverage detected
searching dependent graphs…