Skip to content

Commit

Permalink
Only for mitmdump
Browse files Browse the repository at this point in the history
  • Loading branch information
Prinzhorn committed Apr 25, 2024
1 parent 2d76487 commit 2d2a668
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@
([#6810](https://github.com/mitmproxy/mitmproxy/pull/6810), @mhils)
* Fix a bug where mitmproxy would not exit when `-n` is passed.
([#6819](https://github.com/mitmproxy/mitmproxy/pull/6819), @mhils)
* Set the `unbuffered` (stdout/stderr) flag for the `mitmdump` PyInstaller build.


## 17 April 2024: mitmproxy 10.3.0
Expand Down
7 changes: 6 additions & 1 deletion release/specs/standalone.spec
Expand Up @@ -7,6 +7,11 @@ for tool in ["mitmproxy", "mitmdump", "mitmweb"]:
if tool != "mitmproxy":
excludes.append("mitmproxy.tools.console")

options = []
if tool == "mitmdump":
# https://github.com/mitmproxy/mitmproxy/issues/6757
options.append(("unbuffered", None, "OPTION"))

a = Analysis(
[tool],
excludes=excludes,
Expand All @@ -19,7 +24,7 @@ for tool in ["mitmproxy", "mitmdump", "mitmweb"]:
a.binaries,
a.zipfiles,
a.datas,
[("u", None, "OPTION")],
options,
name=tool,
console=True,
icon="icon.ico",
Expand Down

0 comments on commit 2d2a668

Please sign in to comment.