2025-12-25 upload
This commit is contained in:
1191
venv/Lib/site-packages/mitmproxy_windows/LICENSE
Normal file
1191
venv/Lib/site-packages/mitmproxy_windows/LICENSE
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
2.2.2
|
||||
BIN
venv/Lib/site-packages/mitmproxy_windows/WinDivert.dll
Normal file
BIN
venv/Lib/site-packages/mitmproxy_windows/WinDivert.dll
Normal file
Binary file not shown.
BIN
venv/Lib/site-packages/mitmproxy_windows/WinDivert.lib
Normal file
BIN
venv/Lib/site-packages/mitmproxy_windows/WinDivert.lib
Normal file
Binary file not shown.
BIN
venv/Lib/site-packages/mitmproxy_windows/WinDivert64.sys
Normal file
BIN
venv/Lib/site-packages/mitmproxy_windows/WinDivert64.sys
Normal file
Binary file not shown.
34
venv/Lib/site-packages/mitmproxy_windows/__init__.py
Normal file
34
venv/Lib/site-packages/mitmproxy_windows/__init__.py
Normal file
@@ -0,0 +1,34 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def executable_path() -> Path:
|
||||
"""
|
||||
Return the Path for windows-redirector.exe.
|
||||
|
||||
For shipped wheels this is just the file in the package,
|
||||
for development setups this may invoke cargo to build it.
|
||||
"""
|
||||
here = Path(__file__).parent.absolute()
|
||||
exe = here / "windows-redirector.exe"
|
||||
|
||||
# Development path: This should never happen with precompiled wheels.
|
||||
if not exe.exists() and (here / "../Cargo.toml").exists():
|
||||
import logging
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.warning("Development mode: Compiling windows-redirector.exe...")
|
||||
|
||||
# Build Redirector
|
||||
subprocess.run(["cargo", "build"], cwd=here.parent / "redirector", check=True)
|
||||
# Copy WinDivert to target/debug/
|
||||
target_debug = here.parent.parent / "target/debug"
|
||||
for f in ["WinDivert.dll", "WinDivert.lib", "WinDivert64.sys"]:
|
||||
if not (target_debug / f).exists():
|
||||
shutil.copy(here / f, target_debug / f)
|
||||
|
||||
logger.warning("Development mode: Using target/debug/windows-redirector.exe...")
|
||||
exe = target_debug / "windows-redirector.exe"
|
||||
|
||||
return exe
|
||||
BIN
venv/Lib/site-packages/mitmproxy_windows/windows-redirector.exe
Normal file
BIN
venv/Lib/site-packages/mitmproxy_windows/windows-redirector.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user