MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / extract_signed_bundle

Function extract_signed_bundle

scripts/finalize_windows_dist.py:143–157  ·  view source on GitHub ↗
(signed_zip: Path, dest: Path)

Source from the content-addressed store, hash-verified

141
142
143def extract_signed_bundle(signed_zip: Path, dest: Path) -> tuple[Path, Path]:
144 print(f"Extracting {signed_zip.name}...")
145 with zipfile.ZipFile(signed_zip) as zf:
146 zf.extractall(dest)
147 exe = next((p for p in dest.rglob("scenedetect.exe")), None)
148 msi = next((p for p in dest.rglob("PySceneDetect-*.msi")), None)
149 if exe is None:
150 sys.exit(f"scenedetect.exe not found inside {signed_zip}")
151 if msi is None:
152 sys.exit(f"PySceneDetect-*.msi not found inside {signed_zip}")
153 print(f" signed exe: {exe.name} ({exe.stat().st_size:,} bytes)")
154 verify_authenticode(exe)
155 print(f" signed msi: {msi.name} ({msi.stat().st_size:,} bytes)")
156 verify_authenticode(msi)
157 return exe, msi
158
159
160def repack_portable(portable_zip: Path, signed_exe: Path, sevenz: Path) -> None:

Callers 1

mainFunction · 0.85

Calls 1

verify_authenticodeFunction · 0.85

Tested by

no test coverage detected