import hashlib import io import json from pathlib import Path import struct import subprocess import tarfile import tempfile import unittest from unittest.mock import patch import zipfile from scripts import fetch_ffprobe as fetcher WINDOWS = "x86_64-pc-windows-gnu" LINUX = "x86_64-unknown-linux-gnu" def pe(): header = bytearray(90) header[:2] = b"MZ" struct.pack_into("