diff --git a/release/rtool.py b/release/rtool.py index f40e8dcb4..4a6d1e160 100755 --- a/release/rtool.py +++ b/release/rtool.py @@ -196,7 +196,7 @@ def make_bdist(): executable += ".exe" # Remove _main suffix from mitmproxy executable - if executable.startswith("mitmproxy_main"): + if "_main" in executable: shutil.move( executable, executable.replace("_main", "")