比较提交

..
共修改 29 个文件,包含 1005 行新增和 137 行删除

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

+1 -1
查看文件
@@ -144,7 +144,7 @@ def main():
appearance=dict(title="大鱼调色", subtitle="适用于 Final Cut Pro 与 Motion 的原生调色效果",
badgeImage=str(ROOT / "design/dayu-color-app-icon-v1.png"), authorContact="https://dayu.media"),
pages=dict(welcome="安装大鱼调色 " + version + ",包含原生 FxPlug 调色插件和 Final Cut Pro 效果入口。",
readme="系统要求:macOS 14.6 或更高版本。本发行构建适用于 Apple Silicon Mac。\n\n安装内容:\n/Library/Plug-Ins/FxPlug/大鱼调色.app\n登录用户“影片/Motion Templates/Effects/大鱼调色”中的效果模板与预览图。\n\n重新打开 Final Cut Pro 后,在“效果 → 大鱼调色”中应用;Motion 中可选择原生滤镜。\n本安装包不包含用户自选 LUT、预设或媒体文件。\n\n公测诊断默认开启,可在主 APP 关闭。仅发送版本、系统环境、阶段耗时、资源使用与本产品崩溃/卡顿调用栈摘要到 dayu.media;不发送素材、预设或账号,保留30天。在线 LUT 在主 APP 启动时自动识别本机已绑定的大鱼账号;未绑定时可微信登录。有效会员或购买文章 14421 / 15792 可使用全部已发布在线 LUT。插件内点击“预览当前帧”时,单独发送当前帧缩略图到 dayu.media 用于在线效果预览;服务器内存处理,不保存预览帧,不上传视频文件。主 APP 启动时检查更新,新版由用户确认安装。",
readme="系统要求:macOS 14.6 或更高版本。本发行构建适用于 Apple Silicon Mac。\n\n安装内容:\n/Library/Plug-Ins/FxPlug/大鱼调色.app\n登录用户“影片/Motion Templates/Effects/大鱼调色”中的效果模板与预览图。\n\n重新打开 Final Cut Pro 后,在“效果 → 大鱼调色”中应用;Motion 中可选择原生滤镜。\n本安装包不包含用户自选 LUT、预设或媒体文件。\n\n公测诊断默认开启,可在主 APP 关闭。仅发送版本、系统环境、阶段耗时、资源使用与本产品崩溃/卡顿调用栈摘要到 dayu.media;不发送素材、预设或账号,保留30天。在线 LUT 在主 APP 启动时自动识别本机已绑定的大鱼账号;未绑定时可微信登录。有效会员或购买文章 14421 / 15792 可使用全部已发布在线 LUT。打开插件 LUT 浏览器时,自动发送当前缓存帧缩略图到 dayu.media 并批量生成在线预览;服务器内存处理,不保存预览帧,不上传视频文件。在线与本地分类统一显示,点击在线 LUT 后安装到本地对应分类并应用,可供离线使用。主 APP 启动时检查更新,新版由用户确认安装。",
license="", conclusion="大鱼调色已安装。主 APP 自动注册插件,成功后保持运行。关闭窗口仍在后台收集已开启的诊断;菜单栏可重新打开或退出。请重开宿主并实际检查效果。"))
manifest_path = CACHE / "dayu-color-package-manifest.json"
manifest_path.write_text(json.dumps(manifest, ensure_ascii=False, indent=2) + "\n")
+11
查看文件
@@ -0,0 +1,11 @@
# 大鱼调色 1.22.1(133)
- 打开 LUT 浏览器时自动使用当前缓存帧,批量加载当前页在线 LUT 的效果预览;保留“更新预览”按钮。首次没有缓存帧时自动等待首帧,播放过程中不持续上传。
- 在线与本地合并到同一分类栏。“在线 LUT”总分类包含在线子分类;本地文件夹支持二级及更深层级,可展开或折叠。
- 点击在线 LUT 后,校验下载并安装到本地“已安装 LUT / 对应分类”,随后应用到当前风格层,供离线使用。重复安装相同文件会复用已有副本。
- 后台预载失败不影响本地 LUT 与文件夹操作;在线预览并发限制为 2,切换分类与滚动时复用已生成图像。
适用于 Apple Silicon Mac,macOS 14.6 或更高版本;Final Cut Pro / Motion 原生 FxPlug 4。
打开浏览器时发送当前缓存帧的 PNG 缩略图到 dayu.media 用于在线预览,最长边 640;服务器内存处理,不保存帧、不上传视频文件。在线权限规则保持不变。
验证:68 项在线与分类合约、40 项本地浏览器回归;正式 APP、宿主与安装包结果见该版本验证记录。
+16 -2
查看文件
@@ -1,6 +1,18 @@
# 2026-11-11 本地调试验收:1.22.1(133)
当前固定路径 `/Library/Plug-Ins/FxPlug/大鱼调色.app` 是用户明确授权的 **未公证 Debug 测试版**;用户已确认“我已测试可行”。实际编译节点 `7f833757da243f2a4610c23c36ec278b44c80ad4`,远程 `https://dayu.media/git/dayu/dayu-color.git` 的 main 历史可恢复。原 131 公证版保留于 `/Library/Plug-Ins/FxPlug/.dayu-color-formal-before-debug-8c17779060fb4b7a9b346754e5792616.app`,勿在正式版验收前删除。
恢复本轮源码可克隆后 `git switch --detach 7f833757da243f2a4610c23c36ec278b44c80ad4`。68 项在线/分类及40项本地浏览器检查通过;133 Release 配置构建和1,028项发布前检查已通过,Debug已在FCP显示真实云端预览并获用户确认。继续本地调试用最新工具 `tools/local_debug.py --source <干净检出>`;普通正式交付继续用 `tools/deliver.py`。
原公证 `0a1d2d49-1a03-4cd4-acbe-ba37f1fee42d` 尚待最终结果,不要重传。保留原 Release APP 与 ZIP,按 [原提交恢复参数](verification/UnifiedLUTNotaryResume133.json) 续查;Accepted 后再粘附和替换 Debug,完成宿主、PKG、Git Release及下载校验。正式版仍未发行;当前站点文章/更新通道为1.21.8(126)。
[当前交接](开发交接.md) · [Debug 安装](verification/DebugDelivery1.22.1.json) · [用户验收](verification/HostUnifiedLUTDebug1.22.1.json) · [实际编译源核对](verification/UnifiedLUTBuildSource133.json)。证书、私钥、账号与公证凭据独立安全恢复,不进 Git。测试结束后清理 Debug 例外产物和已不再需要的回滚副本。
---
# 2026-11-11 在线 LUT 1.22.0(131)
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。APP 实际编译提交 `d979f8958caf36cc7b97ea838960c69f7fbb4d91`;从独立 HTTPS 检出编译,254 个应用/模板/色彩管理文件和已提交工程基线逐字节一致。正式后端另包含 188553a61313674628d9faf6f9e2962b5cdebe42 的 SQL 编号序列化修正。发行标签计划 `v1.22.0-online-luts-20261111`,完整发行提交和附件校验在发布后补充。 PKG 公证 `bfb54c49-b563-4420-9e9b-2319e1565420` Accepted,20 项验包及载荷权限检查通过。PKG 44557321 字节,SHA-256 `82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd`。
远程 `https://dayu.media/git/dayu/dayu-color.git`,分支 `main`。APP 实际编译提交 `d979f8958caf36cc7b97ea838960c69f7fbb4d91`;从独立 HTTPS 检出编译,254 个应用/模板/色彩管理文件和已提交工程基线逐字节一致。正式后端另包含 188553a61313674628d9faf6f9e2962b5cdebe42 的 SQL 编号序列化修正。发行标签 `v1.22.0-online-luts-20261111` 指向完整提交 `31d1089264e10469bececa7b27b3bcd06a7eb445`;独立远端检出核对 911 个跟踪文件、无 LFS/子模块,Git 完整性通过,APP 构建输入与实际编译节点一致。 PKG 公证 `bfb54c49-b563-4420-9e9b-2319e1565420` Accepted,20 项验包及载荷权限检查通过。PKG 44557321 字节,SHA-256 `82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd`。
新机器恢复 Git 登录后克隆,以 `git switch --detach d979f8958caf36cc7b97ea838960c69f7fbb4d91` 取回实际编译源码;恢复线上后端使用最终发行标签。使用 Xcode 27.1、FxPlug SDK 4.3.5、Apple Silicon、macOS 14.6+ 和锁定的 ColorManagement 依赖;运行 `tools/deliver.py`,保持交付锁直到正式安装后的宿主验收,再输入 `complete`。从验收后的 APP 运行 `Packaging/build_pkg.py`。主 ID `com.dayu.color`,服务 `com.dayu.color.XPC`,团队 B3W25FX5H5,唯一安装 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。证书私钥、公证 profile、Git 凭据独立恢复;用户会话重新识别/登录,不进 Git。
@@ -8,7 +20,9 @@ APP 公证 `1e57ee70-d099-4942-91fd-29a2d5f47a44` Accepted,1,028 项正式安
后端源码 `Backend/wp-content/mu-plugins/`,本机镜像 `/Users/mac/Downloads/dayumedia/dayu-color-beta`,生产根 `/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media`。保持两个相对路径:`wp-content/mu-plugins/dayu-color-online-luts.php` 和 `wp-content/mu-plugins/dayu-color-online-luts/renderer.php`。按 `Backend/deploy_online_luts.py` 核对挂载、基线与原目录旁路备份后部署,不能直接在 SMB 源上编辑。依赖现有 WordPress 的 `app_device_login`、JWT 校验、扫码登录、统一设备绑定、会员/支付记录与 LUT 材料库;本仓库不复制完整站点、用户数据库或密钥,恢复服务还需站点独立安全备份。客户端只使用硬件 UUID,随机会话令牌与设备标识分开。
[安装](verification/Delivery1.22.0.json) · [宿主](verification/HostOnlineLUT1.22.0.json) · [部署与备份](verification/OnlineLUTDeployment.json) · [硬件登录实测](verification/OnlineLUTHardwareLoginLive.json) · [专项](research/OnlineLUTIntegration-20261111.md) · [交接](开发交接.md)。文章 15792 与主 APP 更新通道仍为 1.21.8(126),本轮未更改。
Release **428** 的 PKG 附件 **69** 已发布,草稿和发布后的完整下载均匹配 44,557,321 字节与 SHA-256。保留唯一当前发行包 `/Volumes/备份/大鱼调色/发行包/大鱼调色-1.22.0.pkg`;本轮恢复检出、浏览器下载副本、参考仓库检出、合成验收库及旧版生成备份已清理。
[Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.22.0-online-luts-20261111) · [下载校验](verification/Release1.22.0.json) · [远端恢复](verification/Recovery1.22.0.json) · [安装](verification/Delivery1.22.0.json) · [宿主](verification/HostOnlineLUT1.22.0.json) · [部署与备份](verification/OnlineLUTDeployment.json) · [硬件登录实测](verification/OnlineLUTHardwareLoginLive.json) · [专项](research/OnlineLUTIntegration-20261111.md) · [交接](开发交接.md)。文章 15792 与主 APP 更新通道仍为 1.21.8(126),本轮未更改。
---
@@ -49,3 +49,7 @@ UUID 恢复的生产接口实测通过:识别本机已有绑定,复用共享
APP 公证 `1e57ee70-d099-4942-91fd-29a2d5f47a44` Accepted,实际编译提交 d979f8958caf36cc7b97ea838960c69f7fbb4d91。正式安装主 APP 自动硬件登录、退出保持和刷新恢复通过;FCP 共享钥匙串后列出 1,233 项/17 分类。现场修正 PHP 临时数组遍历未将 SQL 字符串编号/大小转换到返回数组的问题,新增合约使总数44项。部署后网格与服务器当前帧预览实际显示,下载653号 01冰- 并应用到宿主,右侧原图/云端效果划像正常,播放通过后正常退出。只上传合成色卡,不含用户素材。新机首次微信 OAuth 和 Motion 未验收。详见最终宿主报告。
最终 131 PKG 公证 `bfb54c49-b563-4420-9e9b-2319e1565420` Accepted,票据、Gatekeeper、20 项验包通过。大小 44557321,SHA-256 82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd。修正后的生产全目录再次核对21页,1,233项均符合原生编号/大小及摘要字段规则。旧130临时PKG与131合成验收库已清理;正式浏览器下载的有效LUT保留供离线使用。
## 发行与收尾
Release428/附件69 已发布,标签 v1.22.0-online-luts-20261111 指向 31d1089264e10469bececa7b27b3bcd06a7eb445。草稿用正常登录网站会话完整下载,核对 44,557,321 字节和 SHA-256 后才发布;随后上传器复用同一附件,正式地址再次完整下载核对并回读成功。仓库原有公开属性保持,未改站点文章或 beta 更新清单。独立远端恢复核对发行节点911个跟踪文件和 Git 完整性,APP/模板/色彩输入与实际编译节点一致,无LFS/子模块。临时恢复、参考检出、草稿下载及已知生成备份已清理,正式安装和当前发行包保留;下载的有效 LUT 保留离线使用。
+16
查看文件
@@ -0,0 +1,16 @@
# 1.22.0(131)交接快照
## 1.22.0(131)在线 LUT
已接入主 APP 硬件 UUID 账号识别、微信登录回退、在线分类/搜索/分页、校验下载及手动当前帧在线预览。有效会员,或购买文章 **14421 / 15792 任意一个**的账号,可浏览全部已发布在线 LUT;每次请求由服务端复核设备绑定与权益。本地调色保持离线可用。点击“预览当前帧”才上传最长边 640 的 PNG 缩略图到 dayu.media,服务器内存处理,不保存帧;移动播放头不会自动上传。
两个 MU 后端文件已按 NAS 生产基线流程部署。44 项后端合约、46 项原生在线浏览器合约、40 项本地浏览器回归、6 项线上未授权检查和既有更新接口检查通过。最终正式 APP 的签名、票据、Gatekeeper、1,028 项正式安装检查、17 套模板及 PluginKit 唯一路径通过。
已从唯一正式路径启动 **1.22.0(131)**,APP 公证 `1e57ee70-d099-4942-91fd-29a2d5f47a44` Accepted;实际编译为独立远端检出的 `d979f8958caf36cc7b97ea838960c69f7fbb4d91`。主 APP 自动识别 macOS 硬件 UUID 绑定账号,退出保持退出,刷新恢复通过。FCP 12.4 独立合成色卡验证共享登录、1,233 个 LUT/17 分类、云端当前帧缩略图、下载应用、原图划像和 2:01→3:24 播放,宿主正常退出。主 APP 留在已登录可用状态。只上传合成色卡,未上传用户素材。真实接口另核对全部 21 页、搜索、分类与下载摘要。
现场发现 SQL 编号/大小以字符串输出导致空网格,已在后端修正,44 项 PHP 合约覆盖,并在正式 FCP 重新验收通过。新机未绑定时的微信 OAuth 首次扫码和 Motion 宿主未实测。130 的 APP/PKG 曾通过验证但未发行,现已被 131 取代。最终 PKG 已完成 Installer 签名、公证 `bfb54c49-b563-4420-9e9b-2319e1565420`、票据与 Gatekeeper 验证,20 项验包通过;大小 44557321 字节,SHA-256 `82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd`。Release **428** 已发布,附件 **69** 完整下载通过;标签 `v1.22.0-online-luts-20261111` 指向 `31d1089264e10469bececa7b27b3bcd06a7eb445`。独立远端恢复逐字节核对 911 个跟踪文件和 Git 完整性,APP 构建输入与实际编译提交一致。
[专项实现和生产映射](research/OnlineLUTIntegration-20261111.md) · [部署](verification/OnlineLUTDeployment.json) · [安装](verification/Delivery1.22.0.json) · [宿主范围](verification/HostOnlineLUT1.22.0.json) · [构建恢复](verification/OnlineLUTBuildRecovery.json)。127/128/129/130 为未发行候选,其诊断证据保留;最终 131 验证后已清理已知替换备份。工程文件既有的 Security 引用排序差异保留,不纳入本任务提交。站点文章和更新通道暂仍为 1.21.8(126),本轮没有改动它们。
[Release 及下载](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.22.0-online-luts-20261111) · [发行校验](verification/Release1.22.0.json) · [验包](verification/Package1.22.0.json) · [独立恢复](verification/Recovery1.22.0.json)。本轮合成验收库、恢复检出、参考检出、下载副本和旧版生成备份已清理;正式浏览器下载的一个有效 LUT 保留供离线使用。
+68 -27
查看文件
@@ -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,time
import subprocess,os,json,shutil,plistlib,uuid,sys,datetime,hashlib,time,argparse,tempfile,re
from template_payload import template_files
ROOT=Path(__file__).resolve().parent.parent
CACHE=Path('/Users/mac/Library/Caches/CodexBuilds/com.dayu.color')
@@ -84,7 +84,43 @@ def write_template_file(target,data,mode,flags):
finally:
temp.unlink(missing_ok=True)
def resume_notary(submission,archive,expected_hash,source):
if not re.fullmatch(r'[0-9a-f]{40}',source or ''):raise RuntimeError('恢复须提供原始完整编译提交')
if not re.fullmatch(r'[0-9a-f]{64}',expected_hash or '') or hashlib.sha256(archive.read_bytes()).hexdigest()!=expected_hash:raise RuntimeError('公证提交 ZIP 摘要不匹配,停止恢复')
run('git','cat-file','-e',source+'^{commit}');identity(APP,'com.dayu.color');run('codesign','--verify','--deep','--strict',str(APP))
# Validate the exact submitted bundle, including symlinks; never rebuild or re-sign.
with tempfile.TemporaryDirectory(prefix='notary-resume-',dir=CACHE) as scratch:
run('ditto','-x','-k',str(archive),scratch)
submitted=Path(scratch)/APP.name;identity(submitted,'com.dayu.color')
live={str(p.relative_to(APP)) for p in APP.rglob('*')};saved={str(p.relative_to(submitted)) for p in submitted.rglob('*')}
if live!=saved:raise RuntimeError('待安装 APP 与已提交 ZIP 内容清单不同')
for relative in live:
a=APP/relative;b=submitted/relative
if a.is_symlink() or b.is_symlink():same=a.is_symlink() and b.is_symlink() and os.readlink(a)==os.readlink(b)
elif a.is_dir() or b.is_dir():same=a.is_dir() and b.is_dir()
else:same=a.read_bytes()==b.read_bytes()
if not same:raise RuntimeError('待安装 APP 与已提交 ZIP 不一致:'+relative)
unregister(submitted/PLUGIN)
preflight=json.loads((CACHE/'release-preflight.json').read_text())
if not preflight.get('pass'):raise RuntimeError('缺少通过的原始发布前检查')
print('Exact submitted APP verified; querying original Apple submission '+submission,flush=True)
failures=0
while True:
try:
result=json.loads(run('xcrun','notarytool','info',submission,'--keychain-profile',PROFILE,'--keychain',KEYCHAIN,'--output-format','json'));failures=0
except subprocess.CalledProcessError:
failures+=1
if failures>=3:raise RuntimeError('连续三次无法读取 Apple 公证状态;产物保留,可继续原提交恢复')
time.sleep(15);continue
if result.get('id')!=submission:raise RuntimeError('公证编号不匹配')
if result.get('status')!='In Progress':return result
time.sleep(15)
def main():
parser=argparse.ArgumentParser(description=__doc__)
parser.add_argument('--resume-notary');parser.add_argument('--submitted-zip-sha256');parser.add_argument('--compiled-source')
args=parser.parse_args()
if not args.resume_notary and (args.submitted_zip_sha256 or args.compiled_source):parser.error('摘要与编译提交仅用于恢复原公证提交')
hosts_closed();CACHE.mkdir(parents=True,exist_ok=True);LOCK.parent.mkdir(parents=True,exist_ok=True);LOCK.mkdir()
(LOCK/'owner.json').write_text(json.dumps(dict(PID=os.getpid(),cwd=str(ROOT),product='大鱼调色',started=datetime.datetime.now(datetime.timezone.utc).isoformat())))
old=None;stage=None
@@ -92,32 +128,37 @@ def main():
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','-enableAddressSanitizer','NO','-derivedDataPath',str(CACHE/'DerivedData'),'clean','build',log=CACHE/'release-build.log')
for source,bundled,_ in template_files():
target=APP/BUNDLED_TEMPLATES/bundled
target.parent.mkdir(parents=True,exist_ok=True)
shutil.copyfile(ROOT/'template'/source,target)
target.chmod(0o644)
# Sources on exFAT can be exposed as owner-only. Installer changes ownership to root.
(APP/'Contents/Resources/Basis_balanceWheel.png').chmod(0o644)
identity(APP,'com.dayu.color');plugin=APP/PLUGIN;identity(plugin,'com.dayu.color.XPC')
# Xcode registers its build product with Launch Services. Keep the host from
# discovering this generated copy while signing/notarization are pending.
unregister(plugin);unregister(LOOSE)
for name in ['FxPlug','PluginManager']:run('codesign','--force','--timestamp','--options','runtime','--sign',IDENTITY,str(plugin/'Contents/Frameworks'/(name+'.framework')))
run('codesign','--force','--timestamp','--options','runtime','--sign',IDENTITY,str(plugin))
run('codesign','--force','--timestamp','--options','runtime','--entitlements',str(ROOT/'大鱼调色/Wrapper Application/SandboxEntitlements.entitlements'),'--sign',IDENTITY,str(APP))
run('codesign','--verify','--deep','--strict',str(APP))
details=run('codesign','-dvvv',str(APP))
if 'TeamIdentifier=B3W25FX5H5' not in details or 'Timestamp=' not in details or 'runtime' not in details:raise RuntimeError('签名身份/时间戳/runtime未通过')
preflight=self_test(plugin/'Contents/MacOS/大鱼调色 XPC Service',CACHE/'release-preflight.json')
(CACHE/'release-preflight.json').write_text(json.dumps(preflight,ensure_ascii=False,indent=2)+'\n')
if not preflight.get('pass'):raise RuntimeError('Release集成自检失败,正式旧版未替换')
archive=CACHE/'notarization-submission.zip'
if archive.exists():archive.unlink()
run('ditto','-c','-k','--keepParent',str(APP),str(archive));print('Submitting signed Release to Apple',flush=True)
result=json.loads(run('xcrun','notarytool','submit',str(archive),'--keychain-profile',PROFILE,'--keychain',KEYCHAIN,'--wait','--output-format','json'));(CACHE/'notary-result.json').write_text(json.dumps(result,indent=2))
if args.resume_notary:
result=resume_notary(args.resume_notary,archive,args.submitted_zip_sha256,args.compiled_source)
(CACHE/'notary-result.json').write_text(json.dumps(result,indent=2))
else:
print('Building final Release',flush=True)
run('xcodebuild','-project','大鱼调色.xcodeproj','-scheme','Wrapper Application','-configuration','Release','-enableAddressSanitizer','NO','-derivedDataPath',str(CACHE/'DerivedData'),'clean','build',log=CACHE/'release-build.log')
for source,bundled,_ in template_files():
target=APP/BUNDLED_TEMPLATES/bundled
target.parent.mkdir(parents=True,exist_ok=True)
shutil.copyfile(ROOT/'template'/source,target)
target.chmod(0o644)
# Sources on exFAT can be exposed as owner-only. Installer changes ownership to root.
(APP/'Contents/Resources/Basis_balanceWheel.png').chmod(0o644)
identity(APP,'com.dayu.color');plugin=APP/PLUGIN;identity(plugin,'com.dayu.color.XPC')
# Xcode registers its build product with Launch Services. Keep the host from
# discovering this generated copy while signing/notarization are pending.
unregister(plugin);unregister(LOOSE)
for name in ['FxPlug','PluginManager']:run('codesign','--force','--timestamp','--options','runtime','--sign',IDENTITY,str(plugin/'Contents/Frameworks'/(name+'.framework')))
run('codesign','--force','--timestamp','--options','runtime','--sign',IDENTITY,str(plugin))
run('codesign','--force','--timestamp','--options','runtime','--entitlements',str(ROOT/'大鱼调色/Wrapper Application/SandboxEntitlements.entitlements'),'--sign',IDENTITY,str(APP))
run('codesign','--verify','--deep','--strict',str(APP))
details=run('codesign','-dvvv',str(APP))
if 'TeamIdentifier=B3W25FX5H5' not in details or 'Timestamp=' not in details or 'runtime' not in details:raise RuntimeError('签名身份/时间戳/runtime未通过')
preflight=self_test(plugin/'Contents/MacOS/大鱼调色 XPC Service',CACHE/'release-preflight.json')
(CACHE/'release-preflight.json').write_text(json.dumps(preflight,ensure_ascii=False,indent=2)+'\n')
if not preflight.get('pass'):raise RuntimeError('Release集成自检失败,正式旧版未替换')
archive=CACHE/'notarization-submission.zip'
if archive.exists():archive.unlink()
run('ditto','-c','-k','--keepParent',str(APP),str(archive));print('Submitting signed Release to Apple',flush=True)
result=json.loads(run('xcrun','notarytool','submit',str(archive),'--keychain-profile',PROFILE,'--keychain',KEYCHAIN,'--wait','--output-format','json'));(CACHE/'notary-result.json').write_text(json.dumps(result,indent=2))
if result.get('status')!='Accepted':
if result.get('id'):run('xcrun','notarytool','log',result['id'],'--keychain-profile',PROFILE,'--keychain',KEYCHAIN,str(CACHE/'notary-rejection.json'))
raise RuntimeError('Apple未Accepted,正式旧版未替换')
@@ -154,7 +195,7 @@ def main():
if entries:break
time.sleep(.5)
if len(entries)!=1 or not entries[0].rstrip().endswith('\t'+str(DEST/PLUGIN)):raise RuntimeError('PluginKit发现多份/错误版本: '+registry)
record=dict(status='installed-awaiting-host-verification',path=str(DEST),bundleID='com.dayu.color',version=plistlib.loads((DEST/'Contents/Info.plist').read_bytes())['CFBundleShortVersionString'],build=plistlib.loads((DEST/'Contents/Info.plist').read_bytes())['CFBundleVersion'],team='B3W25FX5H5',notaryID=result['id'],notaryStatus=result['status'],gatekeeper=gate,sourceCommit=run('git','rev-parse','HEAD'),templatePath=str(TEMPLATE),templateSHA256=template_hashes[str(TEMPLATE.relative_to(TEMPLATE_ROOT))],installedTemplateSHA256=template_hashes,shaderSHA256=hashlib.sha256((DEST/PLUGIN/'Contents/Resources/default.metallib').read_bytes()).hexdigest())
record=dict(status='installed-awaiting-host-verification',path=str(DEST),bundleID='com.dayu.color',version=plistlib.loads((DEST/'Contents/Info.plist').read_bytes())['CFBundleShortVersionString'],build=plistlib.loads((DEST/'Contents/Info.plist').read_bytes())['CFBundleVersion'],team='B3W25FX5H5',notaryID=result['id'],notaryStatus=result['status'],gatekeeper=gate,sourceCommit=args.compiled_source or run('git','rev-parse','HEAD'),deliveryToolCommit=run('git','rev-parse','HEAD'),templatePath=str(TEMPLATE),templateSHA256=template_hashes[str(TEMPLATE.relative_to(TEMPLATE_ROOT))],installedTemplateSHA256=template_hashes,shaderSHA256=hashlib.sha256((DEST/PLUGIN/'Contents/Resources/default.metallib').read_bytes()).hexdigest())
if old:record['previousInstallBackup']=str(old)
output=ROOT/'verification/Delivery.json';output.write_text(json.dumps(record,ensure_ascii=False,indent=2)+'\n')
run('open',str(DEST));print('FORMAL_INSTALLED. Run installed self-test and host verification; type complete only after success. Type leave to preserve pending state.',flush=True)
+67
查看文件
@@ -0,0 +1,67 @@
#!/usr/bin/env python3
"""Explicitly authorized temporary Debug install; preserve the notarized rollback."""
import argparse, datetime, hashlib, json, os, plistlib, shutil, subprocess, sys, uuid
from pathlib import Path
import deliver as delivery
from template_payload import template_files
ROOT=Path(__file__).resolve().parent.parent
CACHE=delivery.CACHE
DEST=delivery.DEST
PLUGIN=delivery.PLUGIN
APP=CACHE/'DerivedData/Build/Products/Debug/大鱼调色.app'
LOOSE=CACHE/'DerivedData/Build/Products/Debug/大鱼调色 XPC Service.pluginkit'
def main():
parser=argparse.ArgumentParser(description=__doc__)
parser.add_argument('--source',required=True,type=Path)
args=parser.parse_args();source=args.source.resolve()
commit=subprocess.check_output(['git','rev-parse','HEAD'],cwd=source,text=True).strip()
assert not subprocess.check_output(['git','status','--porcelain','--untracked-files=no'],cwd=source), '调试编译源须为干净的可恢复节点'
delivery.hosts_closed()
assert not any(line.endswith('/Contents/MacOS/大鱼调色') for line in delivery.run('ps','-axo','comm=').splitlines()),'请先正常退出大鱼调色主 APP'
lock=delivery.LOCK;lock.mkdir()
(lock/'owner.json').write_text(json.dumps(dict(PID=os.getpid(),cwd=str(ROOT),product='大鱼调色',mode='user-authorized-debug',started=datetime.datetime.now(datetime.timezone.utc).isoformat())))
backup=None;stage=None
try:
print('Building explicitly authorized Debug configuration',flush=True)
with (CACHE/'debug-local-build.log').open('w') as log:
subprocess.run(['xcodebuild','-project','大鱼调色.xcodeproj','-scheme','Wrapper Application','-configuration','Debug','-enableAddressSanitizer','NO','-derivedDataPath',str(CACHE/'DerivedData'),'build'],cwd=source,stdout=log,stderr=subprocess.STDOUT,check=True)
for reference,bundled,_ in template_files():
target=APP/delivery.BUNDLED_TEMPLATES/bundled;target.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(source/'template'/reference,target);target.chmod(0o644)
(APP/'Contents/Resources/Basis_balanceWheel.png').chmod(0o644)
info=plistlib.loads((APP/'Contents/Info.plist').read_bytes());info['DYLocalDebugBuild']=True;(APP/'Contents/Info.plist').write_bytes(plistlib.dumps(info))
delivery.identity(APP,'com.dayu.color');delivery.identity(APP/PLUGIN,'com.dayu.color.XPC')
delivery.unregister(APP/PLUGIN);delivery.unregister(LOOSE)
for name in ['FxPlug','PluginManager']:
delivery.run('codesign','--force','--timestamp','--options','runtime','--sign',delivery.IDENTITY,str(APP/PLUGIN/'Contents/Frameworks'/(name+'.framework')))
delivery.run('codesign','--force','--timestamp','--options','runtime','--sign',delivery.IDENTITY,str(APP/PLUGIN))
delivery.run('codesign','--force','--timestamp','--options','runtime','--entitlements',str(source/'大鱼调色/Wrapper Application/SandboxEntitlements.entitlements'),'--sign',delivery.IDENTITY,str(APP))
delivery.run('codesign','--verify','--deep','--strict',str(APP))
stage=DEST.parent/('.dayu-color-debug-stage-'+uuid.uuid4().hex+'.app');delivery.run('ditto',str(APP),str(stage))
delivery.identity(DEST,'com.dayu.color')
backup=DEST.parent/('.dayu-color-formal-before-debug-'+uuid.uuid4().hex+'.app');os.replace(DEST,backup);os.replace(stage,DEST);stage=None
try:
delivery.run('codesign','--verify','--deep','--strict',str(DEST));delivery.identity(DEST,'com.dayu.color')
delivery.unregister(backup/PLUGIN)
for path in [APP,LOOSE]:
if path.exists():delivery.unregister(path/PLUGIN if path==APP else path);shutil.rmtree(path)
delivery.run('pluginkit','-a',str(DEST/PLUGIN))
registry=delivery.run('pluginkit','-m','-A','-D','-v','-i','com.dayu.color.XPC')
entries=[line for line in registry.splitlines() if 'com.dayu.color.XPC(' in line]
assert len(entries)==1 and entries[0].rstrip().endswith('\t'+str(DEST/PLUGIN)),registry
delivery.run('open',str(DEST))
assert str(DEST/'Contents/MacOS/大鱼调色') in delivery.run('ps','-axo','comm=').splitlines(),'调试 APP 未从固定位置启动'
except BaseException:
failed=DEST.parent/('.dayu-color-debug-failed-'+uuid.uuid4().hex+'.app');os.replace(DEST,failed);os.replace(backup,DEST);backup=None;delivery.run('pluginkit','-a',str(DEST/PLUGIN));raise
record=dict(status='temporary-debug-awaiting-host-verification',authorization='User explicitly requested local Debug testing while Apple notarization is pending.',configuration='Debug',notarized=False,bundleID='com.dayu.color',version=info['CFBundleShortVersionString'],build=info['CFBundleVersion'],sourceCommit=commit,path=str(DEST),formalRollback=str(backup),pendingReleaseNotary='0a1d2d49-1a03-4cd4-acbe-ba37f1fee42d',signatureVerified=True,pluginKitUniquePath=True,cleanup='Remove this temporary Debug APP when user testing ends or replace with the notarized Release; preserve the formal rollback until then.')
report=ROOT/'verification/DebugDelivery1.22.1.json';report.write_text(json.dumps(record,ensure_ascii=False,indent=2)+'\n')
print('DEBUG_INSTALLED. Verify FCP from the fixed path, then type keep to leave it for user testing.',flush=True)
for decision in sys.stdin:
if decision.strip()=='keep':
record['status']='temporary-debug-installed-for-user-testing';report.write_text(json.dumps(record,ensure_ascii=False,indent=2)+'\n');break
finally:
if stage and stage.exists():shutil.rmtree(stage)
(lock/'owner.json').unlink();lock.rmdir()
if __name__=='__main__':main()
+4
查看文件
@@ -1,6 +1,8 @@
#import <AppKit/AppKit.h>
#import "../大鱼调色/Plugin/DYLUTBrowser.h"
#import "../大鱼调色/Plugin/DYLUTLibrary.h"
#import "../大鱼调色/Shared/DYOnlineLUT.h"
#import <objc/runtime.h>
@interface DYLUTBrowser (Probe)
- (void)layoutBrowser;
- (void)layoutChanged:(id)sender;
@@ -10,9 +12,11 @@
- (void)qualityChanged:(id)sender;
@end
static NSMutableArray *checks;
static NSProgress *offlineFixture(id cls,SEL sel,NSString *path,NSDictionary *body,BOOL authenticated,DYOnlineLUTReply reply){NSProgress *task=[NSProgress discreteProgressWithTotalUnitCount:1];dispatch_async(dispatch_get_main_queue(),^{reply(nil,[NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorNotConnectedToInternet userInfo:nil]);});return task;}
static void require(BOOL pass,NSString *name){[checks addObject:@{@"name":name,@"pass":@(pass)}];if(!pass){fprintf(stderr,"FAIL %s\n",name.UTF8String);exit(1);}}
static void pump(BOOL(^done)(void)){double end=NSProcessInfo.processInfo.systemUptime+15;while(!done()&&NSProcessInfo.processInfo.systemUptime<end)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];require(done(),@"asynchronous browser task completed");}
int main(int argc,const char **argv){@autoreleasepool{
method_setImplementation(class_getClassMethod(DYOnlineLUTClient.class,@selector(request:body:authenticated:completion:)),(IMP)offlineFixture);
checks=[NSMutableArray new];require(argc==2,@"report destination supplied");[NSApplication sharedApplication];[NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited];
NSURL *root=[NSURL fileURLWithPath:[NSTemporaryDirectory()stringByAppendingPathComponent:[@"dayu-browser-layout-" stringByAppendingString:NSUUID.UUID.UUIDString]]];NSFileManager *fm=NSFileManager.defaultManager;[fm createDirectoryAtURL:root withIntermediateDirectories:YES attributes:nil error:nil];
NSString *cube=@"LUT_3D_SIZE 2\n0 0 0\n1 0 0\n0 1 0\n1 1 0\n0 0 1\n1 0 1\n0 1 1\n1 1 1\n";
+48 -10
查看文件
@@ -7,7 +7,7 @@
#include <cmath>
@interface DYLUTBrowser (OnlineAcceptance)
- (void)sourceChanged:(id)sender;
- (void)startOnlinePreviews;
- (void)revealLibrary:(id)sender;
- (void)previousOnlinePage:(id)sender;
- (void)folderClicked:(id)sender;
@@ -69,15 +69,21 @@ int main(int argc,const char **argv){@autoreleasepool{
NSImage *image=DYLUTThumbnail(nil,pixels,320,180,NSMakeSize(320,180),nil);renderPNG=[[(NSBitmapImageRep *)image.representations[0]representationUsingType:NSBitmapImageFileTypePNG properties:@{}]retain];
__block NSString *applied=nil;
DYLUTBrowser *browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:frame selectedPath:nil palette:@{} selection:^NSProgress *(NSString *path,void(^completion)(NSError *)){NSProgress *job=[NSProgress discreteProgressWithTotalUnitCount:1];dispatch_async(dispatch_get_main_queue(),^{[applied release];applied=[path copy];completion(nil);});return job;}];
pump(^{return [browser valueForKey:@"libraryTask"]==nil;});require(!browser.window.visible,@"acceptance never displays an unsigned test app");[browser setValue:@YES forKey:@"visible"];[browser setValue:@YES forKey:@"remoteMode"];
NSPopUpButton *source=[browser valueForKey:@"sourceMenu"];[source selectItemAtIndex:1];[browser sourceChanged:source];pump(^{return [[browser valueForKey:@"onlineEntries"]count]==10;});
require(count(@"/catalog")==1&&count(@"/preview")==0,@"opening online categories does not upload a timeline frame");
require([[[browser valueForKey:@"importFiles"]accessibilityLabel]isEqual:@"在线预览当前帧"],@"online preview accessibility label reflects its actual action");
require([[browser valueForKey:@"folderPaths"]count]==4,@"online categories include all and named categories");
pump(^{return [browser valueForKey:@"libraryTask"]==nil;});require(!browser.window.visible,@"acceptance never displays an unsigned test app");
require(count(@"/catalog")==0&&count(@"/preview")==0,@"constructing an unopened browser never uploads a frame");
NSView *parent=[[[NSView alloc]initWithFrame:NSMakeRect(0,0,1200,760)]autorelease];[browser showInRemoteParent:parent close:nil];
pump(^{return count(@"/preview")==10&&[[browser valueForKey:@"onlineTransfers"]count]==0;});
require(![[browser valueForKey:@"onlineMode"]boolValue],@"opening local library also preloads the online page");
require(count(@"/catalog")==1&&count(@"/preview")==10,@"opening browser automatically uploads cached frame and previews the whole online page");
NSArray *folders=[browser valueForKey:@"folderPaths"];require([folders containsObject:@"@online"]&&[folders containsObject:@"@online/婚礼"]&&[folders containsObject:@"在线 LUT"],@"local and online categories share one sidebar with separate stable identities");
NSButton *online=[NSButton buttonWithTitle:@"在线 LUT" target:nil action:nil];online.identifier=@"@online";[browser folderClicked:online];
pump(^{return [browser valueForKey:@"onlineCatalogTask"]==nil;});
require([[[browser valueForKey:@"importFiles"]accessibilityLabel]isEqual:@"更新在线预览缓存帧"],@"optional refresh action has an accurate accessibility label");
require(count(@"/preview")==10,@"switching to online root reuses the automatically generated previews");
require([[[browser valueForKey:@"countLabel"]stringValue]containsString:@"1233"],@"online total and pagination remain visible");
[browser revealLibrary:nil];pump(^{return [[browser valueForKey:@"onlineCatalogTask"]isFinished]||[browser valueForKey:@"onlineCatalogTask"]==nil;});require([[requests.lastObject objectForKey:@"body"][@"page"]integerValue]==2,@"next page requests page two");
[browser revealLibrary:nil];pump(^{return [[browser valueForKey:@"onlineCatalogTask"]isFinished]||[browser valueForKey:@"onlineCatalogTask"]==nil;});NSDictionary *lastCatalog=nil;for(NSDictionary *r in requests)if([r[@"path"]hasSuffix:@"/catalog"])lastCatalog=r;require([lastCatalog[@"body"][@"page"]integerValue]==2,@"next page requests page two");
[browser previousOnlinePage:nil];pump(^{return [browser valueForKey:@"onlineCatalogTask"]==nil;});
NSButton *folder=[NSButton buttonWithTitle:@"婚礼" target:nil action:nil];folder.identifier=@"婚礼";[browser folderClicked:folder];pump(^{return [browser valueForKey:@"onlineCatalogTask"]==nil;});require([requests.lastObject[@"body"][@"category"]isEqual:@"婚礼"],@"category filter is sent to the server");
NSButton *folder=[NSButton buttonWithTitle:@"婚礼" target:nil action:nil];folder.identifier=@"@online/婚礼";[browser folderClicked:folder];pump(^{return [browser valueForKey:@"onlineCatalogTask"]==nil;});NSDictionary *categoryRequest=nil;for(NSDictionary *r in requests)if([r[@"path"]hasSuffix:@"/catalog"])categoryRequest=r;require([categoryRequest[@"body"][@"category"]isEqual:@"婚礼"],@"online child category is sent to server without sidebar prefix");
NSUInteger before=count(@"/preview");[browser captureOnlineFrame];pump(^{return count(@"/preview")>before&&[[browser valueForKey:@"onlineTransfers"]count]==0;});
require(maxPreviews<=2,@"browser limits simultaneous remote preview work");
NSDictionary *upload=nil;for(NSDictionary *r in requests)if([r[@"path"]hasSuffix:@"/preview"]){upload=r;break;}
@@ -86,6 +92,8 @@ int main(int argc,const char **argv){@autoreleasepool{
NSUInteger previous=count(@"/preview");[browser updatePreview:@{@"standard":pixels,@"standardSize":[NSValue valueWithSize:NSMakeSize(320,180)],@"time":@2}];require(count(@"/preview")==previous,@"new timeline frames never trigger automatic uploads");
NSDictionary *tiles=[browser valueForKey:@"tiles"];NSButton *tile=tiles.allValues.firstObject;[browser thumbnailClicked:tile];pump(^{return [browser valueForKey:@"selectionTask"]==nil&&applied!=nil;});
require([applied hasPrefix:library.rootURL.path]&&[NSFileManager.defaultManager fileExistsAtPath:applied],@"downloaded verified LUT is applied through local host selection");
require([applied containsString:@"/在线 LUT/婚礼/"],@"clicked online LUT installs into its local category");
require([[browser valueForKey:@"folderPaths"]containsObject:@"在线 LUT/婚礼"],@"download immediately adds the second-level local category to the same sidebar");
NSDictionary *reference=[browser valueForKey:@"previewFrames"];NSMutableData *alreadyGraded=[pixels mutableCopy];((float *)alreadyGraded.mutableBytes)[0]=.9;
[browser updatePreview:@{@"standard":alreadyGraded,@"standardSize":[NSValue valueWithSize:NSMakeSize(320,180)],@"time":@2}];
require([[browser valueForKey:@"previewFrames"]isEqual:reference],@"same-time host redraw cannot regrade the online upload reference");[alreadyGraded release];
@@ -95,10 +103,40 @@ int main(int argc,const char **argv){@autoreleasepool{
NSUInteger localCount=library.entries.count;[browser thumbnailClicked:tile];pump(^{return [browser valueForKey:@"selectionTask"]==nil;});require(library.entries.count==localCount,@"repeated online click does not duplicate installed LUT");
badDownload=YES;[browser thumbnailClicked:tile];pump(^{return [browser valueForKey:@"selectionTask"]==nil;});require([[[browser valueForKey:@"statusLabel"]stringValue]containsString:@"大小"],@"incomplete download produces a visible error");badDownload=NO;
paid=NO;[browser folderClicked:folder];pump(^{return [browser valueForKey:@"onlineCatalogTask"]==nil;});require([[browser valueForKey:@"onlineEntries"]count]==0,@"permission rejection removes online entries");
[source selectItemAtIndex:0];[browser sourceChanged:source];require(![[browser valueForKey:@"onlineMode"]boolValue]&&[[browser valueForKey:@"visibleEntries"]count]>0,@"local LUT library remains usable without online permission");
NSButton *local=[NSButton buttonWithTitle:@"全部本地 LUT" target:nil action:nil];local.identifier=@"*";[browser folderClicked:local];require(![[browser valueForKey:@"onlineMode"]boolValue]&&[[browser valueForKey:@"visibleEntries"]count]>0,@"local LUT library remains usable without online permission");
require([[browser valueForKey:@"reveal"]isEnabled],@"local reveal button is restored after an online empty page or error");
NSButton *localTile=[[[browser valueForKey:@"tiles"]allValues]firstObject];[localTile setEnabled:YES];[browser thumbnailClicked:localTile];pump(^{return [browser valueForKey:@"selectionTask"]==nil;});require([browser valueForKey:@"onlineSelectedPath"]==nil,@"local selection resets previous online highlight");
[browser close];[browser release];[library release];[applied release];[installed release];
// Hierarchy uses exact folder membership; a sibling with a common prefix is excluded.
NSString *nested=[library.rootURL.path stringByAppendingPathComponent:@"胶片/人像/柔和"];[NSFileManager.defaultManager createDirectoryAtPath:nested withIntermediateDirectories:YES attributes:nil error:nil];
[cubeData writeToFile:[nested stringByAppendingPathComponent:@"Nested.cube"]atomically:YES];
NSString *sibling=[library.rootURL.path stringByAppendingPathComponent:@"胶片2"];[NSFileManager.defaultManager createDirectoryAtPath:sibling withIntermediateDirectories:YES attributes:nil error:nil];[cubeData writeToFile:[sibling stringByAppendingPathComponent:@"Sibling.cube"]atomically:YES];[library reload:nil];
[browser performSelector:@selector(rebuildFolders)];[browser layoutBrowser];
require([[browser valueForKey:@"folderPaths"]containsObject:@"胶片/人像"]&&[[browser valueForKey:@"folderPaths"]containsObject:@"胶片/人像/柔和"],@"all local directory levels are available in sidebar");
local.identifier=@"胶片/人像";[browser folderClicked:local];require([[browser valueForKey:@"visibleEntries"]count]==1,@"local parent includes descendants and excludes prefix siblings");
id branch=nil;for(NSButton *b in [browser valueForKey:@"folderButtons"])if([b.identifier isEqual:@"胶片/人像"])branch=b;
require([[branch valueForKey:@"depth"]integerValue]==1&&[[branch valueForKey:@"branch"]boolValue],@"second-level parent is indented and expandable");
[branch setValue:@YES forKey:@"disclosureClicked"];[browser folderClicked:branch];[branch setValue:@NO forKey:@"disclosureClicked"];
require(![[browser valueForKey:@"folderPaths"]containsObject:@"胶片/人像/柔和"],@"collapsing local parent hides descendants");
[branch setValue:@YES forKey:@"disclosureClicked"];[browser folderClicked:branch];[branch setValue:@NO forKey:@"disclosureClicked"];
require([[browser valueForKey:@"folderPaths"]containsObject:@"胶片/人像/柔和"],@"expanding local parent restores descendants");
[browser close];NSUInteger closedRequests=requests.count;[browser release];
pump(^{return activePreviews==0;});require(requests.count==closedRequests,@"closing stops all preview work without scheduling more uploads");
paid=NO;NSUInteger beforeEmpty=count(@"/preview");
DYLUTBrowser *empty=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];
[empty showInRemoteParent:parent close:nil];pump(^{return [empty valueForKey:@"onlineCatalogTask"]==nil&&[empty valueForKey:@"libraryTask"]==nil;});
require(count(@"/preview")==beforeEmpty,@"opening without a cached frame waits without uploading fallback imagery");
require([[empty valueForKey:@"reveal"]isEnabled],@"background online permission failure never disables local folder access");
paid=YES;[empty performSelector:@selector(loadOnlineCatalog)];pump(^{return [empty valueForKey:@"onlineCatalogTask"]==nil;});
NSMutableData *portrait=[NSMutableData dataWithLength:360*1280*16];float *portraitSamples=(float *)portrait.mutableBytes;for(NSUInteger i=0;i<360*1280;i++)portraitSamples[i*4+3]=1;
[empty updatePreview:@{@"standard":portrait,@"standardSize":[NSValue valueWithSize:NSMakeSize(360,1280)],@"time":@3}];
pump(^{return count(@"/preview")==beforeEmpty+10&&[[empty valueForKey:@"onlineTransfers"]count]==0;});
require(count(@"/preview")==beforeEmpty+10,@"first arriving cache frame automatically fills previously empty online previews");
NSDictionary *lastUpload=nil;for(NSDictionary *r in requests)if([r[@"path"]hasSuffix:@"/preview"])lastUpload=r;
NSBitmapImageRep *tall=[NSBitmapImageRep imageRepWithData:[[[NSData alloc]initWithBase64EncodedString:lastUpload[@"body"][@"frame_png"]options:0]autorelease]];
require(tall.pixelsHigh==640&&tall.pixelsWide==180,@"portrait uploads honor longest-edge cap and preserve aspect");[empty close];[empty release];
NSUInteger compactRequests=requests.count;DYLUTBrowser *compact=[[DYLUTBrowser alloc]initWithLibrary:library preview:frame selectedPath:nil palette:@{} selection:nil];[compact embedRecentInView:parent];
pump(^{return [compact valueForKey:@"libraryTask"]==nil;});require(requests.count==compactRequests,@"compact recent shortcuts do not start cloud uploads");[compact close];[compact release];
[library release];[applied release];[installed release];
[NSFileManager.defaultManager removeItemAtURL:root error:nil];
for(NSString *key in NSUserDefaults.standardUserDefaults.dictionaryRepresentation.allKeys)if([key containsString:root.path])[NSUserDefaults.standardUserDefaults removeObjectForKey:key];
NSDictionary *report=@{@"pass":@YES,@"count":@(checks.count),@"checks":checks,@"scope":@"Isolated AppKit browser with simulated network replies; real Cube validation/import; no user credentials, no production frame upload, no visible test app."};
+4 -1
查看文件
@@ -8,7 +8,10 @@
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verify-online-luts",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verify-browser-customization",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/online-lut-131",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/superseded-build130.pkg"
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/superseded-build130.pkg",
"/Users/mac/Downloads/大鱼调色-1.22.0.pkg",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/Recovery/online-lut-1.22.0",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/Reference/FcpxSoundEffectsExtension"
],
"scope": "Only this task’s known synthetic QA files and generated executables. User LUTs, source, other tasks and historical installers retained.",
"original126RollbackBackupRemoved": true,
+18
查看文件
@@ -0,0 +1,18 @@
{
"status": "temporary-debug-installed-for-user-testing",
"authorization": "User explicitly requested local Debug testing while Apple notarization is pending.",
"configuration": "Debug",
"notarized": false,
"bundleID": "com.dayu.color",
"version": "1.22.1",
"build": "133",
"sourceCommit": "7f833757da243f2a4610c23c36ec278b44c80ad4",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"formalRollback": "/Library/Plug-Ins/FxPlug/.dayu-color-formal-before-debug-8c17779060fb4b7a9b346754e5792616.app",
"pendingReleaseNotary": "0a1d2d49-1a03-4cd4-acbe-ba37f1fee42d",
"signatureVerified": true,
"pluginKitUniquePath": true,
"cleanup": "Remove this temporary Debug APP when user testing ends or replace with the notarized Release; preserve the formal rollback until then.",
"userConfirmation": "我已测试可行",
"hostObserved": "FCP shows 1233 online LUTs, populated effect thumbnails, original/styled comparison, unified sidebar and second-level local categories."
}
@@ -0,0 +1,25 @@
{
"version": "1.22.1",
"build": 133,
"configuration": "Debug",
"notarized": false,
"sourceCommit": "7f833757da243f2a4610c23c36ec278b44c80ad4",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"userConfirmed": "我已测试可行",
"observed": [
"Main APP shows version 1.22.1 build 133 and account access available",
"Online grid displays multiple processed synthetic color-chart thumbnails",
"Catalogue total 1233 with pagination",
"One sidebar contains online root and local folders",
"Local installed categories and another local folder show second-level rows",
"Original/styled comparison visibly displays images"
],
"hostProcess": [
"4974 /Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service"
],
"automatedContracts": {
"onlineAndHierarchy": 68,
"localBrowser": 40
},
"scope": "Agent observed current FCP UI; user performed and confirmed local testing. No claim of notarized Debug delivery or Motion acceptance."
}
@@ -0,0 +1,166 @@
{
"pass" : true,
"checks" : [
{
"name" : "report destination supplied",
"pass" : true
},
{
"name" : "isolated library loaded",
"pass" : true
},
{
"name" : "recent use deduplicates and puts latest first",
"pass" : true
},
{
"name" : "recent history survives a new library instance",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "recent category is first in the sidebar",
"pass" : true
},
{
"name" : "recent category contains only used LUTs in order",
"pass" : true
},
{
"name" : "all LUTs also put recent uses before unused names",
"pass" : true
},
{
"name" : "loading does not update recent history",
"pass" : true
},
{
"name" : "host rejection does not update history",
"pass" : true
},
{
"name" : "only successful host application records recent use",
"pass" : true
},
{
"name" : "selecting a LUT keeps the tiles in place and updates selection",
"pass" : true
},
{
"name" : "search respects recent-first ordering",
"pass" : true
},
{
"name" : "clearing a search still uses the opening order",
"pass" : true
},
{
"name" : "recent folder also uses the opening order",
"pass" : true
},
{
"name" : "grid reflows when the browser size changes",
"pass" : true
},
{
"name" : "list layout has full-width rows",
"pass" : true
},
{
"name" : "sidebar divider changes folder width without overlapping previews",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "layout and sidebar width survive reopening",
"pass" : true
},
{
"name" : "reopening places the successful selection first",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "remote-parent checks never display a test window",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "list thumbnail keeps portrait aspect",
"pass" : true
},
{
"name" : "portrait grid cards follow frame geometry",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "click reuses the original and selected tile bitmaps without replacing preview work",
"pass" : true
},
{
"name" : "empty snapshots keep both previews and pending work",
"pass" : true
},
{
"name" : "same-time host render after selection cannot replace the comparison reference",
"pass" : true
},
{
"name" : "previous previews stay visible while the next frame renders",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "moving the playhead replaces the original and both uses of the LUT bitmap",
"pass" : true
},
{
"name" : "asynchronous browser task completed",
"pass" : true
},
{
"name" : "the comparison and grid use the same high resolution frame",
"pass" : true
},
{
"name" : "remote window geometry is owned and remembered by the host",
"pass" : true
},
{
"name" : "remote close callback runs once",
"pass" : true
},
{
"name" : "recent history stays bounded at 40 newest paths",
"pass" : true
},
{
"name" : "isolated fixtures and preferences cleaned",
"pass" : true
}
],
"scope" : "Real AppKit browser objects, hidden host-owned window fixture, asynchronous acknowledgement and root-scoped history; no visible test app or user LUT changes."
}
+15
查看文件
@@ -0,0 +1,15 @@
{
"passResult": true,
"independentHTTPSCheckout": true,
"releaseTag": "v1.22.0-online-luts-20261111",
"releaseCommit": "31d1089264e10469bececa7b27b3bcd06a7eb445",
"compiledAppCommit": "d979f8958caf36cc7b97ea838960c69f7fbb4d91",
"trackedFilesByteVerified": 911,
"gitFsckStrict": true,
"compiledAppInputsUnchangedAtRelease": true,
"gitLFSPointers": 0,
"submodules": 0,
"scope": "Application was built from this independent remote checkout at the compiled source; release tag was independently fetched and all tracked blobs verified. No second cold build.",
"temporaryCheckout": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/Recovery/online-lut-1.22.0",
"temporaryCheckoutRemovedAfterVerification": true
}
+11 -18
查看文件
@@ -3,23 +3,16 @@
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.21.8-render-fluidity-20261109",
"releaseCommit": "ec81578b25753295ad6f03579136a7fa206a5d1f",
"releaseID": 422,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.21.8-render-fluidity-20261109",
"prerelease": true,
"assetID": 68,
"assetName": "大鱼调色-1.21.8.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.21.8-render-fluidity-20261109/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.21.8.pkg",
"bytes": 44529845,
"sha256": "8df87b7762f8a0d11b32e6947f5e4f3a358dce7e44505b20f8534b3a0e3e14b9",
"tag": "v1.22.0-online-luts-20261111",
"releaseCommit": "31d1089264e10469bececa7b27b3bcd06a7eb445",
"releaseID": 428,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.22.0-online-luts-20261111",
"assetID": 69,
"assetName": "大鱼调色-1.22.0.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.22.0-online-luts-20261111/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.22.0.pkg",
"bytes": 44557321,
"sha256": "82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd",
"existingAssetReused": true,
"verification": "Full draft download checked before publication; published attachment downloaded and checked again; release, tag and asset read-back verified.",
"credentialSource": "macOS Keychain: dayu-git-api",
"draftBrowserDownload": {
"path": "/Volumes/备份/大鱼调色-1.21.8.pkg",
"sha256": "8df87b7762f8a0d11b32e6947f5e4f3a358dce7e44505b20f8534b3a0e3e14b9",
"bytes": 44529845,
"sourceURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.21.8-render-fluidity-20261109/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.21.8.pkg"
}
"verification": "Authenticated full download SHA-256 and byte count, then release/asset read-back.",
"credentialSource": "macOS Keychain: dayu-git-api"
}
@@ -0,0 +1,11 @@
{
"passResult": true,
"releaseID": 428,
"assetID": 69,
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.22.0-online-luts-20261111/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.22.0.pkg",
"downloadedFile": "/Users/mac/Downloads/大鱼调色-1.22.0.pkg",
"bytes": 44557321,
"sha256": "82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd",
"verification": "Actual authenticated website session download via the visible draft file link; full file byte count and SHA-256 match the signed notarized package.",
"downloadCopyRemovedAfterPublication": true
}
@@ -0,0 +1,14 @@
{
"releaseID": 428,
"draft": true,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.22.0-online-luts-20261111",
"tag": "v1.22.0-online-luts-20261111",
"assets": [
{
"id": 69,
"name": "大鱼调色-1.22.0.pkg",
"size": 44557321,
"browser_download_url": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.22.0-online-luts-20261111/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.22.0.pkg"
}
]
}
+18
查看文件
@@ -0,0 +1,18 @@
{
"passResult": true,
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.22.0-online-luts-20261111",
"releaseCommit": "31d1089264e10469bececa7b27b3bcd06a7eb445",
"releaseID": 428,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.22.0-online-luts-20261111",
"assetID": 69,
"assetName": "大鱼调色-1.22.0.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.22.0-online-luts-20261111/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.22.0.pkg",
"bytes": 44557321,
"sha256": "82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd",
"existingAssetReused": true,
"verification": "Authenticated full download SHA-256 and byte count, then release/asset read-back.",
"credentialSource": "macOS Keychain: dayu-git-api"
}
@@ -0,0 +1,13 @@
{
"version": "1.22.1",
"build": 132,
"sourceCommit": "c7f6311506d408abb9efb6246584212826864975",
"preflightChecks": 1028,
"preflightPassed": true,
"notaryID": "a0ed9a93-a639-45c7-9c97-55d982b66033",
"notaryStatus": "In Progress",
"installed": false,
"published": false,
"reason": "Superseded before install: protect local folder controls when background online catalog fails, encode cached PNG independently of local LUT parsing queue.",
"submittedZIP_SHA256": "58be5dd2a37c97b44212d4935b7ba2187ee4abe013488ea911055e99e24c9de3"
}
+279
查看文件
@@ -0,0 +1,279 @@
{
"scope" : "Isolated AppKit browser with simulated network replies; real Cube validation\/import; no user credentials, no production frame upload, no visible test app.",
"count" : 68,
"pass" : true,
"checks" : [
{
"name" : "valid online LUT imports",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "server names cannot escape local library",
"pass" : true
},
{
"name" : "repeat online download reuses matching local file",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "repeat imports do not create duplicate LUTs",
"pass" : true
},
{
"name" : "checksum mismatch rejected before library changes",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "existing local LUT preserved after rejected download",
"pass" : true
},
{
"name" : "cancelled online import reports cancellation",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "acceptance never displays an unsigned test app",
"pass" : true
},
{
"name" : "constructing an unopened browser never uploads a frame",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "opening local library also preloads the online page",
"pass" : true
},
{
"name" : "opening browser automatically uploads cached frame and previews the whole online page",
"pass" : true
},
{
"name" : "local and online categories share one sidebar with separate stable identities",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "optional refresh action has an accurate accessibility label",
"pass" : true
},
{
"name" : "switching to online root reuses the automatically generated previews",
"pass" : true
},
{
"name" : "online total and pagination remain visible",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "next page requests page two",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "online child category is sent to server without sidebar prefix",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "browser limits simultaneous remote preview work",
"pass" : true
},
{
"name" : "frame request sends image pixels without project paths or filenames",
"pass" : true
},
{
"name" : "uploaded frame preserves timeline aspect",
"pass" : true
},
{
"name" : "new timeline frames never trigger automatic uploads",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "downloaded verified LUT is applied through local host selection",
"pass" : true
},
{
"name" : "clicked online LUT installs into its local category",
"pass" : true
},
{
"name" : "download immediately adds the second-level local category to the same sidebar",
"pass" : true
},
{
"name" : "same-time host redraw cannot regrade the online upload reference",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "comparison displays LUT title without internal identifier",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "clearing online LUT removes both local and online selection markers",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "repeated online click does not duplicate installed LUT",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "incomplete download produces a visible error",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "permission rejection removes online entries",
"pass" : true
},
{
"name" : "local LUT library remains usable without online permission",
"pass" : true
},
{
"name" : "local reveal button is restored after an online empty page or error",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "local selection resets previous online highlight",
"pass" : true
},
{
"name" : "all local directory levels are available in sidebar",
"pass" : true
},
{
"name" : "local parent includes descendants and excludes prefix siblings",
"pass" : true
},
{
"name" : "second-level parent is indented and expandable",
"pass" : true
},
{
"name" : "collapsing local parent hides descendants",
"pass" : true
},
{
"name" : "expanding local parent restores descendants",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "closing stops all preview work without scheduling more uploads",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "opening without a cached frame waits without uploading fallback imagery",
"pass" : true
},
{
"name" : "background online permission failure never disables local folder access",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "first arriving cache frame automatically fills previously empty online previews",
"pass" : true
},
{
"name" : "portrait uploads honor longest-edge cap and preserve aspect",
"pass" : true
},
{
"name" : "asynchronous operation finished",
"pass" : true
},
{
"name" : "compact recent shortcuts do not start cloud uploads",
"pass" : true
}
]
}
@@ -0,0 +1,9 @@
{
"pass": true,
"sourceCommit": "c7f6311506d408abb9efb6246584212826864975",
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"independentHTTPSClone": true,
"trackedFilesByteMatched": 918,
"sourceCleanBeforeBuild": true,
"scope": "Remote clone used for formal build; main workspace pre-existing project ordering diff is excluded."
}
@@ -0,0 +1,9 @@
{
"pass": true,
"sourceCommit": "7f833757da243f2a4610c23c36ec278b44c80ad4",
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"independentHTTPSClone": true,
"trackedFilesByteMatched": 921,
"sourceCleanBeforeBuild": true,
"scope": "Formal build uses the independent HTTPS clone, excluding the main workspace existing project ordering diff."
}
@@ -0,0 +1,22 @@
{
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/fcp-qa/lut-unified-133/大鱼调色_统一LUT验收133.fcpxml",
"status": "pass",
"dtd": "/Applications/Final Cut Pro.app/Contents/Frameworks/Interchange.framework/Versions/A/Resources/FCPXMLv1_12.dtd",
"errors": [],
"warnings": [],
"checks": {
"dtd": true,
"xml": true,
"local_media": {
"checked": 1,
"missing": 0
}
},
"version": "1.12",
"summary": {
"projects": 1,
"assets": 1,
"elements": 15
},
"host_validation": "not_performed_by_this_command"
}
@@ -0,0 +1,13 @@
{
"version": "1.22.1",
"build": 133,
"sourceCommit": "7f833757da243f2a4610c23c36ec278b44c80ad4",
"notaryID": "0a1d2d49-1a03-4cd4-acbe-ba37f1fee42d",
"notaryStatus": "In Progress",
"waitCommandInterrupted": true,
"submittedZIP_SHA256": "7b3a0c068482834f1db96162c84d84af1419cb74429bb3a17edc10b3af85156a",
"preflightPassed": true,
"preflightChecks": 1028,
"installed": false,
"resume": "tools/deliver.py --resume-notary <notaryID> --submitted-zip-sha256 <submittedZIP_SHA256> --compiled-source <sourceCommit>"
}
+120 -65
查看文件
@@ -22,6 +22,9 @@ static NSString *const DYBrowserFramePreference=@"com.dayu.color.lookLUTPreview.
static NSString *const DYBrowserLayoutPreference=@"com.dayu.color.lookLUTPreview.layout";
static NSString *const DYBrowserSidebarPreference=@"com.dayu.color.lookLUTPreview.sidebarWidth";
static NSString *const DYBrowserRecentFolder=@"@recent";
static NSString *const DYBrowserOnlineFolder=@"@online";
static NSString *const DYBrowserOnlineCategoryPrefix=@"@online/";
static BOOL DYBrowserIsOnlineFolder(NSString *folder){return [folder isEqual:DYBrowserOnlineFolder]||[folder hasPrefix:DYBrowserOnlineCategoryPrefix];}
static NSString *DYBrowserPreference(NSString *key,DYLUTLibrary *library){return [NSString stringWithFormat:@"%@|%@",key,library.rootURL.path];}
// Opt-in, local-only geometry samples. No LUT names, paths or image data.
@@ -108,7 +111,7 @@ static NSRect DYBrowserTileImageRect(NSRect bounds,BOOL list) {
- (void)dealloc{[_thumbnail release];[_displayName release];[_failure release];[_palette release];[super dealloc];}
- (NSString *)accessibilityLabel{return _displayName?:@"LUT";}
- (id)accessibilityValue{return _chosen?@"已选择":_failure.length?@"LUT 无效":_thumbnail?@"可应用":@"正在生成缩略图";}
- (NSString *)accessibilityHelp{return _failure?:_shortcut?@"点击将此 LUT 应用到当前风格图层":@"单击应用此 LUT,双击应用并关闭浏览器";}
- (NSString *)accessibilityHelp{return _failure?:_online?@"单击安装到本地分类并应用,双击应用并关闭浏览器":_shortcut?@"点击将此 LUT 应用到当前风格图层":@"单击应用此 LUT,双击应用并关闭浏览器";}
- (void)drawRect:(NSRect)dirty{
NSRect bounds=NSInsetRect(self.bounds,1,1);
NSBezierPath *outline=[NSBezierPath bezierPathWithRoundedRect:bounds xRadius:7 yRadius:7];
@@ -123,7 +126,7 @@ static NSRect DYBrowserTileImageRect(NSRect bounds,BOOL list) {
[NSGraphicsContext restoreGraphicsState];
}else{
[DYBrowserColor(_palette,@"background")setFill];NSRectFill(imageRect);
NSString *message=_failure.length?@"无法预览":_online?@"点“预览当前帧”":@"生成预览…";
NSString *message=_failure.length?@"无法预览":_online?@"加载在线预览…":@"生成预览…";
NSDictionary *attributes=@{NSFontAttributeName:[NSFont systemFontOfSize:11],NSForegroundColorAttributeName:DYBrowserColor(_palette,@"secondary")};
NSSize size=[message sizeWithAttributes:attributes];
[message drawAtPoint:NSMakePoint(NSMidX(imageRect)-size.width/2,NSMidY(imageRect)-size.height/2) withAttributes:attributes];
@@ -138,6 +141,8 @@ static NSRect DYBrowserTileImageRect(NSRect bounds,BOOL list) {
@interface DYBrowserFolderButton : NSButton
@property(copy) NSDictionary *palette;
@property BOOL chosen;
@property NSUInteger depth;
@property BOOL branch,expanded,disclosureClicked;
@end
@implementation DYBrowserFolderButton
- (BOOL)isFlipped{return YES;}
@@ -145,8 +150,13 @@ static NSRect DYBrowserTileImageRect(NSRect bounds,BOOL list) {
- (void)drawRect:(NSRect)dirty{
if(_chosen){[DYBrowserColor(_palette,@"field")setFill];[[NSBezierPath bezierPathWithRoundedRect:NSInsetRect(self.bounds,1,1) xRadius:5 yRadius:5]fill];}
NSMutableParagraphStyle *paragraph=[[[NSMutableParagraphStyle alloc]init]autorelease];paragraph.lineBreakMode=NSLineBreakByTruncatingMiddle;
[self.title drawInRect:NSInsetRect(self.bounds,9,8) withAttributes:@{NSFontAttributeName:[NSFont systemFontOfSize:11 weight:_chosen?NSFontWeightSemibold:NSFontWeightRegular],NSForegroundColorAttributeName:DYBrowserColor(_palette,_chosen?@"accent":@"text"),NSParagraphStyleAttributeName:paragraph}];
CGFloat inset=9+_depth*14;
NSDictionary *attributes=@{NSFontAttributeName:[NSFont systemFontOfSize:11 weight:_chosen?NSFontWeightSemibold:NSFontWeightRegular],NSForegroundColorAttributeName:DYBrowserColor(_palette,_chosen?@"accent":@"text"),NSParagraphStyleAttributeName:paragraph};
if(_branch)[(_expanded?@"▾":@"▸") drawAtPoint:NSMakePoint(inset,8) withAttributes:attributes];
[self.title drawInRect:NSMakeRect(inset+14,8,MAX(1,NSWidth(self.bounds)-inset-19),18) withAttributes:attributes];
}
- (void)mouseDown:(NSEvent *)event{NSPoint p=[self convertPoint:event.locationInWindow fromView:nil];_disclosureClicked=_branch&&p.x<23+_depth*14;[super mouseDown:event];_disclosureClicked=NO;}
- (void)keyDown:(NSEvent *)event{if(_branch&&((event.keyCode==123&&_expanded)||(event.keyCode==124&&!_expanded))){_disclosureClicked=YES;[self performClick:nil];_disclosureClicked=NO;}else [super keyDown:event];}
@end
@interface DYBrowserCompareView : NSView
@@ -245,17 +255,21 @@ static NSRect DYBrowserTileImageRect(NSRect bounds,BOOL list) {
NSUInteger _libraryGeneration,_selectionGeneration,_previewGeneration;
NSInteger _columns;
CGFloat _tileWidth,_tileHeight,_sidebarWidth;
NSPopUpButton *_sourceMenu;
NSButton *_previousPage;
NSTextField *_onlineNotice;
BOOL _onlineMode;
NSArray *_onlineEntries,*_onlineCategories;
NSDictionary *_onlineFrame;
NSData *_onlinePNG;
NSString *_onlineSelectedPath,*_localFolder;
NSString *_onlineSelectedPath;
NSUInteger _onlinePage,_onlineTotal,_onlineCatalogGeneration;
NSProgress *_onlineCatalogTask;
NSMutableSet *_onlineTransfers;
NSMutableSet *_collapsedFolders,*_onlineQueuedPaths;
NSCache *_onlineThumbnailCache;
DYBrowserWork *_onlineWork;
BOOL _onlineStarted,_onlineFramePreparing;
NSUInteger _onlineFrameGeneration;
}
@end
@@ -278,14 +292,15 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
if(!library.recentPaths.count&&path.length)[library recordUsedPath:path];
if(!savedFolder)savedFolder=library.recentPaths.count?DYBrowserRecentFolder:@"*";
_library=[library retain];_previewFrames=[frames copy];_previewGeneration=1;_recentSnapshot=[library.recentPaths copy];_selectedPath=[path copy];_folder=[(savedFolder?:@"*") copy];_selection=[selection copy];
_onlineMode=DYBrowserIsOnlineFolder(_folder);_collapsedFolders=[NSMutableSet new];
_folderButtons=[NSMutableArray new];_tiles=[NSMutableDictionary new];_queuedPaths=[NSMutableSet new];_thumbnailCache=[NSCache new];_thumbnailCache.countLimit=600;_thumbnailCache.totalCostLimit=64*1024*1024;_previewQueue=dispatch_queue_create("com.dayu.color.lut-thumbnails",DISPATCH_QUEUE_SERIAL);dispatch_set_target_queue(_previewQueue,dispatch_get_global_queue(QOS_CLASS_UTILITY,0));
panel.title=@"风格 LUT";panel.contentMinSize=self.class.minimumContentSize;panel.contentMaxSize=self.class.maximumContentSize;panel.releasedWhenClosed=NO;panel.hidesOnDeactivate=NO;panel.delegate=self;
_root=[[DYBrowserCanvas alloc]initWithFrame:NSMakeRect(0,0,760,560)];_root.accessibilityLabel=@"LUT 缩略图浏览库";panel.contentView=_root;
_titleLabel=[BrowserLabel(@"LUT 文件夹",14)retain];_titleLabel.font=[NSFont systemFontOfSize:14 weight:NSFontWeightSemibold];
_sourceMenu=[[NSPopUpButton alloc]initWithFrame:NSZeroRect pullsDown:NO];[_sourceMenu addItemsWithTitles:@[@"本地 LUT",@"在线 LUT"]];_sourceMenu.target=self;_sourceMenu.action=@selector(sourceChanged:);_sourceMenu.accessibilityLabel=@"LUT 来源";
_titleLabel=[BrowserLabel(@"LUT 浏览器",14)retain];_titleLabel.font=[NSFont systemFontOfSize:14 weight:NSFontWeightSemibold];
_previousPage=[BrowserButton(@"上一页",self,@selector(previousOnlinePage:))retain];_previousPage.hidden=YES;
_onlineNotice=[BrowserLabel(@"点“预览当前帧”将缩略图发送到 dayu.media,仅供本次处理,不保存帧。",11)retain];_onlineNotice.hidden=YES;
_onlineNotice=[BrowserLabel(@"打开时自动上传缓存帧缩略图用于在线预览;服务器不保存帧。",11)retain];_onlineNotice.hidden=YES;
_onlinePage=1;_onlineTransfers=[NSMutableSet new];
_onlineQueuedPaths=[NSMutableSet new];_onlineThumbnailCache=[NSCache new];_onlineThumbnailCache.countLimit=600;_onlineThumbnailCache.totalCostLimit=64*1024*1024;
[NSDistributedNotificationCenter.defaultCenter addObserver:self selector:@selector(onlineIdentityChanged:) name:DYOnlineLUTIdentityChanged object:nil];
_countLabel=[BrowserLabel(@"0 个 LUT",11)retain];
_statusLabel=[BrowserLabel(@"单击缩略图应用 LUT",11)retain];
@@ -330,20 +345,22 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(gridScrolled:) name:NSViewBoundsDidChangeNotification object:_gridScroll.contentView];
_splitView=[[NSSplitView alloc]initWithFrame:NSMakeRect(12,80,736,425)];_splitView.vertical=YES;_splitView.dividerStyle=NSSplitViewDividerStyleThin;_splitView.accessibilityLabel=@"调整 LUT 文件夹与预览宽度";
_folderScroll.frame=NSMakeRect(0,0,162,425);_gridScroll.frame=NSMakeRect(163,0,573,425);[_splitView addSubview:_folderScroll];[_splitView addSubview:_gridScroll];
for(NSView *view in @[_titleLabel,_sourceMenu,_previousPage,_onlineNotice,_countLabel,_statusLabel,_sizeLabel,_search,_importFiles,_importFolder,_reveal,_refresh,_none,_done,_hd,_sizeSlider,_layoutMenu,_splitView,_comparePanel])[_root addSubview:view];
for(NSView *view in @[_titleLabel,_previousPage,_onlineNotice,_countLabel,_statusLabel,_sizeLabel,_search,_importFiles,_importFolder,_reveal,_refresh,_none,_done,_hd,_sizeSlider,_layoutMenu,_splitView,_comparePanel])[_root addSubview:view];
[_gridDocument addSubview:_emptyLabel];
_root.postsFrameChangedNotifications=YES;_root.postsBoundsChangedNotifications=YES;
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(browserRootResized:) name:NSViewFrameDidChangeNotification object:_root];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(browserRootResized:) name:NSViewBoundsDidChangeNotification object:_root];
_splitView.delegate=self;[self reloadLibrary:nil];[self updatePalette:palette];[self layoutBrowser];
_splitView.delegate=self;[self updateSourceControls];[self reloadLibrary:nil];[self updatePalette:palette];[self layoutBrowser];
}
return self;
}
- (void)dealloc{
[NSDistributedNotificationCenter.defaultCenter removeObserver:self];
[_onlineCatalogTask cancel];[_onlineCatalogTask release];for(NSProgress *task in _onlineTransfers)[task cancel];[_onlineTransfers release];
[_onlineEntries release];[_onlineCategories release];[_onlineFrame release];[_onlinePNG release];[_onlineSelectedPath release];[_localFolder release];
[_sourceMenu release];[_previousPage release];[_onlineNotice release];
_onlineWork.cancelled=YES;_onlineWork.owner=nil;[_onlineWork release];
[_collapsedFolders release];[_onlineQueuedPaths release];[_onlineThumbnailCache release];
[_onlineEntries release];[_onlineCategories release];[_onlineFrame release];[_onlinePNG release];[_onlineSelectedPath release];
[_previousPage release];[_onlineNotice release];
[_recentSnapshot release];
[NSObject cancelPreviousPerformRequestsWithTarget:self];[[NSNotificationCenter defaultCenter]removeObserver:self];
[_libraryTask cancel];[_libraryTask release];[_selectionTask cancel];[_selectionTask release];[_progressTimer invalidate];[_progressTimer release];
@@ -365,7 +382,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
_popover=[[NSPopover alloc]init];_popover.behavior=NSPopoverBehaviorSemitransient;_popover.animates=YES;_popover.delegate=self;_popover.contentSize=size;
NSViewController *controller=[[[NSViewController alloc]init]autorelease];controller.title=@"风格 LUT";controller.view=_root;_popover.contentViewController=controller;
[self layoutBrowser];
@try {[_popover showRelativeToRect:view.bounds ofView:view preferredEdge:NSRectEdgeMaxX];_visible=_popover.shown;[self refreshComparison];}
@try {[_popover showRelativeToRect:view.bounds ofView:view preferredEdge:NSRectEdgeMaxX];_visible=_popover.shown;[self startOnlinePreviews];[self refreshComparison];}
@catch(NSException *exception){[self finishClosing];}
}
- (BOOL)visible{return !_closed&&((_remoteMode||_detached)?_visible:_popover.shown);}
@@ -379,6 +396,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
parent.postsFrameChangedNotifications=YES;parent.postsBoundsChangedNotifications=YES;
for(NSNotificationName name in @[NSViewFrameDidChangeNotification,NSViewBoundsDidChangeNotification])[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(remoteParentGeometryChanged:) name:name object:parent];
[parent addSubview:_root];DYBrowserGeometrySample(_root,@"before-content-origin-alignment");[self fitRemoteParent];
[self startOnlinePreviews];
DYBrowserGeometrySample(_root,@"attached-before-sdk-reply");
// Attach synchronously: the SDK reads the first child before reply returns.
dispatch_async(dispatch_get_main_queue(),^{if(!_closed){[self configurePresentationWindow];[self refreshComparison];DYBrowserGeometrySample(_root,@"after-sdk-reply");}});
@@ -389,12 +407,12 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
_embedded=YES;_folderScroll.hasVerticalScroller=YES;_gridScroll.hasVerticalScroller=YES;_gridScroll.hasHorizontalScroller=NO;_gridScroll.scrollerStyle=NSScrollerStyleOverlay;[self showInRemoteParent:parent close:closeAction];_done.title=@"返回调整";
}
- (void)embedRecentInView:(NSView *)parent{
_compactRecent=YES;_embedded=YES;
_compactRecent=YES;_embedded=YES;_onlineMode=NO;
[_folder release];_folder=[DYBrowserRecentFolder copy];
_root.accessibilityLabel=@"最近使用 LUT 快捷入口";
_titleLabel.stringValue=@"最近使用";_titleLabel.font=[NSFont systemFontOfSize:11 weight:NSFontWeightSemibold];
[_layoutMenu selectItemAtIndex:0];_sizeSlider.doubleValue=120;
for(NSView *view in @[_sourceMenu,_previousPage,_onlineNotice,_search,_importFiles,_importFolder,_reveal,_refresh,_none,_done,_hd,_comparePanel,_sizeLabel,_sizeSlider,_layoutMenu,_splitView])view.hidden=YES;
for(NSView *view in @[_previousPage,_onlineNotice,_search,_importFiles,_importFolder,_reveal,_refresh,_none,_done,_hd,_comparePanel,_sizeLabel,_sizeSlider,_layoutMenu,_splitView])view.hidden=YES;
[_root addSubview:_gridScroll];_gridScroll.hasHorizontalScroller=NO;_gridScroll.scrollerStyle=NSScrollerStyleOverlay;
[self showInRemoteParent:parent close:nil];[self rebuildGrid];[self refreshRecentSelection:_selectedPath];
}
@@ -512,7 +530,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
if(!small){_sizeLabel.frame=NSMakeRect(174,h-29,68,18);_sizeSlider.frame=NSMakeRect(246,h-31,100,20);_statusLabel.frame=NSMakeRect(444,h-29,MAX(0,w-540),18);}
}
NSRect browser=_splitView.frame,comparison=browser;
_sourceMenu.hidden=NO;_titleLabel.hidden=YES;_sourceMenu.frame=NSMakeRect(12,_embedded?6:10,145,26);
_titleLabel.hidden=NO;_titleLabel.frame=NSMakeRect(12,_embedded?8:12,145,20);
_countLabel.frame=NSMakeRect(165,_embedded?10:14,MAX(60,w-350),18);
_onlineNotice.hidden=!_onlineMode;_previousPage.hidden=!_onlineMode;
if(_onlineMode){
@@ -564,7 +582,6 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
}
- (void)layoutChanged:(id)sender{[NSUserDefaults.standardUserDefaults setInteger:_layoutMenu.indexOfSelectedItem forKey:DYBrowserPreference(DYBrowserLayoutPreference,_library)];[self layoutBrowser];}
- (void)resetThumbnailWork {
for(NSProgress *task in _onlineTransfers)[task cancel];[_onlineTransfers removeAllObjects];
_work.cancelled=YES;_work.owner=nil;[_work release];_work=[DYBrowserWork new];_work.owner=self;[_queuedPaths removeAllObjects];
}
- (void)updateVisibleTiles {
@@ -627,11 +644,12 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
[_selectionFrameTime release];_selectionFrameTime=nil;
// Online uploads retain the same pre-application reference as local previews.
// Only a new playhead time may replace it after applying a look.
if(_onlineMode){NSDictionary *snapshot=[frames copy];[_previewFrames release];_previewFrames=snapshot;return;}
if(_onlineMode){NSDictionary *snapshot=[frames copy];[_previewFrames release];_previewFrames=snapshot;if(_onlineStarted&&!_onlineFrame&&!_onlineFramePreparing)[self captureOnlineFrame];return;}
NSData *current=_previewFrames[currentQuality],*next=frames[nextQuality];
BOOL unchanged=sameSize&&[current isEqualToData:next];
NSDictionary *snapshot=[frames copy];
[_previewFrames release];_previewFrames=snapshot;
if(_onlineStarted&&!_onlineFrame&&!_onlineFramePreparing)[self captureOnlineFrame];
if(unchanged)return;
[self invalidatePreviewImages];
[self layoutBrowser];
@@ -639,11 +657,12 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
- (void)qualityChanged:(id)sender{
[NSUserDefaults.standardUserDefaults setBool:_hd.state==NSControlStateValueOn forKey:DYBrowserPreference(DYBrowserHDPreference,_library)];
[self invalidatePreviewImages];
if(_onlineMode){[_onlinePNG release];_onlinePNG=nil;[_onlineFrame release];_onlineFrame=nil;[self setStatus:@"画质已切换,请重新点击预览当前帧。"];}
if(_onlineMode)[self captureOnlineFrame];
[self layoutBrowser];
}
- (void)comparePositionChanged:(id)sender{_compareView.position=_compareSlider.doubleValue;}
- (NSDictionary *)previewResultForPath:(NSString *)path{
if([path hasPrefix:@"online:"])return [_onlineThumbnailCache objectForKey:path];
DYBrowserTile *tile=_tiles[path];
if(tile.previewGeneration==_previewGeneration){
if(tile.thumbnail)return @{@"image":tile.thumbnail};
@@ -700,10 +719,15 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
}
- (void)setStatus:(NSString *)status{_statusLabel.stringValue=status?:@"";_statusLabel.toolTip=status;}
- (void)rebuildFolders{
if(_onlineMode){NSMutableArray *paths=[NSMutableArray arrayWithObject:@"*"];[paths addObjectsFromArray:_onlineCategories?:@[]];if(![paths containsObject:_folder]){[_folder release];_folder=[@"*" copy];}[_folderPaths release];_folderPaths=[paths copy];[self updateVisibleFolders];return;}
NSMutableArray *paths=[NSMutableArray arrayWithObjects:DYBrowserRecentFolder,@"*",nil];NSMutableSet *seen=[NSMutableSet setWithArray:paths];
for(NSString *folder in _library.folders){NSString *top=folder.length?[folder componentsSeparatedByString:@"/"].firstObject:@"";if(![seen containsObject:top]){[paths addObject:top];[seen addObject:top];}}
if(![seen containsObject:_folder]){[_folder release];_folder=[@"*" copy];}
[paths addObject:DYBrowserOnlineFolder];[seen addObject:DYBrowserOnlineFolder];
for(NSString *category in _onlineCategories){NSString *path=[DYBrowserOnlineCategoryPrefix stringByAppendingString:category];[seen addObject:path];if(![_collapsedFolders containsObject:DYBrowserOnlineFolder])[paths addObject:path];}
for(NSString *folder in _library.folders){
[seen addObject:folder];BOOL hidden=NO;NSString *parent=folder.stringByDeletingLastPathComponent;
while(parent.length){if([_collapsedFolders containsObject:parent]){hidden=YES;break;}parent=parent.stringByDeletingLastPathComponent;}
if(!hidden)[paths addObject:folder];
}
if(![seen containsObject:_folder]&&!DYBrowserIsOnlineFolder(_folder)){[_folder release];_folder=[@"*" copy];}
[_folderPaths release];_folderPaths=[paths copy];[self updateVisibleFolders];
}
- (void)folderScrolled:(NSNotification *)notification{if(!_layingOut)[self updateVisibleFolders];}
@@ -714,8 +738,14 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
NSMutableArray *buttons=[NSMutableArray array];
for(NSUInteger i=first;i<end;i++){
NSString *path=_folderPaths[i];DYBrowserFolderButton *button=existing[path];
if(!button){button=[[[DYBrowserFolderButton alloc]initWithFrame:NSZeroRect]autorelease];button.bordered=NO;button.target=self;button.action=@selector(folderClicked:);button.identifier=path;
button.title=[path isEqual:DYBrowserRecentFolder]?@"最近使用":[path isEqualToString:@"*"]?@"全部 LUT":path.length?[@"▸ " stringByAppendingString:path]:@"未分类";button.toolTip=path.length?path:_library.rootURL.path;button.palette=_palette;button.accessibilityLabel=[@"LUT 文件夹:" stringByAppendingString:button.title];[_folderDocument addSubview:button];}
if(!button){button=[[[DYBrowserFolderButton alloc]initWithFrame:NSZeroRect]autorelease];button.bordered=NO;button.target=self;button.action=@selector(folderClicked:);button.identifier=path;button.palette=_palette;[_folderDocument addSubview:button];}
BOOL online=DYBrowserIsOnlineFolder(path),onlineRoot=[path isEqual:DYBrowserOnlineFolder];
button.title=onlineRoot?@"在线 LUT":online?[path substringFromIndex:DYBrowserOnlineCategoryPrefix.length]:[path isEqual:DYBrowserRecentFolder]?@"最近使用":[path isEqual:@"*"]?@"全部本地 LUT":[path isEqual:@"在线 LUT"]?@"已安装 LUT":path.length?path.lastPathComponent:@"未分类";
button.depth=online?(onlineRoot?0:1):path.length?MAX(0,(NSInteger)path.pathComponents.count-1):0;
button.branch=onlineRoot;
if(!online&&path.length)for(NSString *folder in _library.folders)if([folder hasPrefix:[path stringByAppendingString:@"/"]]){button.branch=YES;break;}
button.expanded=![_collapsedFolders containsObject:path];button.toolTip=online?button.title:path.length?path:_library.rootURL.path;
button.accessibilityLabel=[@"LUT 分类:" stringByAppendingString:button.title];button.accessibilityHelp=button.branch?@"点击箭头展开或折叠,点击名称选择此分类;左右方向键展开或折叠。":button.toolTip;
button.chosen=[path isEqualToString:_folder];button.frame=NSMakeRect(4,4+i*35,MAX(92,_folderScroll.contentSize.width-8),33);[button setNeedsDisplay:YES];[buttons addObject:button];
}
for(NSButton *button in _folderButtons)if(![buttons containsObject:button])[button removeFromSuperview];[_folderButtons setArray:buttons];
@@ -734,7 +764,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
_importFiles.enabled=YES;_importFolder.enabled=YES;_refresh.title=@"刷新";_done.title=_embedded?@"返回调整":@"完成";_done.toolTip=nil;
}
- (void)reloadLibrary:(id)sender{
if(_onlineMode){[self loadOnlineCatalog];return;}
if(_onlineMode&&_onlineStarted&&sender){[self captureOnlineFrame];[self loadOnlineCatalog];return;}
if(_libraryTask){[_libraryTask cancel];[self setStatus:@"正在取消…"];return;}
[self invalidatePreviewImages];NSUInteger generation=++_libraryGeneration;
NSProgress *task=[_library reloadAsync:^(NSError *error){
@@ -743,11 +773,19 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
}];[self beginLibraryTask:task];
}
- (void)folderClicked:(NSButton *)sender{
if(!sender.identifier)return;
if([sender isKindOfClass:DYBrowserFolderButton.class]&&[(DYBrowserFolderButton *)sender disclosureClicked]){
if([_collapsedFolders containsObject:sender.identifier])[_collapsedFolders removeObject:sender.identifier];else [_collapsedFolders addObject:sender.identifier];
[self rebuildFolders];[self layoutBrowser];return;
}
BOOL online=DYBrowserIsOnlineFolder(sender.identifier),changed=online!=_onlineMode;
if(changed){++_selectionGeneration;[_selectionTask cancel];[_selectionTask release];_selectionTask=nil;}
[_folder release];_folder=[sender.identifier copy];
if(_onlineMode){_onlinePage=1;[self loadOnlineCatalog];return;}
_onlineMode=online;[self updateSourceControls];
if(changed){_search.stringValue=@"";[_comparisonOriginal release];_comparisonOriginal=nil;[self resetThumbnailWork];}
[[NSUserDefaults standardUserDefaults]setObject:_folder forKey:DYBrowserPreference(DYBrowserFolderPreference,_library)];
for(DYBrowserFolderButton *button in _folderButtons){button.chosen=[button.identifier isEqualToString:_folder];[button setNeedsDisplay:YES];}
[self rebuildGrid];
if(online){_onlinePage=1;[self loadOnlineCatalog];}else{[self rebuildGrid];[self setStatus:@"单击缩略图应用 LUT"];}
}
- (void)searchChanged:(id)sender{if(_onlineMode){[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(debouncedOnlineSearch) object:nil];[self performSelector:@selector(debouncedOnlineSearch) withObject:nil afterDelay:.35];}else [self rebuildGrid];}
- (void)controlTextDidChange:(NSNotification *)notification{if(notification.object==_search)[self searchChanged:_search];}
@@ -774,7 +812,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
BOOL recent=[_folder isEqual:DYBrowserRecentFolder];NSArray *history=_recentSnapshot;
for(NSDictionary *entry in (_onlineMode?(_onlineEntries?:@[]):recent?[_library recentEntriesForPaths:history]:_library.entries)){
NSString *folder=entry[@"relativeFolder"]?:@"";
BOOL folderMatch=recent||[_folder isEqualToString:@"*"]||[folder isEqualToString:_folder]||(_folder.length&&[folder hasPrefix:[_folder stringByAppendingString:@"/"]]);
BOOL folderMatch=_onlineMode||recent||[_folder isEqualToString:@"*"]||[folder isEqualToString:_folder]||(_folder.length&&[folder hasPrefix:[_folder stringByAppendingString:@"/"]]);
if(folderMatch&&(!query.length||[entry[@"name"]localizedCaseInsensitiveContainsString:query]||[entry[@"relativePath"]localizedCaseInsensitiveContainsString:query]))[entries addObject:entry];
}
if(!recent&&!_onlineMode)[entries sortUsingComparator:^NSComparisonResult(NSDictionary *a,NSDictionary *b){NSUInteger i=[history indexOfObject:a[@"path"]],j=[history indexOfObject:b[@"path"]];if(i==j)return [a[@"relativePath"]localizedStandardCompare:b[@"relativePath"]];return i<j?NSOrderedAscending:NSOrderedDescending;}];
@@ -841,22 +879,24 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
if(![[NSFileManager defaultManager]createDirectoryAtURL:_library.rootURL withIntermediateDirectories:YES attributes:nil error:&error]){[self showImportError:error];return;}
if(![[NSWorkspace sharedWorkspace]openURL:_library.rootURL])[self setStatus:@"无法打开 LUT 文件夹"];
}
- (void)sourceChanged:(id)sender {
BOOL online=_sourceMenu.indexOfSelectedItem==1;if(online==_onlineMode||_compactRecent)return;
[self cancelOnlineWork];
++_selectionGeneration;[_selectionTask cancel];[_selectionTask release];_selectionTask=nil;
if(online){[_localFolder release];_localFolder=[_folder copy];[_folder release];_folder=[@"*" copy];_onlinePage=1;}
else {[_folder release];_folder=[(_localFolder?:@"*")copy];}
_onlineMode=online;_importFiles.title=online?@"预览当前帧":@"导入文件…";_importFolder.title=online?@"登录 / 权限":@"导入文件夹…";_reveal.title=online?@"下一页":@"打开 LUT 文件夹";
_importFiles.accessibilityLabel=online?@"在线预览当前帧":@"导入 LUT 文件";_importFolder.accessibilityLabel=online?@"主 APP 登录与在线 LUT 权限":@"导入 LUT 文件夹";
_reveal.enabled=YES;
_search.stringValue=@"";[self invalidatePreviewImages];[self rebuildFolders];[self rebuildGrid];
if(online)[self loadOnlineCatalog];else [self setStatus:@"单击缩略图应用 LUT"];
- (void)updateSourceControls {
_importFiles.title=_onlineMode?@"更新预览":@"导入文件…";_importFolder.title=_onlineMode?@"登录 / 权限":@"导入文件夹…";_reveal.title=_onlineMode?@"下一页":@"打开文件夹";
_importFiles.accessibilityLabel=_onlineMode?@"更新在线预览缓存帧":@"导入 LUT 文件";_importFolder.accessibilityLabel=_onlineMode?@"主 APP 登录与在线 LUT 权限":@"导入 LUT 文件夹";
_reveal.enabled=!_onlineMode||_onlinePage*60<_onlineTotal;
}
- (void)resetOnlinePreviewWork {
_onlineWork.cancelled=YES;_onlineWork.owner=nil;[_onlineWork release];_onlineWork=[DYBrowserWork new];_onlineWork.owner=self;
for(NSProgress *task in _onlineTransfers)[task cancel];[_onlineTransfers removeAllObjects];[_onlineQueuedPaths removeAllObjects];
}
- (void)startOnlinePreviews {
if(_onlineStarted||_closed||_compactRecent||!self.visible)return;
_onlineStarted=YES;[self captureOnlineFrame];[self loadOnlineCatalog];
}
- (void)cancelOnlineWork {
++_onlineCatalogGeneration;[_onlineCatalogTask cancel];[_onlineCatalogTask release];_onlineCatalogTask=nil;
for(NSProgress *task in _onlineTransfers)[task cancel];[_onlineTransfers removeAllObjects];
[_onlinePNG release];_onlinePNG=nil;[_onlineFrame release];_onlineFrame=nil;
[self resetOnlinePreviewWork];_onlineWork.cancelled=YES;_onlineWork.owner=nil;
++_onlineFrameGeneration;_onlineFramePreparing=NO;
[_onlinePNG release];_onlinePNG=nil;[_onlineFrame release];_onlineFrame=nil;[_onlineThumbnailCache removeAllObjects];
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(debouncedOnlineSearch) object:nil];
}
- (void)onlineIdentityChanged:(NSNotification *)notification {
@@ -865,22 +905,23 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
[self->_onlineEntries release];self->_onlineEntries=nil;[self->_onlineCategories release];self->_onlineCategories=nil;
[self->_onlineSelectedPath release];self->_onlineSelectedPath=nil;
[self invalidatePreviewImages];
if(self->_onlineMode){[self rebuildFolders];[self rebuildGrid];[self loadOnlineCatalog];}
[self rebuildFolders];[self rebuildGrid];if(self->_onlineStarted){[self captureOnlineFrame];[self loadOnlineCatalog];}
});
}
- (void)previousOnlinePage:(id)sender {if(_onlineMode&&_onlinePage>1){_onlinePage--;[self loadOnlineCatalog];}}
- (void)debouncedOnlineSearch {if(_onlineMode&&!_closed){_onlinePage=1;[self loadOnlineCatalog];}}
- (void)loadOnlineCatalog {
if(!_onlineMode||_closed)return;
if(!_onlineStarted||_closed)return;
NSUInteger generation=++_onlineCatalogGeneration;[_onlineCatalogTask cancel];[_onlineCatalogTask release];_onlineCatalogTask=nil;
[self setStatus:@"正在加载在线 LUT…"];_previousPage.enabled=NO;_reveal.enabled=NO;
NSDictionary *body=@{@"page":@(_onlinePage),@"category":[_folder isEqual:@"*"]?@"":_folder,@"search":_search.stringValue?:@""};
if(_onlineMode){[self setStatus:@"正在加载在线 LUT…"];_previousPage.enabled=NO;_reveal.enabled=NO;}
NSString *category=[_folder hasPrefix:DYBrowserOnlineCategoryPrefix]?[_folder substringFromIndex:DYBrowserOnlineCategoryPrefix.length]:@"";
NSDictionary *body=@{@"page":@(_onlineMode?_onlinePage:1),@"category":category,@"search":_onlineMode?(_search.stringValue?:@""):@""};
NSProgress *task=[DYOnlineLUTClient request:@"/dayu-color/v1/lut/catalog" body:body authenticated:YES completion:^(NSData *data,NSError *error){
if(self->_closed||!self->_onlineMode||generation!=self->_onlineCatalogGeneration)return;
if(self->_closed||generation!=self->_onlineCatalogGeneration)return;
[self->_onlineCatalogTask release];self->_onlineCatalogTask=nil;
NSDictionary *value=[DYOnlineLUTClient JSON:data error:&error];
if(error||![value[@"items"]isKindOfClass:NSArray.class]||![value[@"categories"]isKindOfClass:NSArray.class]){
[self->_onlineEntries release];self->_onlineEntries=nil;[self rebuildGrid];[self setStatus:error.localizedDescription?:@"在线目录格式无效。"];self->_emptyLabel.stringValue=error.localizedDescription?:@"请刷新在线目录。";return;
[self->_onlineEntries release];self->_onlineEntries=nil;[self updateSourceControls];if(self->_onlineMode){[self rebuildGrid];[self setStatus:error.localizedDescription?:@"在线目录格式无效。"];self->_emptyLabel.stringValue=error.localizedDescription?:@"请刷新在线目录。";}return;
}
NSMutableArray *entries=[NSMutableArray array],*categories=[NSMutableArray array];
for(id category in value[@"categories"])if([category isKindOfClass:NSString.class]&&[category length]<=191)[categories addObject:category];
@@ -890,8 +931,9 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
}
[self->_onlineEntries release];self->_onlineEntries=[entries copy];[self->_onlineCategories release];self->_onlineCategories=[categories copy];
self->_onlineTotal=[value[@"total"]isKindOfClass:NSNumber.class]?MAX(0,[value[@"total"]integerValue]):entries.count;
self->_previousPage.enabled=self->_onlinePage>1;self->_reveal.enabled=self->_onlinePage*60<self->_onlineTotal;
[self rebuildFolders];[self rebuildGrid];[self setStatus:@"点选下载并应用;预览当前帧可在线生成效果图。"];
self->_previousPage.enabled=self->_onlinePage>1;[self updateSourceControls];
[self rebuildFolders];if(self->_onlineMode){[self rebuildGrid];[self setStatus:@"自动加载在线预览;点击安装到本地分类并应用。"]; }else [self layoutBrowser];
[self generateOnlinePreviews];
}];
_onlineCatalogTask=[task retain];
}
@@ -899,42 +941,54 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
for(NSDictionary *entry in _onlineEntries)if([entry[@"path"]isEqual:path])return entry;return nil;
}
- (void)captureOnlineFrame {
if(!_onlineMode||_closed)return;
if(!_onlineStarted||_closed||_compactRecent)return;
NSString *quality=[self previewQualityForFrames:_previewFrames];NSData *pixels=_previewFrames[quality];NSValue *value=_previewFrames[[quality stringByAppendingString:@"Size"]];
NSSize size=value?value.sizeValue:NSZeroSize;
if(!pixels.length||size.width<1||size.height<1||pixels.length!=(NSUInteger)(size.width*size.height)*16){[self setStatus:@"暂无时间线帧,请先移动播放头或播放片段再重试。"];return;}
[self invalidatePreviewImages];[_onlinePNG release];_onlinePNG=nil;[_onlineFrame release];_onlineFrame=[_previewFrames copy];
DYBrowserWork *work=_work;[self setStatus:@"正在准备当前帧缩略图…"];
dispatch_async(_previewQueue,^{@autoreleasepool{
if(work.cancelled)return;NSError *error=nil;CGFloat scale=MIN(1.,sqrt(230400./(size.width*size.height)));
if(!pixels.length||size.width<1||size.height<1||pixels.length!=(NSUInteger)(size.width*size.height)*16){if(_onlineMode)[self setStatus:@"等待时间线缓存帧,收到后将自动预览。"];return;}
NSUInteger generation=++_onlineFrameGeneration;_onlineFramePreparing=YES;
[self resetOnlinePreviewWork];[_onlineThumbnailCache removeAllObjects];
[_onlinePNG release];_onlinePNG=nil;[_onlineFrame release];_onlineFrame=[_previewFrames copy];
if(_onlineMode){[self invalidatePreviewImages];for(DYBrowserTile *tile in _tiles.allValues){tile.thumbnail=nil;tile.failure=nil;tile.previewGeneration=0;[tile setNeedsDisplay:YES];}[_compareView setOriginal:nil styled:nil];_compareSlider.enabled=NO;}
DYBrowserWork *work=_onlineWork;if(_onlineMode)[self setStatus:@"正在准备当前缓存帧缩略图…"];
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED,0),^{@autoreleasepool{
if(work.cancelled)return;NSError *error=nil;
CGFloat scale=MIN(1.,MIN(640./MAX(size.width,size.height),sqrt(230400./(size.width*size.height))));
NSSize output=NSMakeSize(MAX(1,floor(size.width*scale)),MAX(1,floor(size.height*scale)));
NSImage *image=DYLUTThumbnail(nil,pixels,size.width,size.height,output,&error);
NSBitmapImageRep *bitmap=(NSBitmapImageRep *)image.representations.firstObject;
NSData *png=[bitmap isKindOfClass:NSBitmapImageRep.class]?[bitmap representationUsingType:NSBitmapImageFileTypePNG properties:@{}]:nil;
dispatch_async(dispatch_get_main_queue(),^{DYLUTBrowser *owner=work.owner;if(!owner||work.cancelled)return;
if(!png||png.length>1500000){[owner setStatus:error.localizedDescription?:@"当前帧缩略图无法用于在线预览。"];return;}
owner->_onlinePNG=[png copy];[owner setStatus:@"正在上传缩略图并生成在线效果预览…"];[owner generateVisibleThumbnails];[owner refreshComparison];
dispatch_async(dispatch_get_main_queue(),^{DYLUTBrowser *owner=work.owner;if(!owner||work.cancelled||generation!=owner->_onlineFrameGeneration)return;
owner->_onlineFramePreparing=NO;
if(!png||png.length>1500000){[owner->_onlineFrame release];owner->_onlineFrame=nil;if(owner->_onlineMode)[owner setStatus:error.localizedDescription?:@"当前帧缩略图无法用于在线预览。"];return;}
owner->_onlinePNG=[png copy];if(owner->_onlineMode)[owner setStatus:@"正在上传缓存帧并批量生成在线预览…"];
[owner generateOnlinePreviews];[owner layoutBrowser];[owner refreshComparison];
});
}});
}
- (void)generateOnlinePreviews {
if(!_onlinePNG||_closed||!_onlineStarted)return;
// Prioritize on-screen results, then preload the remainder of this page.
if(_onlineMode)for(NSDictionary *entry in _visibleEntries)if(_tiles[entry[@"path"]]&&![self previewResultForPath:entry[@"path"]])[self requestOnlinePreview:entry[@"path"]];
for(NSDictionary *entry in _onlineEntries)if(![self previewResultForPath:entry[@"path"]])[self requestOnlinePreview:entry[@"path"]];
}
- (void)requestOnlinePreview:(NSString *)path {
if(!_onlinePNG||!_work||[_queuedPaths containsObject:path]||_onlineTransfers.count>=2)return;
if(!_onlinePNG||!_onlineWork||_onlineWork.cancelled||[_onlineQueuedPaths containsObject:path]||[_onlineThumbnailCache objectForKey:path]||_onlineTransfers.count>=2)return;
NSDictionary *entry=[self onlineEntryForPath:path];if(!entry)return;
[_queuedPaths addObject:path];DYBrowserWork *work=_work;
[_onlineQueuedPaths addObject:path];DYBrowserWork *work=_onlineWork;
__block NSProgress *task=nil;
task=[DYOnlineLUTClient request:[NSString stringWithFormat:@"/dayu-color/v1/lut/%@/preview",entry[@"id"]] body:@{@"frame_png":[_onlinePNG base64EncodedStringWithOptions:0]} authenticated:YES completion:^(NSData *data,NSError *error){
DYLUTBrowser *owner=work.owner;if(!owner||work.cancelled)return;
if(task)[owner->_onlineTransfers removeObject:task];[owner->_queuedPaths removeObject:path];
if(task)[owner->_onlineTransfers removeObject:task];[owner->_onlineQueuedPaths removeObject:path];
NSImage *image=nil;
if(!error&&data.length>24&&!memcmp(data.bytes,"\x89PNG\r\n\x1a\n",8)){
uint32_t width=0,height=0;memcpy(&width,(const uint8_t *)data.bytes+16,4);memcpy(&height,(const uint8_t *)data.bytes+20,4);width=CFSwapInt32BigToHost(width);height=CFSwapInt32BigToHost(height);
if(width&&height&&width<=640&&height<=640&&(uint64_t)width*height<=230400)image=[[[NSImage alloc]initWithData:data]autorelease];
}
NSDictionary *result=image?@{@"image":image}:@{@"error":error.localizedDescription?:@"服务器未返回有效的预览图。"};
[owner->_thumbnailCache setObject:result forKey:path cost:image?data.length:128];
[owner->_onlineThumbnailCache setObject:result forKey:path cost:image?data.length:128];
DYBrowserTile *tile=owner->_tiles[path];if(tile)[owner displayPreviewResult:result inTile:tile];
[owner refreshComparison];[owner generateVisibleThumbnails];
if(error)[owner setStatus:error.localizedDescription];else [owner setStatus:@"在线预览已更新;点击 LUT 下载并应用。"];
[owner refreshComparison];[owner generateOnlinePreviews];
if(owner->_onlineMode){if(error)[owner setStatus:error.localizedDescription];else [owner setStatus:@"在线预览已更新;点击安装到本地分类并应用。"]; }
}];
if(task)[_onlineTransfers addObject:task];
}
@@ -950,6 +1004,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
self->_selectionTask=[[self->_library importOnlineData:data identifier:entry[@"id"] name:name category:entry[@"category"] checksum:entry[@"checksum"] completion:^(NSString *path,NSError *failure){
if(self->_closed||generation!=self->_selectionGeneration)return;[self->_selectionTask release];self->_selectionTask=nil;
if(failure||!path){[self setStatus:failure.localizedDescription?:@"LUT 保存失败。"];return;}
[self rebuildFolders];[self layoutBrowser];
void (^applied)(NSError *)=^(NSError *applyError){
if(self->_closed||generation!=self->_selectionGeneration)return;[self->_selectionTask release];self->_selectionTask=nil;
if(applyError){[self setStatus:applyError.localizedDescription];return;}
@@ -957,7 +1012,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
[self->_onlineSelectedPath release];self->_onlineSelectedPath=[onlinePath copy];
[self->_selectionFrameTime release];self->_selectionFrameTime=[self->_previewFrames[@"time"]retain];
for(DYBrowserTile *button in self->_tiles.allValues){button.chosen=[button.identifier isEqual:onlinePath];[button setNeedsDisplay:YES];}
[self refreshComparison];[self setStatus:[@"已下载并应用 " stringByAppendingString:name]];if(closeAfter)[self close];
[self refreshComparison];[self setStatus:[@"已安装到本地分类并应用:" stringByAppendingString:name]];if(closeAfter)[self close];
};
self->_selectionTask=[(self->_selection?self->_selection(path,applied):DYLUTPrepareAsync(path,applied))retain];
}]retain];
+2 -2
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.22.0</string>
<string>1.22.1</string>
<key>CFBundleVersion</key>
<string>131</string>
<string>133</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>PlugInKit</key>
@@ -261,7 +261,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
self.accessButton=DYButton(@"刷新权限",DYBlue(),NO,self,@selector(refreshOnlineAccount:));
self.logoutButton=DYButton(@"退出登录",DYSecondary(),NO,self,@selector(logoutOnlineAccount:));
DYSurface *accountCard=DYCard(DYBlue(),DYStack(@[DYHeading(@"person.crop.circle",@"大鱼账号 · 在线 LUT",DYBlue()),self.accountTitle,self.accountDetail,
DYLabel(@"有效会员,或已购买文章 14421 / 15792,即可浏览和下载全部已发布在线 LUT。\n在插件中点击“在线预览当前帧”会发送当前帧缩略图到 dayu.media;服务器仅在本次请求中处理,不保存预览帧。",12,NSFontWeightRegular,DYSecondary()),
DYLabel(@"有效会员,或已购买文章 14421 / 15792,即可浏览和下载全部已发布在线 LUT。\n打开插件的 LUT 浏览器时,会自动发送当前缓存帧缩略图到 dayu.media 并批量加载在线预览;服务器不保存预览帧。点击在线 LUT 后安装到本地分类,可离线使用。",12,NSFontWeightRegular,DYSecondary()),
DYStack(@[self.loginButton,self.accessButton,self.logoutButton],NSUserInterfaceLayoutOrientationHorizontal,8)],NSUserInterfaceLayoutOrientationVertical,12));
NSArray *features = @[
@[@"slider.horizontal.3",@"完整调色",@"精准还原,自由塑造",@"CST 色彩管理、光影与曲线\nHSL、色轮、蜘蛛盘与白平衡",DYBlue()],
@@ -291,7 +291,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
BOOL allowed=[value[@"allowed"]isKindOfClass:NSNumber.class]&&[value[@"allowed"]boolValue];
self.accountTitle.stringValue=allowed?@"在线 LUT 已开放":@"账号已登录,尚无在线 LUT 权限";
NSString *name=[value[@"username"]isKindOfClass:NSString.class]?value[@"username"]:@"大鱼用户";
self.accountDetail.stringValue=[NSString stringWithFormat:@"%@\n%@",name,allowed?@"已识别本机绑定账号。在 FCP 的 LUT 浏览器切换“在线 LUT”即可使用。":@"需要有效会员,或购买文章 14421 / 15792。购买后点击刷新权限。"];
self.accountDetail.stringValue=[NSString stringWithFormat:@"%@\n%@",name,allowed?@"已识别本机绑定账号。在 FCP 的 LUT 浏览器分类栏中展开“在线 LUT”即可使用。":@"需要有效会员,或购买文章 14421 / 15792。购买后点击刷新权限。"];
}
- (void)restoreBoundOnlineAccount {
NSUInteger generation=++self.accountGeneration;[self.accountTask cancel];
+2 -2
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.22.0</string>
<string>1.22.1</string>
<key>CFBundleVersion</key>
<string>131</string>
<string>133</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
+17 -7
查看文件
@@ -2,22 +2,32 @@
更新于 2026-11-11(Asia/Shanghai)。这是新对话的接手入口。历史设计和实现细节按需查阅专项交接,复现和交付证据以对应版本的报告为准。
## 1.22.0(131)在线 LUT
## 1.22.1(133)统一 LUT 浏览器:本地测试通过
已接入主 APP 硬件 UUID 账号识别、微信登录回退、在线分类/搜索/分页、校验下载及手动当前帧在线预览。有效会员,或购买文章 **14421 / 15792 任意一个**的账号,可浏览全部已发布在线 LUT;每次请求由服务端复核设备绑定与权益。本地调色保持离线可用。点击“预览当前帧”才上传最长边 640 的 PNG 缩略图到 dayu.media,服务器内存处理,不保存帧;移动播放头不会自动上传。
用户已明确确认“我已测试可行”。本轮实现:打开浏览器时以当前缓存帧自动批量预载当前页在线效果图;在线和本地共用分类树,在线总分类列出子分类,本地支持二级及更深目录的展开/折叠;点击在线 LUT 校验下载后安装到本地对应分类并应用。首次无缓存帧时自动补载首帧,播放过程中不连续上传,保留“更新预览”。后台在线失败不影响本地操作。
两个 MU 后端文件已按 NAS 生产基线流程部署。44 项后端合约、46 项原生在线浏览器合约、40 项本地浏览器回归、6 项线上未授权检查和既有更新接口检查通过。最终正式 APP 的签名、票据、Gatekeeper、1,028 项正式安装检查、17 套模板及 PluginKit 唯一路径通过。
68 项在线/层级/导入合约、40 项本地浏览器回归通过。Release 编译及 1,028 项发布前检查通过。FCP 现场已观察到 1,233 项目录、已加载的合成色卡效果图、原图划像、统一侧栏及本地二级分类;用户随后确认测试可行。详见 [Debug 安装](verification/DebugDelivery1.22.1.json) 与 [现场及用户验收](verification/HostUnifiedLUTDebug1.22.1.json)。Motion 未复测。
已从唯一正式路径启动 **1.22.0(131)**,APP 公证 `1e57ee70-d099-4942-91fd-29a2d5f47a44` Accepted;实际编译为独立远端检出的 `d979f8958caf36cc7b97ea838960c69f7fbb4d91`。主 APP 自动识别 macOS 硬件 UUID 绑定账号,退出保持退出,刷新恢复通过。FCP 12.4 独立合成色卡验证共享登录、1,233 个 LUT/17 分类、云端当前帧缩略图、下载应用、原图划像和 2:01→3:24 播放,宿主正常退出。主 APP 留在已登录可用状态。只上传合成色卡,未上传用户素材。真实接口另核对全部 21 页、搜索、分类与下载摘要。
### 当前安装与授权例外
现场发现 SQL 编号/大小以字符串输出导致空网格,已在后端修正,44 项 PHP 合约覆盖,并在正式 FCP 重新验收通过。新机未绑定时的微信 OAuth 首次扫码和 Motion 宿主未实测。130 的 APP/PKG 曾通过验证但未发行,现已被 131 取代。最终 PKG 已完成 Installer 签名、公证 `bfb54c49-b563-4420-9e9b-2319e1565420`、票据与 Gatekeeper 验证,20 项验包通过;大小 44557321 字节,SHA-256 `82bfe89889bd7e09ba68d85c0a52f36bb291de4cfe98c509fb6df8d40d9dd2dd`。Release 准备上传。
用户明确要求“公证卡住了就先 debug 模式本地测试”,因此固定位置 `/Library/Plug-Ins/FxPlug/大鱼调色.app` 当前为 **Debug 配置 1.22.1(133),未公证**,已签名并由 FCP 从此路径运行,不能称为正式公证交付。调试 APP 带 `DYLocalDebugBuild=true` 标记;主 ID、团队、名称保持不变,生成的松散 Debug APP/服务已清理。用户可继续使用这个本地测试版本。
[专项实现和生产映射](research/OnlineLUTIntegration-20261111.md) · [部署](verification/OnlineLUTDeployment.json) · [安装](verification/Delivery1.22.0.json) · [宿主范围](verification/HostOnlineLUT1.22.0.json) · [构建恢复](verification/OnlineLUTBuildRecovery.json)。127/128/129/130 为未发行候选,其诊断证据保留;最终 131 验证后已清理已知替换备份。工程文件既有的 Security 引用排序差异保留,不纳入本任务提交。站点文章和更新通道暂仍为 1.21.8(126),本轮没有改动它们。
旧公证 1.22.0(131)的回滚副本:`/Library/Plug-Ins/FxPlug/.dayu-color-formal-before-debug-8c17779060fb4b7a9b346754e5792616.app`。保留至正式 Release 安装验收完成;届时清理当前临时 Debug APP 和旧回滚副本,不保留额外安装。
### 原公证与正式发行
APP 实际编译源码 `7f833757da243f2a4610c23c36ec278b44c80ad4`,从独立 HTTPS 干净检出构建,921 个跟踪文件逐字节核对。原提交 **`0a1d2d49-1a03-4cd4-acbe-ba37f1fee42d`** 仍待最终结果;等待命令曾异常退出,之后已按同一编号查询,没有重传。132 为未安装、未发行的候选,诊断记录保留。
Release APP 与原提交 ZIP 保留在 `/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/`。原 ZIP 摘要与恢复参数见 [恢复记录](verification/UnifiedLUTNotaryResume133.json)。`tools/deliver.py --resume-notary … --submitted-zip-sha256 … --compiled-source …` 会逐文件/符号链接核对已提交 APP,只查询原提交并在 Accepted 后粘附、安装,不重编或重签。恢复安装前需先正常退出当前 Debug 主 APP 与 FCP,保留用户内容;取得交付锁后继续,完成后清理 Debug 及已不再需要的 131 回滚。
**尚未完成:** 正式 APP 公证/票据、替换 Debug、Release 宿主验收、PKG 和 Git Release 下载核验。无后端部署。站点文章和更新通道仍为 1.21.8(126)。下一步先读取原公证最终状态,获 Accepted 后完成正式交付。源码及本地测试记录按 Git 保存;既有工程 Security 引用排序差异保留,未纳入本轮提交。
131 的既有正式发行见 [此前交接](research/OnlineLUTRelease131Handoff.md)、[发行](verification/Release1.22.0.json)、[恢复](verification/Recovery1.22.0.json)。
## 接手与恢复
- 工程根:`/Volumes/备份/大鱼调色/大鱼调色`;主分支 `main`,远程 `https://dayu.media/git/dayu/dayu-color.git`。
- 正式编译和公证安装:`tools/deliver.py`;宿主验收后输入 `complete`。正式验收 APP 制包:`Packaging/build_pkg.py`,Release 发布:`Packaging/publish_release.py`。
- 后端:`Backend/` 为源码备份,本机专项工程 `/Users/mac/Downloads/dayumedia/dayu-color-beta`;NAS 仅生产部署,不在其上编译。生产相对路径与校验见专项记录及 `Backend/deploy_online_luts.py`。
- 继续测试时先在主 APP 自动识别硬件绑定账号,未绑定时微信登录,再在插件切换“在线 LUT”;手动预览当前帧后核对真实目录、下载和云端图像,新机 OAuth 首次扫码仍需真实用户确认,不能用硬件恢复验收代替。
- 继续测试时先在主 APP 自动识别硬件绑定账号,未绑定时微信登录,再在统一分类栏选择“在线 LUT”;打开时自动预载当前缓存帧,核对真实目录、分类安装和云端图像,新机 OAuth 首次扫码仍需真实用户确认,不能用硬件恢复验收代替。
- [恢复说明](RECOVERY.md) · [此前版本交接归档](research/HandoffHistory-20261111-before-online-release.md)。凭据、私钥和账号令牌留在钥匙串,不进入仓库。