fix: expose scrolling inspector controls to host accessibility and constrain drawing

这个提交包含在:
mac 于 2026-10-31 01:29:57 +08:00 提交
1 父节点 2330eb737e
当前提交 ce7e0a3371
8 个文件已更改
+597 -6

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

+27
查看文件
@@ -0,0 +1,27 @@
#!/usr/bin/env python3
"""Generate a synthetic QA source and a separate FCPXML acceptance timeline."""
from pathlib import Path
import struct,zlib,xml.etree.ElementTree as E
out=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa');out.mkdir(parents=True,exist_ok=True)
w,h=1920,1080
colors=[(190,110,85),(125,80,65),(242,205,170),(210,180,130),(40,130,190),(60,170,90),(240,55,45),(35,45,85)]
pixels=bytearray()
for y in range(h):
pixels.append(0)
for x in range(w):
t=x/(w-1)
if y<h//4:rgb=(round(t*255),)*3
elif y<h//2:rgb=(round(t*255),round((1-t)*255),80)
elif y<h*3//4:rgb=colors[min(len(colors)-1,x*len(colors)//w)]
else:rgb=(round(t*255),round(t*t*255),round(t**.5*255))
pixels.extend((*rgb,255))
def chunk(k,b):return struct.pack('>I',len(b))+k+b+struct.pack('>I',zlib.crc32(k+b)&0xffffffff)
png=b'\x89PNG\r\n\x1a\n'+chunk(b'IHDR',struct.pack('>IIBBBBB',w,h,8,6,0,0,0))+chunk(b'sRGB',b'\x00')+chunk(b'IDAT',zlib.compress(pixels,7))+chunk(b'IEND',b'')
media=out/'大鱼调色验收图.png';media.write_bytes(png)
root=E.Element('fcpxml',version='1.12');res=E.SubElement(root,'resources');E.SubElement(res,'format',id='f1',width=str(w),height=str(h),frameDuration='1/25s',colorSpace='1-1-1 (Rec. 709)');E.SubElement(res,'format',id='f2',width=str(w),height=str(h),name='FFVideoFormatRateUndefined');a=E.SubElement(res,'asset',id='a1',name='大鱼调色验收图',start='0s',duration='0s',format='f2',hasVideo='1',videoSources='1');E.SubElement(a,'media-rep',kind='original-media',src=media.as_uri())
template=Path('/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef');E.SubElement(res,'effect',id='fx',name='大鱼调色',uid='~/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef',src=template.as_uri())
lib=E.SubElement(root,'library');event=E.SubElement(lib,'event',name='大鱼调色_独立验收');project=E.SubElement(event,'project',name='大鱼调色_正式版验收');seq=E.SubElement(project,'sequence',format='f1',tcStart='0s',tcFormat='NDF',audioLayout='stereo',audioRate='48k',duration='4s');spine=E.SubElement(seq,'spine')
for i,name in enumerate(['原图','大鱼调色']):
v=E.SubElement(spine,'video',ref='a1',name=name,offset=f'{i*2}s',start='0s',duration='2s')
if i:E.SubElement(v,'filter-video',ref='fx',name='大鱼调色',enabled='1')
xml=out/'大鱼调色_正式版验收.fcpxml';E.indent(root);xml.write_text('<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE fcpxml>\n'+E.tostring(root,encoding='unicode')+'\n');print(xml)
+10 -1
查看文件
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Single-install Release delivery; keeps a product lock through host acceptance."""
from pathlib import Path
import subprocess,os,json,shutil,plistlib,uuid,sys,datetime,hashlib
import subprocess,os,json,shutil,plistlib,uuid,sys,datetime,hashlib,time
ROOT=Path(__file__).resolve().parent.parent
CACHE=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color')
LOCK=Path('/Users/mac/.codex/app-delivery-locks/com.dayu.color.lock')
@@ -36,6 +36,7 @@ def main():
try:
ids=run('security','find-identity','-v','-p','codesigning')
if IDENTITY not in ids:raise RuntimeError('有效发布证书或私钥不可用')
if any(l.endswith('/Contents/MacOS/大鱼调色') for l in run('ps','-axo','comm=').splitlines()):raise RuntimeError('请先正常退出当前大鱼调色窗口')
print('Building final Release',flush=True)
run('xcodebuild','-project','大鱼调色.xcodeproj','-scheme','Wrapper Application','-configuration','Release','-derivedDataPath',str(CACHE/'DerivedData'),'build',log=CACHE/'release-build.log')
b=APP/'Contents/Resources/FCP Templates/大鱼调色.moef';b.parent.mkdir(parents=True,exist_ok=True);shutil.copy2(ROOT/'template/大鱼调色.moef',b)
@@ -60,6 +61,14 @@ def main():
os.replace(stage,DEST);stage=None
try:
identity(DEST,'com.dayu.color');run('codesign','--verify','--deep','--strict',str(DEST));run('xcrun','stapler','validate',str(DEST));gate=run('spctl','--assess','--type','execute','--verbose=2',str(DEST))
installedTest=json.loads(run(str(DEST/PLUGIN/'Contents/MacOS/大鱼调色 XPC Service'),'--self-test'))
if not installedTest.get('pass'):raise RuntimeError('正式安装版原生集成自检失败')
(ROOT/'verification/InstalledSelfTest.json').write_text(json.dumps(installedTest,ensure_ascii=False,indent=2)+'\n')
run('open',str(DEST))
for attempt in range(20):
if str(DEST/'Contents/MacOS/大鱼调色') in run('ps','-axo','comm=').splitlines():break
time.sleep(.25)
else:raise RuntimeError('未从正式安装路径启动')
except Exception:
failed=DEST.parent/('.dayu-color-failed-'+uuid.uuid4().hex+'.app');os.replace(DEST,failed)
if old:os.replace(old,DEST);old=None