#!/usr/bin/env python3 """Validate and archive the two Windows CLAP deliverables; no Linux output.""" import hashlib from pathlib import Path import struct import zipfile root = Path(__file__).resolve().parents[1] folder = root / "dist/x86_64-pc-windows-gnu" names = [ "Motif Storyboard.clap", "Resonance Compressor.clap", "LICENSE", "motif-storyboard-setup.md", "resonance-compressor-setup.md", "Roboto-OFL.txt", "resonance-editor.png", ] for name in names[:2]: data = (folder / name).read_bytes() if data[:2] != b"MZ": raise SystemExit(f"{name}: expected Windows PE binary") offset = struct.unpack_from("