fix: leave LUT menu tracking before opening file and browser panels

这个提交包含在:
mac 于 2026-11-01 11:29:59 +08:00 提交
1 父节点 cc7f9c952a
当前提交 d64430cd66
5 个文件已更改
+37 -10

没有与搜索条件相匹配的文件

+16 -1
查看文件
@@ -1,7 +1,11 @@
#!/usr/bin/env python3
"""Create synthetic large LUTs for formal FCP responsiveness acceptance only."""
from pathlib import Path
import hashlib,json
import hashlib,json,argparse,os
parser=argparse.ArgumentParser(description=__doc__)
parser.add_argument('--cancel-pack',action='store_true',help='Also create 192 hard-linked LUTs to allow interactive cancellation during preflight')
args=parser.parse_args()
root=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/LUT后台加载验收')
root.mkdir(parents=True,exist_ok=True)
@@ -24,3 +28,14 @@ for i in range(24):
entries.append({'path':str(path),'sha256':hashlib.sha256(path.read_bytes()).hexdigest()})
manifest.write_text(json.dumps({'authoredSyntheticFixture':True,'cubeDimension':65,'files':entries},ensure_ascii=False,indent=2)+'\n')
print(json.dumps({'folder':str(root),'files':len(entries)},ensure_ascii=False))
if args.cancel_pack:
cancel=root.with_name('LUT后台取消验收');cancel.mkdir(exist_ok=True)
if any(cancel.iterdir()) and not (cancel/'manifest.json').exists():
raise RuntimeError('Refusing to replace an unrecognized cancellation fixture')
files=[]
for i in range(192):
source=Path(entries[i%24]['path']);target=cancel/f'取消压力-{i:03d}.cube'
if not target.exists():os.link(source,target)
files.append({'path':str(target),'sourceSHA256':entries[i%24]['sha256']})
(cancel/'manifest.json').write_text(json.dumps({'authoredSyntheticFixture':True,'hardLinkedFiles':files},ensure_ascii=False,indent=2)+'\n')
print(json.dumps({'folder':str(cancel),'files':len(files)},ensure_ascii=False))