比较提交

...
共修改 22 个文件,包含 813 行新增和 67 行删除

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

+15
查看文件
@@ -0,0 +1,15 @@
# 大鱼调色 1.6.1(44)
主 APP 改为深色产品介绍界面,发布地址 https://dayu.media 位于顶部。展示完整调色、LUT、胶片和局部蒙版/叠层特色。
启动自动检查并提交 PluginKit 注册,核对实际内嵌组件路径。成功后在状态卡显示清晰的3→2→1秒倒计时再退出;查看功能介绍可保留窗口。打开 FCP 检查会保留窗口,由用户确认画面和调节后点击“已确认正常,退出”。注册状态与宿主功能确认分开。
按用户要求关闭外层 APP 沙盒。保留 Developer ID、Hardened Runtime、可信时间戳、公证及票据。本轮未加入登录、授权、加密、自动更新或后端模块,调色/渲染/Metal/模板未改。
Apple Silicon,macOS14.6或更新。正式安装位置 /Library/Plug-Ins/FxPlug/大鱼调色.app,主/服务ID为com.dayu.color、com.dayu.color.XPC,团队B3W25FX5H5。实际编译源码90d6022520c59ea34f42b511daee85ac2936cfd9。
正式路径395项原生检查通过;已有登记、缺失登记重建、精确唯一路径回读、3秒退出、保留介绍和重复检查通过。FCP实际使用按主APP指引由用户确认,本说明不将登记成功等同渲染验收。安装包已展开核验,本轮未再次运行系统安装器。
APP公证23d7b69c-5585-435d-ad07-faee061e0ccb Accepted;PKG公证7315225d-a350-4c65-9e87-5784035ea018 Accepted。最终PKG由Developer ID Installer签署,签名、票据及Gatekeeper通过。
安装包 大鱼调色-1.6.1.pkg,40,854,422字节;SHA-256 `d075373d672b8f0146b98f3151c9f74cd6b97e8a1081e0d0796f53af7f291da0`。包含正式APP和既有FCP模板,不含用户媒体、LUT库或预设。
+1 -1
查看文件
@@ -77,7 +77,7 @@ def main():
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、预设或媒体文件。",
license="", conclusion="大鱼调色已安装。请完成插件 APP 的系统提示,随后退出并重新打开 Final Cut Pro / Motion。\n如果效果未出现,可在访达打开 /Library/Plug-Ins/FxPlug/大鱼调色.app 后再次启动宿主。"))
license="", conclusion="大鱼调色已安装。主 APP 自动注册插件,成功后显示3秒倒计时退出。可点击“打开 FCP 检查”保留窗口,并在宿主中实际检查效果。"))
manifest_path = CACHE / "dayu-color-package-manifest.json"
manifest_path.write_text(json.dumps(manifest, ensure_ascii=False, indent=2) + "\n")
command = ["/usr/bin/python3", str(skill / "package_fxplug.py"), "--repo", str(forge), "--manifest", str(manifest_path)]
+4 -2
查看文件
@@ -1,9 +1,11 @@
# 大鱼调色
原生 FxPlug 4 调色器,当前正式安装版本 **1.6.0(39)**。唯一安装位置为 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;Final Cut Pro 中从“效果 → 大鱼调色”添加。
原生 FxPlug 4 调色器,当前正式安装版本 **1.6.1(44)**。唯一安装位置为 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;Final Cut Pro 中从“效果 → 大鱼调色”添加。
交接与恢复入口:[大鱼调色FxPlug4交接.md](大鱼调色FxPlug4交接.md)。
主 APP 已改为深色产品介绍界面,发布地址置顶;启动自动注册并回读系统登记,成功后在状态卡显示3秒倒计时退出。查看介绍或打开FCP检查可保留窗口;FCP中的实际效果由用户确认。外层沙盒按用户要求关闭,登录、授权、加密、自动更新及后端暂未接入。见[本轮说明](research/MainApp1.6.1.md)与[主APP验证](verification/MainApp1.6.1.json);后续账号工作仍参考[原交接](大鱼调色主APP开发交接.md)。
## 胶片模拟与通道混合器
新增可重复的胶片模拟和通道混合器,现有调色、蒙版、区域跟踪和相邻叠层保留。每个新工具都有独立眼睛、折叠、复位、蒙版、数量标记和“再加一层”;新增层从默认值开始。
@@ -101,6 +103,6 @@ LUT 缩略图浏览器使用宿主的独立可调整窗口:拖动标题栏移
正式发行包由 PKG 工坊技能生成,包含 APP 与 FCP 模板,不含用户 LUT、预设或媒体。安装与发布证据分别保存在 [Package.json](verification/Package.json) 和 [Release.json](verification/Release.json);以其中记录的版本和成功状态为准。
正式发行包:[大鱼调色-1.6.0.pkg](../发行包/大鱼调色-1.6.0.pkg)。当前安装、公证、验包与Release下载结果分别以[Delivery](verification/Delivery.json)、[Package](verification/Package.json)、[Release](verification/Release.json)为准。[1.6.0 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102)用于保存最终发行包。历史[1.5.0 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.5.0-film-mixer-20261102)及更早标签和发行包保留。
当前发行包:[大鱼调色-1.6.1.pkg](../发行包/大鱼调色-1.6.1.pkg),主APP与注册验证见[1.6.1记录](verification/MainApp1.6.1.json)。历史发行包:[大鱼调色-1.6.0.pkg](../发行包/大鱼调色-1.6.0.pkg)。当前安装、公证、验包与Release下载结果分别以[Delivery](verification/Delivery.json)、[Package](verification/Package.json)、[Release](verification/Release.json)为准。[1.6.0 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102)已发布(Release373 / 附件18),草稿正常浏览器下载和发布后完整下载均校验40,833,847字节及SHA-256一致。标签296个文件远端逐字节恢复核验通过,本轮恢复/下载及生成APP副本已清理,见[标签恢复](verification/PrintLooksReleaseRecovery.json)与[清理记录](verification/PrintLooksCleanup.json)。历史[1.5.0 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.5.0-film-mixer-20261102)及更早标签和发行包保留。
1.3.1 的历史验收包含 Sony 默认、可见复位、浮动浏览器、系统窗口缩放、两种布局、最近排序与关闭重开。原生检查单独覆盖几何/布局持久化和鼠标事件;当时自动化没有独立确认自由标题栏/边缘拖动。1.4.0 另在独立合成工程中完成上文的宿主检查,用户确认中心拖动后保留其试调状态。
+11 -1
查看文件
@@ -2,7 +2,15 @@
当前交接:[大鱼调色FxPlug4交接.md](大鱼调色FxPlug4交接.md)。
## 当前1.6.0(39):八种印片、低版本模板与默认映射
## 当前1.6.1(44):主 APP 界面与自动注册
远程 https://dayu.media/git/dayu/dayu-color.git ,main。实际编译源码 `90d6022520c59ea34f42b511daee85ac2936cfd9`,签名团队B3W25FX5H5,唯一正式位置 `/Library/Plug-Ins/FxPlug/大鱼调色.app`。主/服务Bundle ID维持com.dayu.color、com.dayu.color.XPC,Apple Silicon / macOS14.6或更新。Xcode27.1、FxPlugSDK4.3.5;无LFS或子模块。
主界面、显式注册、精确路径回读和3秒倒计时通过;独立用户FCP确认单独记录,不把登记当作渲染验收。调色/Metal/模板未改,395项正式原生检查通过。证书、私钥和公证凭据需独立恢复,不在Git中;准备本机签名身份与profile后用tools/deliver.py进行Release构建和正式交付。
通过克隆仓库并 `git switch --detach 90d6022520c59ea34f42b511daee85ac2936cfd9` 可恢复实际编译节点;`verification/Delivery.json`、MainApp1.6.1.json、MainAppRecovery1.6.1.json分别记录安装、UI/登记及远端恢复。正式PKG `大鱼调色-1.6.1.pkg`,40,854,422字节,SHA-256 `d075373d672b8f0146b98f3151c9f74cd6b97e8a1081e0d0796f53af7f291da0`;PKG公证7315225d-a350-4c65-9e87-5784035ea018 Accepted,20项展开检查通过。未再次执行系统安装器。发行标签为v1.6.1-main-app-20261102,Release上传及下载结果见verification/Release.json;FCP用户确认仍单独记录。
## 历史1.6.0(39):八种印片、低版本模板与默认映射
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.6.0-print-looks-20261102`。APP实际编译源码 `e5affd3f097fc96f87f41be8e1a3f131ed01daeb`,公证 `5d74c04c-8a30-47e9-822d-4f616dfdee56` Accepted。APP和内部XPC固定ID、唯一正式路径与签名团队不变。正式395项自检、独立原版136项印片对照、FCP12.4八外观/叠层/蒙版100键跟踪/三个完整导出与冷重开通过,见 `verification/HostPrintLooks1.6.0.json`。
@@ -288,3 +296,5 @@ python3 Packaging/build_pkg.py --pkg-forge-repo /实际/PKG工坊源码目录 --
文档整理前 main 为 `bbdd47d1d74e241f1f144bb2c245204e86973b3f`。交接标签 `handoff-mask-tracking-tools-20261101` 保存最新 `大鱼调色FxPlug4交接.md` 及 `research/MaskTrackingAndToolStack.md`,区分正式 1.3.1(19)与尚未实现的多个独立 HSL、每实例蒙版和跟踪。本文档提交未重新构建、安装或发布 APP/PKG,不移动原发行标签;父级“大鱼调色盘”只读参考。接续时保护用户当前窗口、布局、LUT 选择和工程。
正式PKG `大鱼调色-1.6.0.pkg`,40833847字节,SHA-256 `13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca`;PKG公证 `4716e3c7-8199-4dc1-940c-2376dd647e9b` Accepted,签名、票据、Gatekeeper和20项展开验包通过。发行包未再次运行系统安装器。
最终[Release373](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102) / 附件18已发布并回读确认。标签 `v1.6.0-print-looks-20261102` 对应完整SHA `0cc51149a6f21ebe09465b4fd7130451bedd57bb`;草稿正常浏览器下载与发布后完整下载均校验40,833,847字节及SHA-256一致。发行标签296文件逐字节恢复和full/strict fsck通过,与实际编译SHA的程序源码完全一致。恢复clone、独立构建和下载副本清理完成;已知相关位置仅正式39版APP,历史发行包和私人验收数据保留。记录见 `verification/Release.json`、`ReleaseDraftDownload1.6.0.json`、`PrintLooksReleaseRecovery.json`、`PrintLooksCleanup.json`。
+31
查看文件
@@ -0,0 +1,31 @@
# 主 APP 1.6.1(44)
本轮只改现有主 APP 的产品介绍、系统插件注册及退出体验。按用户最新说明,发布地址位于最顶部,关闭外层 APP 沙盒;登录、授权、加密、自动更新及后端均未接入。调色、渲染、参数、Uniform、预设、Metal 和 FCP 模板保持原样。
## 最终界面与交互
沿用 Objective-C/AppKit、Nib 连线和手动内存管理。采用 standard 档原生交互,深色静态渐变、圆角彩色卡片和胶囊按钮呼应参考图。比较单列介绍、左右双栏、状态+使用指引+双列特色三种结构后,选择第三种:顶部可点击的发布地址 https://dayu.media,随后产品名称/版本、插件注册与宿主检查,最后四张完整调色、LUT、胶片、蒙版叠层特色卡。默认920×850,最小760×620,纵向滚动。
每次启动:检查内嵌组件 → 提交注册 → 系统回读确认。成功后在注册卡片内清晰显示3→2→1秒倒计时并退出,取消了旧版底部难以看到的提示。查看介绍/⌘I取消本次自动退出;⌘R可重新检查,工作期间防止重复提交;⌘W关闭窗口、⌘Q退出。失败时保留窗口和重试入口。
“打开FCP检查”会保留本窗口,并按Bundle ID打开Final Cut Pro。用户在FCP内将大鱼调色应用到片段,确认画面与调节正常后,可点击“已确认正常,退出”。系统注册成功与宿主功能确认分开记录;自动化不代替用户点击确认。Motion也有明确入口,覆盖正式及历史两种宿主Bundle ID。
## 系统登记与权限
外层AppDelegate拥有唯一注册状态:checking → registering → ready/failed。PluginKit操作在后台队列,UI在主线程。先验证精确内嵌组件的Bundle ID、当前构建号、FxPlug协议及登记版本1.1,再向/usr/bin/pluginkit提交独立路径参数;查询返回的标识/协议/完整路径必须匹配。1.1是登记协议版本,不是APP版本。不使用shell字符串、不需管理员提权、不改变其他插件的用户选择。
40/41候选发现沙盒允许注册却拒绝CLI的PKDiscoverAll查询,即使不带-A也会失败,不能把它解释为“插件未注册”。用户随后明确允许关闭沙盒。最终移除主APP的app-sandbox entitlement,查询可直接回读;不采用42候选的应答降级。内嵌服务原本未启用该沙盒,Developer ID、Hardened Runtime、可信时间戳、公证、票据及Gatekeeper要求保持。
本机诊断写入 ~/Library/Application Support/com.dayu.color/Registration.json,记录登记应答、实际路径、版本、进程、退出原因及用户确认,不联网、不含凭据。--show-introduction可保留介绍,仍执行真实注册流程。
## 视觉与无障碍
使用原生按钮、可访问文本、键盘快捷键、焦点环和状态播报。不使用透明采样、模糊、着色器或装饰性动画;增强对比度加粗边界,进度采用系统控件。实际测试、未覆盖的VoiceOver/系统显示选项及暂定评分以verification/MainApp1.6.1.json为准,不仅凭截图宣称90分质量。
## 来源、身份与交付
只读参考用户指定的 https://dayu.media/git/dayu/fcpx-qwen3-asr.git ,提交113069c74aff935db2082b5bcd8e1aa47fe1fbf2中的ContentView.swift、LicenseViewModel.swift;借鉴配色和层级,没有引入其会员、计费或识别业务代码。
唯一正式路径 /Library/Plug-Ins/FxPlug/大鱼调色.app;主/服务Bundle ID为com.dayu.color、com.dayu.color.XPC,版本同步1.6.1(44)。实际编译源码90d6022520c59ea34f42b511daee85ac2936cfd9。40/41/43是本轮定位或界面候选,42未安装,均不发布安装包;历史已发布版本及用户验收媒体/预设保留。
APP签名、公证、票据、正式安装、自检见verification/Delivery.json和InstalledSelfTest.json;主界面/注册验证见MainApp1.6.1.json;安装包、Release及独立恢复见Package.json、Release.json和MainAppRecovery1.6.1.json。以各记录的实际状态为准,不将系统登记等同于用户已确认宿主功能。
+2
查看文件
@@ -57,3 +57,5 @@ APP模板ozml5.11 / Motion5.4.5的当前FCP12.4加载、渲染及清洁界面通
稳定原生注册默认0保持原API合同,但实机证明它不能冻结FCP关联模板的旧默认:三组已保存印片主效果也从0跟随新模板到1。对比仅此用户要求的默认变化,其余277项值及paths/spider/tools完整载荷不变,主效果eye在这些印片夹具中原本关闭,印片渲染链不受该开关变化影响。不得把原生模拟宿主的旧默认0检查等同于旧FCP主效果逐字节不变。实际新手动关闭能保存,冷重开结果已证实。旧独立一级层省略值保留0的兼容逻辑仍有效。
最终Metal SHA `6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d` 与候选36及独立136项原版印片对照完全相同;最后两次补充只修改参数默认和原生界面/叠层跳过逻辑,没有修改八种印片数学。最终交付结合Build36完整八外观/100键跟踪/导出证据及Build39完整载荷对比、默认/链接/保存/当前导出证据,不将旧构建的界面操作冒充最终构建重复执行。
最终1.6.0(39)PKG公证 `4716e3c7-8199-4dc1-940c-2376dd647e9b` Accepted,20项展开验包通过。Release373/附件18发布,草稿与正式完整下载40,833,847字节和SHA `13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca` 一致;标签0cc51149a6f21ebe09465b4fd7130451bedd57bb已独立恢复296文件,程序源码与编译节点e5affd3一致。当前APP和资源在固定位置;恢复构建、下载及生成APP副本已清理。
+8 -8
查看文件
@@ -2,18 +2,18 @@
"status": "verified",
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.6.0",
"build": "39",
"version": "1.6.1",
"build": "44",
"team": "B3W25FX5H5",
"notaryID": "5d74c04c-8a30-47e9-822d-4f616dfdee56",
"notaryID": "23d7b69c-5585-435d-ad07-faee061e0ccb",
"notaryStatus": "Accepted",
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
"sourceCommit": "e5affd3f097fc96f87f41be8e1a3f131ed01daeb",
"sourceCommit": "90d6022520c59ea34f42b511daee85ac2936cfd9",
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
"templateSHA256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
"shaderSHA256": "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d",
"hostVerification": "verification/HostPrintLooks1.6.0.json",
"additionalHostVerification": "verification/HostPrimaryDefaults1.6.0.json",
"nativeChecks": 395,
"printReferenceChecks": 136
"verificationScope": "Formal installation, main APP UI, PluginKit registration, 3-second exit and 395 native checks. FCP interactive functionality is confirmed by the user.",
"hostVerification": "awaiting-user-confirmation",
"mainAppVerification": "verification/MainApp1.6.1.json",
"nativeChecks": 395
}
+4 -4
查看文件
@@ -12,7 +12,7 @@
"error": "未提供错误信息",
"name": "runtime-directory",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/81DF4064-2BBA-4E89-AC85-020D7F1270BC"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/ED00D426-57B3-45AD-86FA-0A5A8B38E1F2"
},
{
"descriptors": 278,
@@ -820,7 +820,7 @@
"error": "未提供错误信息",
"name": "renderer-export-33cube",
"pass": true,
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/81DF4064-2BBA-4E89-AC85-020D7F1270BC/diagnostic-export.cube"
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/ED00D426-57B3-45AD-86FA-0A5A8B38E1F2/diagnostic-export.cube"
},
{
"bytes": 1186074,
@@ -840,7 +840,7 @@
},
{
"heartbeats": 0,
"maximumGapMS": 96.47729154676199,
"maximumGapMS": 92.54920833333813,
"name": "external-activation-main-loop-responsive",
"pass": true
},
@@ -2067,6 +2067,6 @@
"pass": true
}
],
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/81DF4064-2BBA-4E89-AC85-020D7F1270BC",
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/ED00D426-57B3-45AD-86FA-0A5A8B38E1F2",
"scope": "Native model and renderer integration with real Metal/IOSurface textures and fake FxPlug host selectors; no GUI or live host document."
}
+107
查看文件
@@ -0,0 +1,107 @@
{
"passResult": true,
"version": "1.6.1",
"build": "44",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"compiledSource": "90d6022520c59ea34f42b511daee85ac2936cfd9",
"existingRegistrationStartup": {
"before": {
"output": " com.dayu.color.XPC(1.1)\tB4382CC6-0A29-4014-95DF-17FF12BD426A\t2026-11-02 08:19:21 +0000\t/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit\n (1 plug-in)\n",
"code": 0
},
"submissionAccepted": true,
"submission": {
"output": "",
"code": 0
},
"plugin": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit",
"version": "1.6.1",
"terminationReason": "registration-succeeded",
"executable": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/MacOS/大鱼调色",
"registered": true,
"hostVerification": "awaiting-user-confirmation",
"bundleID": "com.dayu.color",
"confirmationMethod": "exact-path-discovery",
"after": {
"output": " com.dayu.color.XPC(1.1)\t46C65B43-DF7C-4DEF-A159-4C46E0C6F2E3\t2026-11-02 08:19:22 +0000\t/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit\n (1 plug-in)\n",
"code": 0
},
"pid": 1957,
"discoveryVerified": true,
"status": "registered",
"build": "44"
},
"sandboxDisabled": true,
"nativeChecks": 395,
"hostVerification": "awaiting-user-confirmation",
"registryAfterRemoval": " (no matches)\n",
"externalRegistryAfterRepair": " com.dayu.color.XPC(1.1)\t7594B515-4788-4BD2-8F31-DA38C23CFF88\t2026-11-02 08:20:00 +0000\t/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit\n (1 plug-in)\n",
"keyboardShortcuts": [
"Command-I preserved introduction",
"Command-R repeated three times without re-entry failure"
],
"visualReview": [
"top publication link is clickable",
"successful registration state matches registry",
"four feature cards and FCP confirmation controls visible"
],
"uiProfile": "standard",
"swiftUIAudit": "not applicable: Objective-C/AppKit; audit reports no Swift files",
"unverified": [
"Actual user FCP confirmation",
"VoiceOver spoken reading and system accessibility display settings",
"Full runtime resize matrix"
],
"appleFidelityProvisional": {
"total": 84,
"platform": 14,
"layout": 13,
"semantics": 13,
"interaction": 18,
"motion": 13,
"accessibility": 5,
"implementation": 8,
"evidenceCap": "Assistive technology and reduced-effects settings not fully exercised; no 90-point quality claim."
},
"countdownSeconds": 3,
"countdownVisibleInRegistrationCard": true,
"automaticExitVerified": true,
"automaticExitProcessAbsent": true,
"registrationRepairPreviousBuild": "43: same registration implementation; only countdown/UI placement changed in44",
"priorBuild43MissingRegistrationEvidence": "Missing registration was repaired and externally verified on43 before countdown-only change.",
"missingRegistrationRepaired": {
"before": {
"output": " (no matches)\n",
"code": 0
},
"submissionAccepted": true,
"submission": {
"output": "",
"code": 0
},
"plugin": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit",
"version": "1.6.1",
"executable": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/MacOS/大鱼调色",
"registered": true,
"hostVerification": "awaiting-user-confirmation",
"bundleID": "com.dayu.color",
"confirmationMethod": "exact-path-discovery",
"after": {
"output": " com.dayu.color.XPC(1.1)\t7594B515-4788-4BD2-8F31-DA38C23CFF88\t2026-11-02 08:20:00 +0000\t/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit\n (1 plug-in)\n",
"code": 0
},
"pid": 2000,
"discoveryVerified": true,
"status": "registered",
"build": "44"
},
"finalEntitlements": {},
"actualProcessPaths": [
"2000 /Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/MacOS/大鱼调色",
"2040 /Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro",
"2048 /Library/Plug-Ins/FxPlug/大鱼调色盘.app/Contents/PlugIns/DayuColorService.pluginkit/Contents/MacOS/DayuColorService",
"2050 /Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service"
],
"shaderSHA256": "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d",
"renderingSourceUnchanged": true
}
+11
查看文件
@@ -0,0 +1,11 @@
{
"passResult": true,
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"compiledSource": "90d6022520c59ea34f42b511daee85ac2936cfd9",
"recoveredFiles": 301,
"contentByteComparison": true,
"gitFsck": "full strict passed",
"LFS": false,
"submodules": false,
"scope": "Compiled source recovered from remote; final release tag recovery follows packaging."
}
+16 -16
查看文件
@@ -1,7 +1,7 @@
{
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.0.pkg",
"sha256": "13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca",
"bytes": 40833847,
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.1.pkg",
"sha256": "d075373d672b8f0146b98f3151c9f74cd6b97e8a1081e0d0796f53af7f291da0",
"bytes": 40854422,
"testUnsigned": false,
"installationExecuted": false,
"checks": [
@@ -31,27 +31,27 @@
"source": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"payload": "Library/Plug-Ins/FxPlug/大鱼调色.app",
"bundleID": "com.dayu.color",
"version": "1.6.0",
"build": "39"
"version": "1.6.1",
"build": "44"
},
{
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs/大鱼调色",
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.1d4fcfd5-b44e-4f28-bb22-fd0a728c6a8d/861AF1AF-F5D1-4FD8-A600-71EA2956FFE3/大鱼调色"
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.21611cce-8ce5-4aba-b084-8c1502807f9e/96DEBA59-1D5C-4848-AB60-9D8772D73B72/大鱼调色"
}
],
"signature": "Package \"大鱼调色-1.6.0.pkg\":\n Status: signed by a developer certificate issued by Apple for distribution\n Notarization: trusted by the Apple notary service\n Signed with a trusted timestamp on: 2026-11-02 07:28:07 +0000\n Certificate Chain:\n 1. Developer ID Installer: zhong luo (B3W25FX5H5)\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n C0 19 01 3C 67 88 8F 34 65 56 C5 91 3C E5 B6 12 4C 5D A6 DA F9 D8 \n DA 00 37 52 DF F0 F3 E6 00 B4\n ------------------------------------------------------------------------\n 2. Developer ID Certification Authority\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n 7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 \n F2 9C 88 CF B0 B1 BA 63 58 7F\n ------------------------------------------------------------------------\n 3. Apple Root CA\n Expires: 2035-02-09 21:40:36 +0000\n SHA256 Fingerprint:\n B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C \n 68 C5 BE 91 B5 A1 10 01 F0 24",
"gatekeeper": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.0.pkg: accepted\nsource=Notarized Developer ID",
"signature": "Package \"大鱼调色-1.6.1.pkg\":\n Status: signed by a developer certificate issued by Apple for distribution\n Notarization: trusted by the Apple notary service\n Signed with a trusted timestamp on: 2026-11-02 08:22:37 +0000\n Certificate Chain:\n 1. Developer ID Installer: zhong luo (B3W25FX5H5)\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n C0 19 01 3C 67 88 8F 34 65 56 C5 91 3C E5 B6 12 4C 5D A6 DA F9 D8 \n DA 00 37 52 DF F0 F3 E6 00 B4\n ------------------------------------------------------------------------\n 2. Developer ID Certification Authority\n Expires: 2027-02-01 22:12:15 +0000\n SHA256 Fingerprint:\n 7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03 \n F2 9C 88 CF B0 B1 BA 63 58 7F\n ------------------------------------------------------------------------\n 3. Apple Root CA\n Expires: 2035-02-09 21:40:36 +0000\n SHA256 Fingerprint:\n B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C \n 68 C5 BE 91 B5 A1 10 01 F0 24",
"gatekeeper": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.1.pkg: accepted\nsource=Notarized Developer ID",
"pass": true,
"scope": "Expanded package structural and payload verification only; no installer scripts executed and no host quit or registration performed.",
"notarization": {
"createdDate": "2026-11-02T08:22:39.341Z",
"message": "Successfully received submission info",
"status": "Accepted",
"id": "4716e3c7-8199-4dc1-940c-2376dd647e9b",
"name": "大鱼调色-1.6.0.pkg",
"createdDate": "2026-11-02T07:28:08.543Z",
"message": "Successfully received submission info"
"name": "大鱼调色-1.6.1.pkg",
"id": "7315225d-a350-4c65-9e87-5784035ea018"
},
"appCompiledSource": "e5affd3f097fc96f87f41be8e1a3f131ed01daeb",
"appBuild": "39",
"appCompiledSource": "90d6022520c59ea34f42b511daee85ac2936cfd9",
"appBuild": "44",
"packageBuilderRemote": "https://dayu.media/git/dayu/pkg-forge.git",
"packageBuilderCommit": "eb53707c0e67d8ddeab8c1270bb079f1050cfafe",
"templateSHA256": {
@@ -59,6 +59,6 @@
"large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
"small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a"
},
"installedAppHostAcceptance": "verification/HostPrintLooks1.6.0.json",
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
"installedAppHostAcceptance": "awaiting-user-confirmation",
"installScope": "本轮生成并展开验包,未运行系统安装器;正式APP的UI、登记、3秒倒计时、退出及395项原生检查通过。FCP实际使用由用户确认。"
}
+28
查看文件
@@ -0,0 +1,28 @@
{
"passResult": true,
"version": "1.6.0",
"build": "39",
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
"onlyMatchingInstalledAppInCheckedLocations": [
"/Library/Plug-Ins/FxPlug/大鱼调色.app"
],
"productRegistry": [
"com.dayu.color.XPC(1.1)\t0FFF5BF4-DF9D-4769-B3E0-CEF0B697EA9D\t2026-11-02 07:21:24 +0000\t/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit"
],
"removed": [
"/Users/mac/Library/Caches/CodexRecovery/dayu-color-print-1.6.0",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/RecoveryDerivedData",
"/Volumes/备份/大鱼调色-1.6.0.pkg",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/print-recovered-template.moef",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/print-recovered-template38.moef",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/print-recovered-template39.moef"
],
"generatedBuildAppAndLoosePluginAbsent": true,
"submissionZIPAbsent": true,
"previousCandidatesRemoved": true,
"retainedCurrentPackage": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.0.pkg",
"retainedHistoricalPackages": true,
"privateQAMediaAndPresetsRetained": true,
"scope": "Task cache, task recovery clone, project generated roots and known installation/Desktop/Downloads locations; no whole-disk uniqueness claim.",
"completed": "2026-11-02T07:34:06.072844+00:00"
}
+2 -1
查看文件
@@ -17,5 +17,6 @@
"generatedAppsRemoved": [
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/RecoveryDerivedData/Build/Products/Release/大鱼调色.app",
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/RecoveryDerivedData/Build/Products/Release/大鱼调色 XPC Service.pluginkit"
]
],
"recoveryCloneRemovedAfterVerification": true
}
@@ -0,0 +1,16 @@
{
"passResult": true,
"tag": "v1.6.0-print-looks-20261102",
"tagCommit": "0cc51149a6f21ebe09465b4fd7130451bedd57bb",
"compiledSource": "e5affd3f097fc96f87f41be8e1a3f131ed01daeb",
"sourceCodeIdenticalBetweenCompileAndTag": true,
"remote": "https://dayu.media/git/dayu/dayu-color.git",
"clone": "/Users/mac/Library/Caches/CodexRecovery/dayu-color-print-1.6.0",
"filesByteCompared": 296,
"fsck": "full/strict passed",
"compiledSourceRecovery": "verification/PrintLooksRecovery.json",
"releaseBuildNativeChecks": 395,
"lfs": false,
"submodules": false,
"recoveryCloneRemovedAfterVerification": true
}
+15 -17
查看文件
@@ -3,24 +3,22 @@
"repository": "dayu/dayu-color",
"repositoryID": 52,
"private": false,
"tag": "v1.5.0-film-mixer-20261102",
"releaseCommit": "85b6590944c4fb64825cf45f61c5280d4ffaa824",
"releaseID": 372,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.5.0-film-mixer-20261102",
"assetID": 17,
"assetName": "大鱼调色-1.5.0.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.5.0-film-mixer-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.5.0.pkg",
"bytes": 14380104,
"sha256": "3ecabc7a8bfd675b228a5f00016aa17a35b65b544055e57793ec3bff3d7e0294",
"tag": "v1.6.0-print-looks-20261102",
"releaseCommit": "0cc51149a6f21ebe09465b4fd7130451bedd57bb",
"releaseID": 373,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102",
"assetID": 18,
"assetName": "大鱼调色-1.6.0.pkg",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.6.0-print-looks-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.6.0.pkg",
"bytes": 40833847,
"sha256": "13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca",
"existingAssetReused": true,
"verification": "Authenticated full download SHA-256 and byte count, then release/asset read-back.",
"credentialSource": "macOS Keychain: dayu-git-api",
"status": "published-and-fully-verified",
"version": "1.5.0",
"build": "34",
"appCompiledSource": "06d531c443b0bb2f179022a4e64148394f5d0690",
"draftDownloadVerification": "verification/ReleaseDraftDownload1.5.0.json",
"repositoryVisibilityUnchanged": true,
"hostVerification": "verification/HostFilmMixer1.5.0.json",
"temporaryDownloadCleaned": true
"version": "1.6.0",
"build": "39",
"appCompiledSource": "e5affd3f097fc96f87f41be8e1a3f131ed01daeb",
"draftDownloadVerification": "verification/ReleaseDraftDownload1.6.0.json",
"hostVerification": "verification/HostPrintLooks1.6.0.json",
"repositoryVisibilityUnchanged": true
}
@@ -0,0 +1,18 @@
{
"status": "verified",
"releaseID": 373,
"assetID": 18,
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102",
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.6.0-print-looks-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.6.0.pkg",
"expectedBytes": 40833847,
"expectedSHA256": "13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca",
"localPackage": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.0.pkg",
"tag": "v1.6.0-print-looks-20261102",
"tagCommit": "0cc51149a6f21ebe09465b4fd7130451bedd57bb",
"passResult": true,
"actualDownloadedPath": "/Volumes/备份/大鱼调色-1.6.0.pkg",
"actualBytes": 40833847,
"actualSHA256": "13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca",
"verifiedAt": "2026-11-02T07:32:32.753960+00:00",
"verification": "Actual authenticated Edge download completed; independent downloaded file byte count and SHA-256 matched before publishing."
}
+3 -3
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.6.0</string>
<string>1.6.1</string>
<key>CFBundleVersion</key>
<string>39</string>
<string>44</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>PlugInKit</key>
@@ -71,7 +71,7 @@
<key>uuid</key>
<string>1C17B73B-F229-4C09-A434-EAF6DFF5F22A</string>
<key>version</key>
<string>1.6.0</string>
<string>1.6.1</string>
</dict>
<dict>
<key>className</key>
+342 -8
查看文件
@@ -1,15 +1,349 @@
#import "AppDelegate.h"
static NSString *const DYPluginID = @"com.dayu.color.XPC";
static NSString *const DYReleaseAddress = @"https://dayu.media";
static NSColor *DYColor(CGFloat r, CGFloat g, CGFloat b) { return [NSColor colorWithSRGBRed:r green:g blue:b alpha:1]; }
static NSColor *DYBlue(void) { return DYColor(.36,.65,1); }
static NSColor *DYGreen(void) { return DYColor(.26,.86,.53); }
static NSColor *DYSecondary(void) { return DYColor(.70,.74,.81); }
// Static opaque surfaces preserve the reference palette without expensive blur or motion.
@interface DYSurface : NSView
@property(retain) NSColor *tint;
@property BOOL backdrop;
@end
@implementation DYSurface
- (BOOL)isFlipped { return YES; }
- (void)drawRect:(NSRect)dirty {
BOOL contrast = NSWorkspace.sharedWorkspace.accessibilityDisplayShouldIncreaseContrast;
NSBezierPath *shape = [NSBezierPath bezierPathWithRoundedRect:NSInsetRect(self.bounds,1,1) xRadius:self.backdrop ? 0 : 22 yRadius:self.backdrop ? 0 : 22];
NSColor *base = DYColor(.105,.115,.14);
NSColor *start = self.backdrop ? DYColor(.105,.14,.20) : [base blendedColorWithFraction:.17 ofColor:self.tint];
NSColor *end = self.backdrop ? DYColor(.105,.115,.115) : base;
NSGradient *gradient = [[[NSGradient alloc] initWithStartingColor:start endingColor:end] autorelease];
[gradient drawInBezierPath:shape angle:35];
if (!self.backdrop) {
[[self.tint blendedColorWithFraction:contrast ? .15 : .62 ofColor:base] setStroke];
shape.lineWidth = contrast ? 2 : 1; [shape stroke];
}
}
- (void)dealloc { [_tint release]; [super dealloc]; }
@end
@interface DYActionButton : NSButton
@property(retain) NSColor *tint;
@property BOOL prominent;
@end
@implementation DYActionButton
- (void)drawRect:(NSRect)dirty {
NSRect rect = NSInsetRect(self.bounds,2,2);
NSBezierPath *shape = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:rect.size.height/2 yRadius:rect.size.height/2];
NSColor *base = self.prominent ? self.tint : [DYColor(.10,.12,.16) blendedColorWithFraction:.18 ofColor:self.tint];
if (self.highlighted) base = [base blendedColorWithFraction:.2 ofColor:NSColor.blackColor];
[base setFill]; [shape fill];
[[self.tint blendedColorWithFraction:.35 ofColor:NSColor.whiteColor] setStroke];
shape.lineWidth = NSWorkspace.sharedWorkspace.accessibilityDisplayShouldIncreaseContrast ? 2 : 1; [shape stroke];
NSColor *text = self.enabled ? (self.prominent ? NSColor.whiteColor : self.tint) : DYSecondary();
NSDictionary *attrs = @{NSFontAttributeName:[NSFont systemFontOfSize:13 weight:NSFontWeightSemibold],NSForegroundColorAttributeName:text};
NSSize size = [self.title sizeWithAttributes:attrs];
[self.title drawAtPoint:NSMakePoint((NSWidth(self.bounds)-size.width)/2,(NSHeight(self.bounds)-size.height)/2) withAttributes:attrs];
}
- (void)drawFocusRingMask { [[NSBezierPath bezierPathWithRoundedRect:NSInsetRect(self.bounds,2,2) xRadius:20 yRadius:20] fill]; }
- (NSRect)focusRingMaskBounds { return self.bounds; }
- (void)dealloc { [_tint release]; [super dealloc]; }
@end
static NSTextField *DYLabel(NSString *text, CGFloat size, NSFontWeight weight, NSColor *color) {
NSTextField *label = [NSTextField wrappingLabelWithString:text];
label.font = [NSFont systemFontOfSize:size weight:weight]; label.textColor = color;
label.translatesAutoresizingMaskIntoConstraints = NO;
[label setContentCompressionResistancePriority:NSLayoutPriorityRequired forOrientation:NSLayoutConstraintOrientationVertical];
return label;
}
static NSStackView *DYStack(NSArray *views, NSUserInterfaceLayoutOrientation orientation, CGFloat spacing) {
NSStackView *stack = [NSStackView stackViewWithViews:views];
stack.orientation = orientation; stack.spacing = spacing;
stack.alignment = orientation == NSUserInterfaceLayoutOrientationVertical ? NSLayoutAttributeLeading : NSLayoutAttributeTop;
stack.translatesAutoresizingMaskIntoConstraints = NO;
if (orientation == NSUserInterfaceLayoutOrientationHorizontal) stack.distribution = NSStackViewDistributionFillEqually;
return stack;
}
static void DYPin(NSView *child, NSView *parent, CGFloat inset) {
child.translatesAutoresizingMaskIntoConstraints = NO; [parent addSubview:child];
[NSLayoutConstraint activateConstraints:@[
[child.leadingAnchor constraintEqualToAnchor:parent.leadingAnchor constant:inset],
[child.trailingAnchor constraintEqualToAnchor:parent.trailingAnchor constant:-inset],
[child.topAnchor constraintEqualToAnchor:parent.topAnchor constant:inset],
[child.bottomAnchor constraintEqualToAnchor:parent.bottomAnchor constant:-inset]]];
}
static DYActionButton *DYButton(NSString *title, NSColor *tint, BOOL prominent, id target, SEL action) {
DYActionButton *button = [DYActionButton buttonWithTitle:title target:target action:action];
button.tint = tint; button.prominent = prominent; button.bordered = NO;
button.translatesAutoresizingMaskIntoConstraints = NO;
[button.heightAnchor constraintEqualToConstant:42].active = YES;
[button.widthAnchor constraintGreaterThanOrEqualToConstant:124].active = YES;
return button;
}
static DYSurface *DYCard(NSColor *tint, NSStackView *content) {
DYSurface *card = [[[DYSurface alloc] initWithFrame:NSZeroRect] autorelease];
card.tint = tint; card.translatesAutoresizingMaskIntoConstraints = NO; DYPin(content,card,22);
for (NSView *view in content.arrangedSubviews) [view.widthAnchor constraintEqualToAnchor:content.widthAnchor].active = YES;
return card;
}
static NSTextField *DYHeading(NSString *symbol, NSString *text, NSColor *color) {
NSTextField *label = DYLabel(text,15,NSFontWeightSemibold,color);
NSImage *image = [NSImage imageWithSystemSymbolName:symbol accessibilityDescription:nil];
if (image) {
NSTextAttachment *attachment = [[[NSTextAttachment alloc] init] autorelease];
attachment.image = image; attachment.bounds = NSMakeRect(0,-3,18,18);
NSMutableAttributedString *value = [[[NSMutableAttributedString alloc] initWithAttributedString:[NSAttributedString attributedStringWithAttachment:attachment]] autorelease];
[value appendAttributedString:[[[NSAttributedString alloc] initWithString:[@" " stringByAppendingString:text]
attributes:@{NSFontAttributeName:label.font,NSForegroundColorAttributeName:color}] autorelease]];
label.attributedStringValue = value; label.accessibilityLabel = text;
}
return label;
}
typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYReady, DYFailed };
@interface AppDelegate ()
@property(weak) IBOutlet NSWindow *window;
@property(assign) NSTextField *statusTitle, *statusDetail, *exitDetail;
@property(assign) DYActionButton *retryButton, *keepButton, *confirmationButton;
@property(assign) NSProgressIndicator *progress;
@property(assign) DYSurface *registrationCard;
@property DYRegistrationState registrationState;
@property BOOL keepOpen, terminating;
@property NSInteger secondsRemaining;
@property(retain) NSTimer *exitTimer;
@property(retain) NSMutableDictionary *diagnostics;
@end
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification*)n{
self.window.title=@"大鱼调色";[self.window setContentSize:NSMakeSize(540,280)];[self.window center];
NSView*v=[[[NSView alloc]initWithFrame:NSMakeRect(0,0,540,280)]autorelease];v.wantsLayer=YES;v.layer.backgroundColor=[NSColor colorWithSRGBRed:.025 green:.08 blue:.13 alpha:1].CGColor;self.window.contentView=v;
NSTextField*title=[NSTextField labelWithString:@"大鱼调色"];title.font=[NSFont boldSystemFontOfSize:28];title.textColor=[NSColor colorWithSRGBRed:.3 green:.75 blue:1 alpha:1];title.frame=NSMakeRect(32,212,460,42);[v addSubview:title];
NSTextField*body=[NSTextField wrappingLabelWithString:@"已安装原生 FxPlug 调色效果。\n\n在 Final Cut Pro 的「效果 → 大鱼调色」中应用,或在 Motion 的滤镜中选择「大鱼调色」。\n\n输入转换、光影、曲线、HSL、色轮与 LUT 均在宿主检查器中编辑。"];body.font=[NSFont systemFontOfSize:14];body.textColor=[NSColor colorWithWhite:.86 alpha:1];body.frame=NSMakeRect(34,65,470,140);[v addSubview:body];
NSButton*b=[NSButton buttonWithTitle:@"打开 Final Cut Pro" target:self action:@selector(openHost:)];b.frame=NSMakeRect(30,20,170,32);[v addSubview:b];[self.window makeKeyAndOrderFront:nil];
- (void)applicationDidFinishLaunching:(NSNotification *)notification {
self.keepOpen = [NSProcessInfo.processInfo.arguments containsObject:@"--show-introduction"];
self.window.title = @"大鱼调色";
self.window.appearance = [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua];
self.window.titlebarAppearsTransparent = YES; self.window.backgroundColor = DYColor(.105,.14,.20);
self.window.contentMinSize = NSMakeSize(760,620); [self.window setContentSize:NSMakeSize(920,850)]; [self.window center];
[self buildInterface]; [self buildMenu];
[NSWorkspace.sharedWorkspace.notificationCenter addObserver:self selector:@selector(accessibilityChanged:)
name:NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification object:nil];
[self.window makeKeyAndOrderFront:nil]; [self checkRegistration:nil];
}
- (void)openHost:(id)sender{NSURL*u=[NSWorkspace.sharedWorkspace URLForApplicationWithBundleIdentifier:@"com.apple.FinalCut"];if(u)[NSWorkspace.sharedWorkspace openApplicationAtURL:u configuration:NSWorkspaceOpenConfiguration.configuration completionHandler:nil];}
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)app{return YES;}
- (void)buildMenu {
NSMenu *menu = [[[NSMenu alloc] initWithTitle:@"大鱼调色"] autorelease];
NSMenuItem *root = [[[NSMenuItem alloc] initWithTitle:@"大鱼调色" action:NULL keyEquivalent:@""] autorelease]; [menu addItem:root];
NSMenu *app = [[[NSMenu alloc] initWithTitle:@"大鱼调色"] autorelease]; root.submenu = app;
for (NSArray *entry in @[@[@"关于大鱼调色",NSStringFromSelector(@selector(orderFrontStandardAboutPanel:)),@""],
@[@"查看功能介绍",NSStringFromSelector(@selector(keepIntroduction:)),@"i"],
@[@"重新检查插件",NSStringFromSelector(@selector(checkRegistration:)),@"r"],
@[@"访问发布地址",NSStringFromSelector(@selector(openWebsite:)),@""],
@[@"关闭窗口",NSStringFromSelector(@selector(closeWindow:)),@"w"],
@[@"退出大鱼调色",NSStringFromSelector(@selector(terminate:)),@"q"]]) {
NSMenuItem *item = [[[NSMenuItem alloc] initWithTitle:entry[0] action:NSSelectorFromString(entry[1]) keyEquivalent:entry[2]] autorelease];
item.target = [entry[0] isEqualToString:@"退出大鱼调色"] || [entry[0] isEqualToString:@"关于大鱼调色"] ? NSApp : self; [app addItem:item];
}
NSApp.mainMenu = menu;
}
- (void)buildInterface {
DYSurface *backdrop = [[[DYSurface alloc] initWithFrame:NSZeroRect] autorelease]; backdrop.backdrop = YES; self.window.contentView = backdrop;
NSScrollView *scroll = [[[NSScrollView alloc] initWithFrame:NSZeroRect] autorelease];
scroll.drawsBackground = NO; scroll.hasVerticalScroller = YES; scroll.autohidesScrollers = YES; DYPin(scroll,backdrop,0);
DYSurface *document = [[[DYSurface alloc] initWithFrame:NSZeroRect] autorelease];
document.backdrop = YES; document.translatesAutoresizingMaskIntoConstraints = NO; scroll.documentView = document;
[NSLayoutConstraint activateConstraints:@[
[document.leadingAnchor constraintEqualToAnchor:scroll.contentView.leadingAnchor],
[document.topAnchor constraintEqualToAnchor:scroll.contentView.topAnchor],
[document.widthAnchor constraintEqualToAnchor:scroll.contentView.widthAnchor]]];
NSButton *website = [NSButton buttonWithTitle:@"发布地址 https://dayu.media ↗" target:self action:@selector(openWebsite:)];
website.bordered = NO; website.translatesAutoresizingMaskIntoConstraints = NO;
website.attributedTitle = [[[NSAttributedString alloc] initWithString:website.title attributes:@{
NSFontAttributeName:[NSFont systemFontOfSize:13 weight:NSFontWeightMedium],NSForegroundColorAttributeName:DYBlue()}] autorelease];
[website.heightAnchor constraintEqualToConstant:28].active = YES;
NSDictionary *info = NSBundle.mainBundle.infoDictionary;
NSArray *heroLabels = @[DYLabel(@"FINAL CUT PRO / MOTION",11,NSFontWeightSemibold,DYBlue()),
DYLabel(@"大鱼调色",42,NSFontWeightBold,NSColor.whiteColor),
DYLabel(@"从色彩还原到胶片质感,让每一次调色更从容。",15,NSFontWeightRegular,DYSecondary()),
DYLabel([NSString stringWithFormat:@"v%@ · 构建 %@ / 原生 FxPlug 4 · Apple Silicon",info[@"CFBundleShortVersionString"],info[@"CFBundleVersion"]],11,NSFontWeightMedium,DYSecondary())];
NSStackView *hero = DYStack(heroLabels,NSUserInterfaceLayoutOrientationVertical,8);
for (NSTextField *label in heroLabels) { label.alignment = NSTextAlignmentCenter; [label.widthAnchor constraintEqualToAnchor:hero.widthAnchor].active = YES; }
self.statusTitle = DYLabel(@"正在检查插件…",22,NSFontWeightSemibold,NSColor.whiteColor);
self.statusDetail = DYLabel(@"正在检查本机插件登记,随后自动提交注册。",13,NSFontWeightRegular,DYSecondary());
[self.statusDetail.heightAnchor constraintGreaterThanOrEqualToConstant:42].active = YES;
self.progress = [[[NSProgressIndicator alloc] initWithFrame:NSZeroRect] autorelease];
self.progress.style = NSProgressIndicatorStyleBar; self.progress.indeterminate = YES; self.progress.translatesAutoresizingMaskIntoConstraints = NO;
self.retryButton = DYButton(@"检查中…",DYBlue(),NO,self,@selector(checkRegistration:));
self.keepButton = DYButton(@"查看功能介绍",DYColor(.20,.46,.94),YES,self,@selector(keepIntroduction:));
self.exitDetail = DYLabel(@"注册成功后,将显示 3 秒退出倒计时。",15,NSFontWeightSemibold,DYGreen());
[self.exitDetail.heightAnchor constraintGreaterThanOrEqualToConstant:38].active = YES;
NSStackView *registration = DYStack(@[DYHeading(@"puzzlepiece.extension",@"插件连接",DYBlue()),self.statusTitle,self.statusDetail,self.progress,
self.exitDetail,DYStack(@[self.retryButton,self.keepButton],NSUserInterfaceLayoutOrientationHorizontal,8)],NSUserInterfaceLayoutOrientationVertical,13);
self.registrationCard = DYCard(DYBlue(),registration);
self.confirmationButton = DYButton(@"已确认正常,退出",DYGreen(),NO,self,@selector(confirmHost:));
self.confirmationButton.enabled = NO;
self.confirmationButton.toolTip = @"请先在 Final Cut Pro 中应用大鱼调色并确认效果正常,再点击此按钮。";
NSStackView *host = DYStack(@[DYHeading(@"play.rectangle",@"在 Final Cut Pro 中检查",DYGreen()),
DYLabel(@"调色,留在时间线里。",22,NSFontWeightSemibold,NSColor.whiteColor),
DYLabel(@"Final Cut Pro:效果 → 大鱼调色\n将效果应用到片段,确认画面与调节正常。\n打开宿主检查会保留本窗口,等待你确认。",13,NSFontWeightRegular,DYSecondary()),
DYStack(@[DYButton(@"打开 FCP 检查",DYColor(.20,.46,.94),YES,self,@selector(openFinalCut:)),DYButton(@"打开 Motion",DYGreen(),NO,self,@selector(openMotion:))],NSUserInterfaceLayoutOrientationHorizontal,8),
self.confirmationButton],NSUserInterfaceLayoutOrientationVertical,13);
DYSurface *hostCard = DYCard(DYGreen(),host);
NSStackView *top = DYStack(@[self.registrationCard,hostCard],NSUserInterfaceLayoutOrientationHorizontal,14);
[self.registrationCard.heightAnchor constraintEqualToAnchor:hostCard.heightAnchor].active = YES;
NSArray *features = @[
@[@"slider.horizontal.3",@"完整调色",@"精准还原,自由塑造",@"CST 色彩管理、光影与曲线\nHSL、色轮、蜘蛛盘与白平衡",DYBlue()],
@[@"square.grid.2x2",@"LUT 与风格",@"灵感,所见即所得",@"LUT 缩略图浏览与实时预览\n快速收藏,管理常用风格",DYColor(.67,.59,1)],
@[@"film",@"胶片质感",@"让画面更有温度",@"八种印片外观、颗粒与晕光\n辉光、暗角及通道混合器",DYColor(1,.67,.30)],
@[@"square.on.circle",@"局部与叠层",@"每个细节,都有层次",@"独立工具层、逐层蒙版\n画面控件与关键帧跟踪",DYGreen()]];
NSMutableArray *cards = [NSMutableArray array];
for (NSArray *feature in features) [cards addObject:DYCard(feature[4],DYStack(@[DYHeading(feature[0],feature[1],feature[4]),
DYLabel(feature[2],17,NSFontWeightSemibold,NSColor.whiteColor),DYLabel(feature[3],13,NSFontWeightRegular,DYSecondary())],NSUserInterfaceLayoutOrientationVertical,12))];
NSStackView *row1 = DYStack(@[cards[0],cards[1]],NSUserInterfaceLayoutOrientationHorizontal,14);
NSStackView *row2 = DYStack(@[cards[2],cards[3]],NSUserInterfaceLayoutOrientationHorizontal,14);
[((NSView *)cards[0]).heightAnchor constraintEqualToAnchor:((NSView *)cards[1]).heightAnchor].active = YES;
[((NSView *)cards[2]).heightAnchor constraintEqualToAnchor:((NSView *)cards[3]).heightAnchor].active = YES;
NSStackView *content = DYStack(@[website,hero,top,DYHeading(@"sparkles",@"一套工具,完成你的色彩表达",NSColor.whiteColor),row1,row2],NSUserInterfaceLayoutOrientationVertical,18);
DYPin(content,document,30);
for (NSView *view in content.arrangedSubviews) [view.widthAnchor constraintEqualToAnchor:content.widthAnchor].active = YES;
[document.heightAnchor constraintGreaterThanOrEqualToAnchor:scroll.contentView.heightAnchor].active = YES;
}
// PluginKit runs on a worker queue. Arguments are never interpreted as shell commands.
- (NSDictionary *)runPluginKit:(NSArray *)arguments {
NSTask *task = [[[NSTask alloc] init] autorelease]; task.executableURL = [NSURL fileURLWithPath:@"/usr/bin/pluginkit"]; task.arguments = arguments;
NSPipe *pipe = [NSPipe pipe]; task.standardOutput = pipe; task.standardError = pipe;
NSError *error = nil;
if (![task launchAndReturnError:&error]) return @{@"code":@(-1),@"output":error.localizedDescription ?: @"无法启动插件登记服务"};
NSDate *deadline = [NSDate dateWithTimeIntervalSinceNow:8];
while (task.running && deadline.timeIntervalSinceNow > 0) [NSThread sleepForTimeInterval:.05];
if (task.running) { [task terminate]; return @{@"code":@(-2),@"output":@"插件登记服务响应超时"}; }
NSData *data = [pipe.fileHandleForReading readDataToEndOfFile];
NSString *output = [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease] ?: @"";
return @{@"code":@(task.terminationStatus),@"output":output};
}
- (BOOL)registry:(NSDictionary *)query containsPlugin:(NSString *)path {
if ([query[@"code"] intValue] != 0) return NO;
for (NSString *line in [query[@"output"] componentsSeparatedByCharactersInSet:NSCharacterSet.newlineCharacterSet]) {
NSArray *fields = [line componentsSeparatedByString:@"\t"]; if (fields.count < 4) continue;
NSString *identity = [fields[0] stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet];
if ([identity hasPrefix:@"+"]) identity = [[identity substringFromIndex:1] stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet];
NSString *registered = [[fields lastObject] stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet];
// 1.1 is the registration protocol, not the APP version.
NSString *expected = [DYPluginID stringByAppendingString:@"(1.1)"];
if ([identity isEqualToString:expected] &&
[registered.stringByResolvingSymlinksInPath isEqualToString:path.stringByResolvingSymlinksInPath]) return YES;
}
return NO;
}
- (void)checkRegistration:(id)sender {
if (self.diagnostics && (self.registrationState == DYChecking || self.registrationState == DYRegistering)) return;
[self.exitTimer invalidate]; self.exitTimer = nil; self.registrationState = DYChecking;
self.retryButton.enabled = NO; self.retryButton.title = @"检查中…";
self.statusTitle.stringValue = @"正在检查插件…"; self.statusTitle.textColor = NSColor.whiteColor;
self.statusDetail.stringValue = @"正在检查本机插件登记,随后自动提交注册。";
self.progress.indeterminate = YES; [self.progress startAnimation:nil];
NSString *path = [NSBundle.mainBundle.bundlePath stringByAppendingPathComponent:@"Contents/PlugIns/大鱼调色 XPC Service.pluginkit"];
self.diagnostics = [NSMutableDictionary dictionaryWithDictionary:@{
@"bundleID":NSBundle.mainBundle.bundleIdentifier,@"version":[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"],
@"build":[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"],@"executable":NSBundle.mainBundle.executablePath,
@"pid":@(NSProcessInfo.processInfo.processIdentifier),@"plugin":path,@"status":@"checking"}];
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED,0), ^{
@autoreleasepool {
NSBundle *plugin = [NSBundle bundleWithPath:path];
NSDictionary *attributes = [plugin objectForInfoDictionaryKey:@"PlugInKit"][@"Attributes"];
BOOL validComponent = [plugin.bundleIdentifier isEqualToString:DYPluginID] &&
[[plugin objectForInfoDictionaryKey:@"CFBundleVersion"] isEqual:[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]] &&
[attributes[@"com.apple.protocol"] isEqual:@"FxPlug"] && [attributes[@"com.apple.version"] isEqual:@"1.1"];
if (!validComponent) {
dispatch_async(dispatch_get_main_queue(), ^{ [self finishRegistration:NO details:@"未找到完整的插件组件。请从发布地址重新安装大鱼调色。" results:@{}]; }); return;
}
// The stand-alone wrapper can inspect the registry directly. Registration
// and actual host rendering remain separate states; the user confirms FCP.
NSDictionary *before = [self runPluginKit:@[@"-m",@"-v",@"-i",DYPluginID]];
dispatch_async(dispatch_get_main_queue(), ^{
self.registrationState = DYRegistering; self.statusTitle.stringValue = @"正在注册插件…";
self.statusDetail.stringValue = @"正在向系统提交插件注册,并核对当前安装位置。";
});
NSDictionary *add = [self runPluginKit:@[@"-a",path]];
NSDictionary *after = nil; BOOL registered = NO;
for (NSInteger attempt=0; attempt<4; attempt++) {
if (attempt) [NSThread sleepForTimeInterval:.35];
after = [self runPluginKit:@[@"-m",@"-v",@"-i",DYPluginID]];
registered = [self registry:after containsPlugin:path]; if (registered) break;
}
BOOL submissionAccepted = [add[@"code"] intValue] == 0;
NSString *message = registered ?
@"已确认当前插件登记。请在 Final Cut Pro 中实际应用并确认效果正常;若宿主已打开,请保存后重新打开。" :
@"插件注册尚未完成。请点击“重新检查”,或重新安装后再试。窗口将保持打开。";
NSDictionary *results = @{@"before":before,@"submission":add,@"after":after ?: @{},@"registered":@(registered),
@"discoveryVerified":@(registered),@"submissionAccepted":@(submissionAccepted),@"hostVerification":@"awaiting-user-confirmation",
@"confirmationMethod":registered ? @"exact-path-discovery" : @"unconfirmed"};
dispatch_async(dispatch_get_main_queue(), ^{ [self finishRegistration:registered details:message results:results]; });
}
});
}
- (void)finishRegistration:(BOOL)success details:(NSString *)details results:(NSDictionary *)results {
if (self.terminating) return;
self.registrationState = success ? DYReady : DYFailed;
[self.progress stopAnimation:nil]; self.progress.indeterminate = NO; self.progress.doubleValue = success ? 100 : 0;
self.registrationCard.tint = success ? DYGreen() : DYColor(1,.67,.30); [self.registrationCard setNeedsDisplay:YES];
self.statusTitle.stringValue = success ? @"✓ 插件注册成功" : @"需要重新检查";
self.statusTitle.textColor = success ? DYGreen() : DYColor(1,.75,.4); self.statusDetail.stringValue = details;
self.retryButton.title = @"重新检查"; self.retryButton.enabled = YES;
self.confirmationButton.enabled = success;
[self.diagnostics addEntriesFromDictionary:results]; self.diagnostics[@"status"] = success ? @"registered" : @"failed"; [self writeDiagnostics];
NSAccessibilityPostNotificationWithUserInfo(self.window,NSAccessibilityAnnouncementRequestedNotification,
@{NSAccessibilityAnnouncementKey:self.statusTitle.stringValue,NSAccessibilityPriorityKey:@(NSAccessibilityPriorityHigh)});
if (success && !self.keepOpen) {
self.secondsRemaining = 3; [self updateCountdown];
self.exitTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(exitTick:) userInfo:nil repeats:YES];
} else self.exitDetail.stringValue = success ? @"插件已就绪。关闭此窗口后,可继续在宿主中使用。" : @"注册尚未完成,应用会保留此窗口以便重试。";
}
- (void)updateCountdown { self.exitDetail.stringValue = [NSString stringWithFormat:@"%ld 秒后自动退出\n点击“查看功能介绍”可保留窗口",(long)self.secondsRemaining]; }
- (void)exitTick:(NSTimer *)timer {
if (--self.secondsRemaining <= 0) {
[timer invalidate]; self.exitTimer = nil; self.diagnostics[@"terminationReason"] = @"registration-succeeded"; [self writeDiagnostics]; [NSApp terminate:nil];
} else [self updateCountdown];
}
- (void)keepIntroduction:(id)sender {
self.keepOpen = YES; [self.exitTimer invalidate]; self.exitTimer = nil;
self.keepButton.title = @"正在浏览介绍"; self.keepButton.enabled = NO;
self.exitDetail.stringValue = @"已保留功能介绍窗口。插件可独立在宿主中使用。";
}
- (void)confirmHost:(id)sender {
if (self.registrationState != DYReady) return;
self.diagnostics[@"hostVerification"] = @"user-confirmed";
self.diagnostics[@"terminationReason"] = @"user-confirmed-host";
[self writeDiagnostics]; [NSApp terminate:nil];
}
- (void)writeDiagnostics {
NSURL *base = [NSFileManager.defaultManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask].firstObject;
NSURL *folder = [base URLByAppendingPathComponent:@"com.dayu.color" isDirectory:YES];
[NSFileManager.defaultManager createDirectoryAtURL:folder withIntermediateDirectories:YES attributes:nil error:nil];
NSData *data = [NSJSONSerialization dataWithJSONObject:self.diagnostics options:NSJSONWritingPrettyPrinted error:nil];
[data writeToURL:[folder URLByAppendingPathComponent:@"Registration.json"] options:NSDataWritingAtomic error:nil];
}
- (void)openHostWithIdentifiers:(NSArray *)identifiers name:(NSString *)name {
[self keepIntroduction:nil]; NSURL *url = nil;
for (NSString *identifier in identifiers) { url = [NSWorkspace.sharedWorkspace URLForApplicationWithBundleIdentifier:identifier]; if (url) break; }
if (!url) { [self showMessage:[@"未找到 " stringByAppendingString:name] detail:@"请先安装宿主应用,再从效果或滤镜中使用大鱼调色。"]; return; }
[NSWorkspace.sharedWorkspace openApplicationAtURL:url configuration:NSWorkspaceOpenConfiguration.configuration completionHandler:^(NSRunningApplication *app,NSError *error) {
if (error) dispatch_async(dispatch_get_main_queue(), ^{ [self showMessage:@"无法打开宿主" detail:error.localizedDescription]; });
}];
}
- (void)openFinalCut:(id)sender { [self openHostWithIdentifiers:@[@"com.apple.FinalCut",@"com.apple.FinalCutApp"] name:@"Final Cut Pro"]; }
- (void)openMotion:(id)sender { [self openHostWithIdentifiers:@[@"com.apple.motionapp",@"com.apple.motionappApp"] name:@"Motion"]; }
- (void)openWebsite:(id)sender { [self keepIntroduction:nil]; if (![NSWorkspace.sharedWorkspace openURL:[NSURL URLWithString:DYReleaseAddress]]) [self showMessage:@"无法打开发布地址" detail:DYReleaseAddress]; }
- (void)showMessage:(NSString *)title detail:(NSString *)detail {
NSAlert *alert = [[[NSAlert alloc] init] autorelease]; alert.messageText = title; alert.informativeText = detail;
[alert addButtonWithTitle:@"好"]; [alert beginSheetModalForWindow:self.window completionHandler:nil];
}
- (void)closeWindow:(id)sender { [self.window performClose:sender]; }
- (void)accessibilityChanged:(NSNotification *)note { [self.window.contentView setNeedsDisplay:YES]; }
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app { return YES; }
- (void)applicationWillTerminate:(NSNotification *)note {
self.terminating = YES; [self.exitTimer invalidate]; self.exitTimer = nil;
[NSWorkspace.sharedWorkspace.notificationCenter removeObserver:self];
}
- (void)dealloc { [_exitTimer invalidate]; [_exitTimer release]; [_diagnostics release]; [super dealloc]; }
@end
+2 -2
查看文件
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.6.0</string>
<string>1.6.1</string>
<key>CFBundleVersion</key>
<string>39</string>
<string>44</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
</dict>
<dict/>
</plist>
+4
查看文件
@@ -1,5 +1,7 @@
# 大鱼调色 FxPlug4 交接
后续主 APP 优化入口:[大鱼调色主APP开发交接.md](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色主APP开发交接.md),包含自动更新、登录验证、生产接口只读盘点与待定产品规则;这些新功能尚未实施。
2026-11-02,最终正式版 **1.6.0(39)**。本次完成Color Finale本机胶片五组、通道混合器及用户补充的全部八种印片;去掉MOEF作者/网站两行、降低模板格式,并追加一级自动映射默认开启和主标题链接。
## 正式身份与恢复
@@ -41,3 +43,5 @@ FCP新效果、新加一级层及全部还原的自动映射为开启;主标
历史35/37/38候选未发布;36的已验PKG在新需求到达后移除,未上传。37公证等待中停止了本地等待,保留ID查询,未重新上传相同产物。38正式验收发现FCP默认行为,39已记录实际边界。既有历史发行包与标签保留。1.5完整交接归档见 `research/handoffs/DayuColorThrough1.5.0-20261102.md`。
正式PKG `大鱼调色-1.6.0.pkg`,40833847字节,SHA-256 `13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca`;PKG公证 `4716e3c7-8199-4dc1-940c-2376dd647e9b` Accepted,签名、票据、Gatekeeper和20项展开验包通过。发行包未再次运行系统安装器。
最终[Release373](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102) / 附件18已发布并回读确认。标签 `v1.6.0-print-looks-20261102` 对应完整SHA `0cc51149a6f21ebe09465b4fd7130451bedd57bb`;草稿正常浏览器下载与发布后完整下载均校验40,833,847字节及SHA-256一致。发行标签296文件逐字节恢复和full/strict fsck通过,与实际编译SHA的程序源码完全一致。恢复clone、独立构建和下载副本清理完成;已知相关位置仅正式39版APP,历史发行包和私人验收数据保留。记录见 `verification/Release.json`、`ReleaseDraftDownload1.6.0.json`、`PrintLooksReleaseRecovery.json`、`PrintLooksCleanup.json`。
+172
查看文件
@@ -0,0 +1,172 @@
# 大鱼调色主 APP 开发交接
> 2026-11-02接续:主APP UI与自动注册已在1.6.1(44)实现,发布地址置顶、注册成功3秒倒计时、FCP由用户确认,外层沙盒按用户明确要求关闭。登录/授权/加密/更新及后端未实现;本文原接口盘点仍作为后续参考。最新行为见[本轮说明](research/MainApp1.6.1.md),交付状态见verification/Delivery.json与MainApp1.6.1.json。
交接日期:2026-11-02(Asia/Shanghai)。下一阶段目标:优化现有主 APP,加入自动更新、登录验证及相应的账号与版本管理界面。本次只整理交接和只读盘点,尚未实现这些功能,未修改正式 APP、后台源码、账号绑定或线上更新清单。
## 1. 接手位置与可恢复基线
| 项目 | 已核实内容 |
| --- | --- |
| 项目根目录 | `/Volumes/备份/大鱼调色/大鱼调色` |
| 工程与方案 | `大鱼调色.xcodeproj`;`Wrapper Application`,Release |
| 源码远程 | `https://dayu.media/git/dayu/dayu-color.git`,`main`;保持现有可见性 |
| 本次盘点前的已推送节点 | `46fb091479ef24c86c3706bdf36ca97e2597edd9`,已回读远程确认 |
| 正式版本 | **1.6.0(39)**,实际编译源码 `e5affd3f097fc96f87f41be8e1a3f131ed01daeb` |
| 发行标签 | `v1.6.0-print-looks-20261102`,提交 `0cc51149a6f21ebe09465b4fd7130451bedd57bb` |
| 唯一正式安装 | `/Library/Plug-Ins/FxPlug/大鱼调色.app` |
| 外层 APP / 内部服务 ID | `com.dayu.color` / `com.dayu.color.XPC` |
| 环境 | Apple Silicon,macOS 14.6 或更新;上一轮 FCP 12.4 实测通过 |
| 固定构建缓存 | `/Users/mac/Library/Caches/CodexBuilds/com.dayu.color` |
“主 APP”指现有 FxPlug 外层包装 APP。它与嵌套的插件一起交付,后续将这个现有窗口扩展成产品入口。继续保持产品名称、Bundle ID 和正式安装位置,避免另建一个 `/Applications/大鱼调色.app` 与插件包装 APP 并存。
程序源码、标签、安装包与交付记录是不同节点。文档后续提交不会改变上述实际编译 SHA,也不需要仅为本次交接重编译、增加构建号或重新发布安装包。
## 2. 主 APP 当前实际实现
外层是 Objective-C / AppKit,手动内存管理;`main.m` 调用 `NSApplicationMain`,`MainMenu.xib` 创建窗口和代理。窗口内容在 `AppDelegate.m` 中以代码构建,目前为 540×280:产品名、安装说明和“打开 Final Cut Pro”按钮。最后一个窗口关闭后退出 APP。
| 文件入口 | 用途与接手注意点 |
| --- | --- |
| [AppDelegate.m](</Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Wrapper Application/AppDelegate.m>) | 当前完整主窗口;扩展账号、版本、更新和插件状态的直接入口 |
| [main.m](</Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Wrapper Application/main.m>) | APP 启动入口 |
| [MainMenu.xib](</Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Wrapper Application/Base.lproj/MainMenu.xib>) | 主菜单、窗口及 AppDelegate 连线 |
| [APP Info.plist](</Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Wrapper Application/Info.plist>) | 版本 1.6.0 / 39,主 Nib 与身份 |
| [APP entitlements](</Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Wrapper Application/SandboxEntitlements.entitlements>) | 当前仅有 `com.apple.security.app-sandbox = true`;正式安装 APP 实际签名也核对为此配置 |
| [Xcode 工程](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色.xcodeproj/project.pbxproj) | 外层 APP 和 `XPC Service` 两个目标;同时更新它们的身份与版本约定 |
| [插件入口](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYPlugIn.mm) | 宿主状态冻结与渲染;当前没有接入账号授权 |
| [插件检查器](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色/Plugin/DYInspector.mm) | 现有调色面板和网站链接;主 APP 的控制中心不应搬走这些调色控件 |
当前未发现产品已有的网络账号服务、Keychain 会话管理、主 APP / XPC 共享授权收据、更新客户端、Sparkle/appcast 配置或自有安装更新助手。不能把已有“更多插件访问 https://dayu.media”链接当作登录接入。
`openHost:` 当前只查找 `com.apple.FinalCut`。后续优化启动与宿主状态识别时,应覆盖打包指南中的四个 FCP/Motion 标识,并处理未安装、运行中和打开失败;不要用模糊应用名启动不明副本。
## 3. 后端现状:已只读查看生产源
2026-11-02 已核对目标共享由 `smbfs` 挂载,生产目录可读:
```text
NAS_SERVER = 192.168.31.21
SMB_SHARE = dayumedia (存储空间1)
NAS_ROOT = /Volumes/dayumedia (存储空间1)/wwwroot/dayu_media
LOCAL_CONTEXT = /Users/mac/Downloads/dayumedia
```
`LOCAL_CONTEXT` 是有范围的专项工作资料,不是完整生产镜像。NAS 的 `AGENTS.md` 保留旧电脑 `/Users/dayu` 路径,执行时按本机全局规则适配,不能照搬旧路径。
本轮只读源码与公开接口形状,没有调用登录/授权接口、创建会话、读取数据库、签名私钥、设备记录或客户凭据。下面是生产源码盘点,**不等同于“大鱼调色”已完成接口联调或已配置专属产品**。
### 通用登录、权限与更新
主要生产文件:
[macos-app-auth.php](</Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/plugins/macos-app-auth/macos-app-auth.php>)
本轮源码 SHA-256:`8a4cb46bf33a88501da5cf48fa4059244dcffb5cfac55c7ecdf66152204cf493`。约 12,518 行;下一次接手重新读取最新生产源,行号只作定位。
| 现有入口 | 本轮源码确认的行为 |
| --- | --- |
| `POST https://dayu.media/wp-json/dayu-app/v1/login/session` | `app_create_login_session`,约 6458 行;接收 `device_uuid`、`app_name`、`client_version`、`client_build`、`client_bundle` 等,返回临时会话、登录 URL、二维码和到期时间;使用现有微信登录 |
| `GET https://dayu.media/wp-json/dayu-app/v1/login/session/{session_key}` | `app_get_login_session`,约 6546 行;通用接口返回状态、说明和到期时间,不能假定这里直接返回访问令牌 |
| `https://dayu.media/wp-admin/admin-ajax.php`,`action=app_device_login` | `app_device_login`,约 510 行;按已绑定的标准 Mac 硬件 UUID 登录,返回账号、token、refresh_token 等;会记录登录及绑定状态,不是无副作用探针 |
| 同一 AJAX 入口,`action=app_refresh_token` | 刷新令牌,约 1490 行;具体请求与失败码接手时重新核对 |
| `POST https://dayu.media/wp-json/dayu-app/v1/access` | `rest_check_access`,约 1440 行;验证 token,结合文章购买/会员查询权限,满足条件可附带签名设备授权 |
| 同一 AJAX 入口,`action=app_check_update` | 约 1181 行;校验登录 token,按应用和 stable 等通道读取更新清单;接受当前版本/构建号,返回是否更新、目标版本/构建、包类型、安装方式、大小和 SHA-256 等 |
| 同一 AJAX 入口,`action=app_download_update` | 约 1272 行;下载对应应用云空间的更新包;认证、重定向及请求参数仍需在下一阶段逐项联调 |
源码中已有 RS256 的 `DAYU-OFFLINE-DEVICE` 凭证:登录得到的 `scope=device_binding` 只表示设备身份;资源授权查询可生成 `scope=app_access`,并包含文章、权限原因、是否永久及到期信息。方法入口约 2200、2379、2413 行。**不能用“已登录”“设备已绑定”或响应中自带的公钥,直接证明拥有本产品使用权。**
通用源码中未发现 `com.dayu.color` / `DayuColor` / `dayu-color` 的字面定义;本轮没有检查数据库中的产品配置或创建专属更新空间,因此不能断言线上已有或没有相应配置。接续时核实稳定的产品标识、文章 ID、授权策略与更新通道,不使用缺省 `default-app`。
### 可参考但不能当作本产品接口的部分
- [dayu-downloader-auth.php](</Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-downloader-auth.php>):身份、试用和 `/dayu-downloader/v1/update`。当前硬绑定 `DayuDownie`、`DayuDownie.DayuDownie`、文章 14922 及其更新目录,不能给大鱼调色直接调用。
- [dayu-downloader-licenses.php](</Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-downloader-licenses.php>):另一产品的注册码与授权桥接,不继承其试用期、设备限制和商业规则。
- [dayu-template-app-session.php](</Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-template-app-session.php>):模板工作区已有 APP 身份换取网站会话的独立实现;不是本产品已完成登录的证据。
- 本机 `/Users/mac/Downloads/dayumedia/permission-fix` 有购买授权修复记录与测试,可参考历史陷阱;使用前先与生产源比较。大鱼 Git 的登录令牌只用于代码仓库,不能打包成普通产品用户的账号凭据。
## 4. 下一阶段的实现拆分
### 主 APP 界面
在现有外层 APP 内组织产品信息、账号状态、更新状态、打开宿主、网站/帮助入口。账号区区分未登录、登录中、已登录但未授权、已授权、到期和离线;更新区区分检查、下载、校验、等待宿主退出、安装及失败。窗口保持可调整、中文信息清楚,技术日志放在单独诊断入口。
可以沿用 AppKit 或评估逐步引入 SwiftUI;本轮未选定 UI 框架、第三方更新库或新最低系统版本。重构时保留 Nib 启动与既有 Objective-C 生命周期,避免只替换窗口而漏掉应用代理或目标成员关系。
### 登录、授权与插件进程
1. 先核实网站产品策略:固定产品名/slug、文章 ID、会员或单独购买条件;由可信配置约束产品与权限对应关系,不接受任意客户端文章 ID 就当作“大鱼调色授权”。
2. 对照现有通用流程实现会话创建、默认浏览器/二维码登录、状态轮询、设备登录、token 刷新和退出。支持过期、取消、网络失败及重复点击;日志不记录临时会话 URL、令牌、完整设备 UUID。
3. 在线 token / refresh token 使用 Keychain。当前 APP 仅有沙盒权限,需按实际联网、Keychain 与跨进程方案配置权限;不要假定现有签名已开放网络访问。
4. APP 和插件是不同进程,外层关闭后 FCP 仍可启动服务。若用户要限制插件使用,需要设计 XPC 也能验证的产品授权收据与状态更新机制;只在主 APP 上挡一个登录页面不足以限制插件。
5. 核实服务器签名凭证的产品、scope、设备、文章、期限和可信公钥合同。客户端只携带验证公钥,私钥留在服务器。响应随附的任意公钥不能自行成为信任根;轮换须有明确的可信路径。
6. 凭据共享方式尚未决定。当前没有 App Group / Keychain Access Group 配置,需要核对外层、服务的实际权限与部署要求,再选共享位置;禁止把长期令牌塞进 MOEF、用户预设或时间线载荷。
7. 网络检查和账号刷新放在渲染之外。帧渲染/跟踪任务只读取已经验证的状态快照,不逐帧联网或等待主 APP 窗口。
### 自动更新
本产品外层 APP 在 `/Library/Plug-Ins/FxPlug`,PKG 还安装用户模板与预览图。先复用完整的正式 PKG 路径设计更新流程,不能只下载 APP 替换而漏掉模板、内部服务登记或旧进程。
实现顺序:检查专属通道 → 比较版本与构建 → 后台下载 → 校验大小/SHA-256 → 核验包签名、团队和预期产品 → 等待宿主与用户任务安全退出 → 通过系统授权安装 → 核对固定路径、版本与 PluginKit → 正常重开并报告结果。客户端自己退出后谁负责完成安装、接收取消/失败结果及重新启动,也需要明确实现。
更新过程中不能强杀 FCP/Motion;沙盒 APP 不应尝试直接静默覆盖 `/Library`。系统安装授权、用户取消、宿主未保存、磁盘不足、断线续传、损坏包、安装失败和重启恢复应有明确状态。先核实当前 macOS 与安装机制的官方文档再实现特权/辅助进程,不因要“自动更新”而取消签名、公证或系统授权。
现有 [Release373](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.0-print-looks-20261102) 是发行包归档,不是已接入的 APP 更新源。后台专属更新清单尚未部署。新增 feed 时保持 APP、模板、最终 PKG、网站更新清单与 Git Release 关联同一发布记录;更新清单不能指向另一候选构建。
## 5. 尚待确定的产品规则
这些是后续实际开发前需要确定的业务条件,本交接不替用户决定,也不因此阻止当前文档交付:
- 登录只服务账号与更新,还是也决定插件可否渲染;未登录、到期后新实例和已保存工程分别如何表现。
- 大鱼调色对应的商品文章 ID、产品 slug、会员/单购关系;是否提供试用、试用期限及设备数。
- 离线使用期限、联网复核周期、会员到期、设备解绑、退出账号的生效方式;不得照搬其它产品的永久/24 小时试用策略。
- 自动更新的检查/下载默认设置、稳定或测试通道、是否允许降级;维护主 APP 与插件完整包的一致性。
“到期后把老工程变黑/加水印”或“永远离线放行”都不是用户已经确认的要求,不应在实现时自行加入。
## 6. 必须保留的现有产品行为
完整调色、CST、蜘蛛盘、LUT 浏览、胶片六页(含八种印片)、通道混合器、独立叠层、蒙版与轨迹都继续使用当前实现。不得为账号/更新 UI 重排旧参数 ID、改变 Uniform 布局或清空用户设置。
当前完整 Uniform 为 1312 字节;八印片追加前 1296 字节前缀保留。完整预设 v6 读取 v1–v5,工具状态、LUT 路径、蜘蛛盘与蒙版轨迹另有归档合同。
MOEF 目前为 5.11 / Motion 5.4.5,作者和网站两行已移除,主标题内保留用户要求的可点击网站链接。不要恢复旧版权 Rig。全局技能检查器对 5.11 的版本 guard 不支持,项目级原生样本检查及当前宿主通过;不能把 guard 结果伪造成技能检查通过,也不能为此随意升高模板版本。
自动映射的新 FCP 效果、全部还原及新独立一级层默认开启。FCP 沿用模板默认的旧主效果也会跟随开启;手动关闭可保存并冷重开保持。后续不得再把“修改默认值”当作一定不会改变旧工程的无风险操作。详情见现有 [FxPlug 交接](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色FxPlug4交接.md)。
## 7. 构建、发布与验收入口
| 入口 | 当前作用 |
| --- | --- |
| [tools/deliver.py](/Volumes/备份/大鱼调色/大鱼调色/tools/deliver.py) | Release 构建、逐层签名、公证、票据、唯一安装、正式路径自检和等待宿主验收;验收成功后输入 `complete` |
| [Packaging/build_pkg.py](/Volumes/备份/大鱼调色/大鱼调色/Packaging/build_pkg.py) | 从已验证正式安装生成完整 FxPlug PKG,调用 PKG 工坊签名/公证及展开验包 |
| [Packaging/publish_release.py](/Volumes/备份/大鱼调色/大鱼调色/Packaging/publish_release.py) | 对已推送标签上传最终包,草稿及正式完整下载校验 |
| [tools/build_template.py](/Volumes/备份/大鱼调色/大鱼调色/tools/build_template.py) | 仅在模型确有变更时重新导出参数/模板;变更后同步静态检查和摘要 |
| [tools/checkpoint.py](/Volumes/备份/大鱼调色/大鱼调色/tools/checkpoint.py) | 对已审查的明确文件提交、推送和回读 SHA,使用仓库锁 |
正式身份:`Developer ID Application: zhong luo (B3W25FX5H5)` 与对应 Installer 身份,公证 profile `codex-dayu-notary-B3W25FX5H5`。每次发布重新验证有效性,不复制私钥/账户专用密码。正式 APP 公证 ID `5d74c04c-8a30-47e9-822d-4f616dfdee56`;PKG 公证 ID `4716e3c7-8199-4dc1-940c-2376dd647e9b`,均 Accepted。
当前正式 PKG:`/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.0.pkg`,40,833,847 字节,SHA-256 `13821631b5d54f1b9c1934c513a9cc7e92641208e20219839a63e23865f21cca`。Release373 / 附件18已完成真实完整下载核对,标签296文件独立恢复通过。当前无 LFS/子模块。
产品交付锁 `/Users/mac/.codex/app-delivery-locks/com.dayu.color.lock` 覆盖最终构建到清理。仓库锁按全局规范使用远程 URL 的 SHA-256。不要在已持有同一把锁时嵌套调用会自行取锁的工具。
后续验收至少覆盖:
- 主 APP:未安装/运行中的宿主、账号所有状态、二维码到期取消、重开恢复、退出与设备解绑,以及窗口缩放与基础无障碍操作。
- 授权:登录但未购买、会员到期、单购、离线与伪造/错产品/错设备凭证;APP 关闭后从 FCP 直接启动插件仍得到正确结果。
- 更新:同版本不同构建、无更新、损坏或错误团队/产品包、下载中断、用户取消安装、宿主未保存、安装失败及完成后正常重开;唯一正式 APP 和模板版本一致。
- 调色回归:既有395项原生检查按变更运行、关键旧预设与轨迹保存、FCP 实际加载和导出;复用136项印片对照结果的前提是相关数学/Metal确实未改变。
- 交付:正式路径的已签名、公证、粘附版本;PKG 验包、Release完整下载;按本轮范围清理生成 APP,保留媒体、用户 LUT/预设和历史发行包。
原有验收证据集中在 [verification](/Volumes/备份/大鱼调色/大鱼调色/verification):`Delivery.json`、`InstalledSelfTest.json`、`HostPrintLooks1.6.0.json`、`HostPrimaryDefaults1.6.0.json`、`Package.json`、`Release.json`、`PrintLooksReleaseRecovery.json`。
## 8. 若需修改线上接口
下一阶段若确有后端改动,先在 `/Users/mac/Downloads/dayumedia` 下确定本专项的最小本地工程,记录 `LOCAL_PROJECT`、`NAS_ROOT` 和文件相对路径映射;比较并保护本地未部署改动,再从生产同步目标文件、保存基线、本地修改和测试。部署前在原文件同目录创建分钟时间戳旁路备份、逐字节核对后才覆盖,最后核对生产文件及实际接口。
本轮没有创建这个后端专项工作副本,没有部署文件,也没有把 NAS 源码或密钥复制进大鱼调色仓库。不要在 SMB 上直接改源码、跑依赖或构建,不上传整份 dayumedia 目录;不要把产品 Git Release 上传误认为网站更新源已经发布。
## 9. 可直接用于下一段聊天的接续说明
> 阅读 `/Volumes/备份/大鱼调色/大鱼调色/大鱼调色主APP开发交接.md` 和现有 FxPlug 交接,从当前正式 1.6.0(39)接续优化现有主 APP,加入自动更新、登录验证和账号/版本界面。先核实生产通用接口与本产品的文章、产品标识、授权范围及离线策略,再实现;保留已有调色、蒙版、跟踪、叠层和低版本 MOEF。保持唯一安装位置和 Bundle ID,按本机规则完成正式交付、宿主验收、PKG Release 与远程备份。主 APP 窗口与插件授权是不同层面,不把登录成功等同于产品使用权,不在渲染回调联网。