"""Stage the already-built Windows x64 Release with its redistributable runtime.""" import argparse import hashlib import json import os import shutil import struct import subprocess import zipfile from pathlib import Path ROOT = Path(__file__).resolve().parent.parent NAME = 'CmvrControlStation-Windows-x64-Release' def pe_imports(file): data = file.read_bytes() if data[:2] != b'MZ': raise ValueError(f'Not a Windows executable: {file}') pe = struct.unpack_from('