Record verified Windows desktop latency release
This commit is contained in:
1 parent
830292b9b6
commit
38665f9af5
2 files changed
+48
-1
No files matched your search
@@ -7,6 +7,7 @@ import json
|
||||
import lzma
|
||||
import os
|
||||
from pathlib import Path, PurePosixPath
|
||||
import re
|
||||
import shutil
|
||||
import stat
|
||||
import struct
|
||||
@@ -162,13 +163,26 @@ def prepare_formats(output):
|
||||
stdin=subprocess.DEVNULL,
|
||||
check=True,
|
||||
)
|
||||
finish_formats(output)
|
||||
|
||||
|
||||
def finish_formats(output):
|
||||
formats = output / "formats"
|
||||
for name in FORMAT_MODES:
|
||||
directory = output / "formats" / name
|
||||
directory = formats / name
|
||||
for filename in ("latex.tfx", "texsys.aux"):
|
||||
path = directory / filename
|
||||
if not path.is_file() or not path.stat().st_size:
|
||||
raise ValueError(f"Missing generated {name} format input: {filename}")
|
||||
(directory / "latex.log").unlink(missing_ok=True)
|
||||
# INITEX records its generated files in a private ledger. Only the image
|
||||
# and its captured scratch input travel with the release.
|
||||
for path in formats.iterdir():
|
||||
if path.name in FORMAT_MODES:
|
||||
continue
|
||||
if not path.is_file() or not re.fullmatch(r"[a-f0-9]{64}\.(json|lock)", path.name):
|
||||
raise ValueError(f"Unexpected item in generated formats: {path.name}")
|
||||
path.unlink()
|
||||
|
||||
|
||||
def stage(args, output):
|
||||
|
||||
Reference in new issue
Block a user