比较提交
| 作者 | SHA1 | 提交日期 | |
|---|---|---|---|
|
|
f2038f12eb | ||
|
|
2688b22f99 | ||
|
|
3ba2c0b823 | ||
|
|
2360ec5c91 | ||
|
|
67beeda7e1 | ||
|
|
7720d9a042 | ||
|
|
f9dea76a45 | ||
|
|
e62d5532f2 | ||
|
|
5f25034506 | ||
|
|
04d74e1dd2 | ||
|
|
14cca24de6 | ||
|
|
58a17de438 | ||
|
|
5c547100c1 | ||
|
|
ff6f64df21 | ||
|
|
64035c739c | ||
|
|
f0f0eaf54a | ||
|
|
46aa458691 | ||
|
|
fcda64deb3 | ||
|
|
b5d842835c | ||
|
|
c95559936a | ||
|
|
e37330a4b5 | ||
|
|
a0f37578f7 | ||
|
|
30c8904003 | ||
|
|
55acdaa4b1 | ||
|
|
15d644c7e7 | ||
|
|
f453508be6 | ||
|
|
29bb7cdae4 | ||
|
|
c587163354 |
没有与搜索条件相匹配的文件
@@ -0,0 +1,37 @@
|
||||
# 大鱼调色公测后端
|
||||
|
||||
LOCAL_PROJECT=/Users/mac/Downloads/dayumedia/dayu-color-beta
|
||||
NAS_ROOT=/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media
|
||||
SOURCE_BACKUP=大鱼调色仓库 Backend/
|
||||
|
||||
映射:`wp-content/mu-plugins/dayu-color-beta.php` 和 `wp-content/uploads/dayu-color-beta/updates/beta.json` 均保持同相对路径。PKG 不进 Git,由产品 Release 与生产公测下载空间保存。专项工作副本只包含本产品文件,源码及脱敏记录保存到产品仓库。参考 `fcpx-qwen3-asr` 提交 `113069c74aff935db2082b5bcd8e1aa47fe1fbf2` 的更新校验、批次诊断和崩溃脱敏流程;共享会员鉴权代码未修改。
|
||||
|
||||
2026-11-02 初始盘点:目标 MU 插件不存在,本地专项工程新建。实际共享已确认来自 192.168.31.21、dayumedia (存储空间1)、smbfs 且可读写。单独建仓因令牌缺少 write:user 返回403,未扩大权限;改用现有产品仓库保存。
|
||||
|
||||
## 路由与查看
|
||||
|
||||
- 更新:`GET https://dayu.media/wp-json/dayu-color/v1/update?bundle_id=com.dayu.color&channel=beta¤t_build=45`。仅提供更高构建号的完整 PKG 更新,无强制安装。
|
||||
- 诊断:`POST https://dayu.media/wp-json/dayu-color/v1/diagnostics`,公测阶段不依赖账号。严格限定产品、字段、事件、UUID、批次大小及频率;匿名输入只作为排查证据,不作为授权凭据。
|
||||
- 日志后台:`https://dayu.media/wp-admin/tools.php?page=dayu-color-beta`,需要管理员。可按构建号、事件、完整报告标识筛选并翻页。GET 诊断接口同样要求 manage_options。
|
||||
- 数据保留30天,由 WordPress 每日计划清理;依赖站点 WP-Cron 正常运行。IP 仅用于短期频控哈希,不存入诊断表。
|
||||
|
||||
## 客户端
|
||||
|
||||
主 APP 检查更新与插件注册并行,检查结束且注册成功后显示3秒退出倒计时。发现更新则保留窗口;下载可取消,校验 SHA-256、字节数、Installer/App签名团队、Gatekeeper、包内 Bundle ID、版本、安装位置及模板。保存并退出 FCP/Motion 后打开系统安装器,不强杀宿主。下一次启动可记录已完成升级。
|
||||
|
||||
主 APP 与 XPC 共享随机安装标识及诊断开关。诊断默认开启,界面明确说明并可关闭;不上传素材、LUT、预设、用户路径、账号、硬件 UUID 或原始崩溃文件。后台私有队列最多256条/384KB,批次16条,网络超时并延迟重试,服务端按事件 UUID 去重。关闭后清除待发摘要并停止新请求;已经送达的数据按保留期清理。
|
||||
|
||||
采集进程启动、初始化、检查器创建/慢刷新、Metal 管线准备、首次渲染、渲染错误、超过6秒的疑似阻塞,以及本插件近7天系统崩溃报告的脱敏摘要。疑似阻塞不等于根因;整个进程被停止、网络不可用、主机强制断电时无法保证即时送达。不会拦截崩溃信号,也不采集整个 FCP 的报告。本轮保留调色与宿主回调逻辑,尚未修复偶发卡死。
|
||||
|
||||
## 验证与发布
|
||||
|
||||
```sh
|
||||
php Backend/tests/contract.php
|
||||
python3 Backend/verify_live.py
|
||||
python3 Backend/deploy.py --backend
|
||||
python3 Backend/deploy.py --package '/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.0.pkg'
|
||||
```
|
||||
|
||||
先从仓库审查、提交并推送,再由部署脚本同步到专项工程;脚本验证实际 SMB 挂载及基线。覆盖原文件前同目录旁路备份并核对字节,新增文件无需不存在的备份。只写明确列出的路径,不加载或输出生产配置。更新包签名、公证、票据与正式 APP 验收通过后才发布;同名包不同字节立即停止。发布后完整下载核对大小与 SHA-256,并核验较低/相同构建号的更新结果。
|
||||
|
||||
回滚:先备份当前文件,再恢复部署记录中对应旁路备份;禁止降低已有清单构建号来自动降级。撤下更新时备份并移走 beta.json,更新路由回到没有更新;历史安装包和诊断表保留。源代码可从产品远程仓库恢复,签名私钥及服务端数据库不属于 Git 备份。
|
||||
@@ -0,0 +1,87 @@
|
||||
#!/usr/bin/env python3
|
||||
# coding: utf-8
|
||||
"""Deploy only the Dayu Color beta namespace from the scoped local workspace."""
|
||||
from pathlib import Path
|
||||
import argparse,datetime,hashlib,json,os,re,shutil,subprocess,uuid
|
||||
ROOT=Path(__file__).resolve().parent.parent
|
||||
LOCAL=Path('/Users/mac/Downloads/dayumedia/dayu-color-beta')
|
||||
MOUNT=Path('/Volumes/dayumedia (存储空间1)')
|
||||
NAS=MOUNT/'wwwroot/dayu_media'
|
||||
REL=Path('wp-content/mu-plugins/dayu-color-beta.php')
|
||||
UPLOAD=Path('wp-content/uploads/dayu-color-beta/updates')
|
||||
STAMP=datetime.datetime.now().strftime('%Y%m%d%H%M')
|
||||
def sha(path):
|
||||
h=hashlib.sha256()
|
||||
with path.open('rb') as f:
|
||||
for part in iter(lambda:f.read(1024*1024),b''):h.update(part)
|
||||
return h.hexdigest()
|
||||
def write_json(path,data):
|
||||
path.parent.mkdir(parents=True,exist_ok=True);path.write_text(json.dumps(data,ensure_ascii=False,indent=2)+'\n')
|
||||
def check_mount():
|
||||
lines=subprocess.check_output(['/sbin/mount'],text=True).splitlines()
|
||||
match=[s for s in lines if f' on {MOUNT} (smbfs,' in s]
|
||||
assert len(match)==1 and '@192.168.31.21/dayumedia%' in match[0], '目标不是已确认的 NAS SMB 共享'
|
||||
assert NAS.is_dir() and os.access(NAS/'wp-content/mu-plugins',os.W_OK), '目标共享不可写'
|
||||
return match[0]
|
||||
def backup(path):
|
||||
target=path.with_name(f'{path.stem}-{STAMP}.{path.suffix[1:]}bak' if path.suffix else f'{path.name}-{STAMP}.bak')
|
||||
assert not target.exists(), '旁路备份重名,请换时间戳'
|
||||
shutil.copyfile(path,target);assert sha(target)==sha(path)
|
||||
return str(target)
|
||||
def deploy_file(source,target,allow_new=False,expected=None):
|
||||
target.parent.mkdir(parents=True,exist_ok=True);old=None
|
||||
if target.exists():
|
||||
if sha(target)==sha(source):return dict(path=str(target),sha256=sha(target),reused=True)
|
||||
assert expected and sha(target)==expected,'生产基线已变化,停止覆盖'
|
||||
old=backup(target)
|
||||
else:assert allow_new,'预期生产基线不存在'
|
||||
temp=target.with_name('.dayu-color-stage-'+uuid.uuid4().hex)
|
||||
try:
|
||||
shutil.copyfile(source,temp);temp.chmod(0o644);assert sha(temp)==sha(source);os.replace(temp,target)
|
||||
finally:
|
||||
if temp.exists():temp.unlink()
|
||||
assert sha(source)==sha(target) and os.access(target,os.R_OK)
|
||||
return dict(path=str(target),sha256=sha(target),backup=old,size=target.stat().st_size)
|
||||
def main():
|
||||
p=argparse.ArgumentParser(description=__doc__);p.add_argument('--backend',action='store_true');p.add_argument('--package',type=Path);args=p.parse_args()
|
||||
assert args.backend or args.package
|
||||
mount=check_mount();LOCAL.mkdir(parents=True,exist_ok=True)
|
||||
lock=LOCAL/'.deployment.lock';lock.mkdir();write_json(lock/'owner.json',dict(PID=os.getpid(),cwd=str(ROOT),started=STAMP))
|
||||
try:
|
||||
if args.backend:
|
||||
subprocess.run(['php','-l',str(ROOT/'Backend'/REL)],check=True)
|
||||
local=LOCAL/REL;local.parent.mkdir(parents=True,exist_ok=True)
|
||||
record=ROOT/'verification/BetaBackendDeployment.json'
|
||||
previous=json.loads(record.read_text()) if record.exists() else {}
|
||||
if local.exists() and sha(local)!=sha(ROOT/'Backend'/REL):
|
||||
assert previous.get('sha256')==sha(local),'本地专项工程有未部署改动,停止覆盖'
|
||||
shutil.copyfile(ROOT/'Backend'/REL,local)
|
||||
result=deploy_file(local,NAS/REL,allow_new=not previous,expected=previous.get('sha256'))
|
||||
result.update(timestamp=STAMP,mount=mount,localProject=str(LOCAL),sourceCommit=subprocess.check_output(['git','rev-parse','HEAD'],cwd=ROOT,text=True).strip())
|
||||
write_json(record,result);print(json.dumps(result,ensure_ascii=False))
|
||||
if args.package:
|
||||
package=args.package.resolve();report=json.loads((ROOT/'verification/Package.json').read_text());delivery=json.loads((ROOT/'verification/Delivery.json').read_text())
|
||||
assert report['notarization']['status']=='Accepted' and delivery['status']=='verified'
|
||||
# Independent final-container checks before uploading any bytes.
|
||||
subprocess.run(['pkgutil','--check-signature',str(package)],check=True,stdout=subprocess.DEVNULL)
|
||||
subprocess.run(['xcrun','stapler','validate',str(package)],check=True,stdout=subprocess.DEVNULL)
|
||||
subprocess.run(['spctl','--assess','--type','install',str(package)],check=True)
|
||||
version=delivery['version'];build=int(delivery['build']);digest=sha(package)
|
||||
assert report["sha256"]==digest, "发行包与验包记录不一致"
|
||||
filename=f'dayu-color-{version.replace(".","-")}-{build}.pkg';relative=UPLOAD/filename
|
||||
local=LOCAL/relative;local.parent.mkdir(parents=True,exist_ok=True)
|
||||
if not local.exists():shutil.copyfile(package,local)
|
||||
assert sha(local)==digest
|
||||
result=deploy_file(local,NAS/relative,allow_new=True)
|
||||
manifest=dict(bundle_id='com.dayu.color',channel='beta',version=version,build=build,package_type='pkg',install_mode='pkg_installer',
|
||||
size=package.stat().st_size,sha256=digest,download_url='https://dayu.media/'+str(relative),minimum_system_version='14.6',
|
||||
notes='公测版:接入自动更新与可关闭的云端诊断,记录插件加载耗时及错误摘要。请保存并退出 FCP / Motion 后安装。')
|
||||
dest=NAS/UPLOAD/'beta.json';old=json.loads(dest.read_text()) if dest.exists() else None
|
||||
if old:assert int(old['build'])<=build, '禁止更新通道倒退'
|
||||
localManifest=LOCAL/UPLOAD/'beta.json';write_json(localManifest,manifest)
|
||||
published=deploy_file(localManifest,dest,allow_new=True,expected=sha(dest) if old else None)
|
||||
result.update(manifest=published,version=version,build=build,downloadURL=manifest['download_url'],timestamp=STAMP)
|
||||
write_json(ROOT/'verification/BetaPublication.json',result);print(json.dumps(result,ensure_ascii=False))
|
||||
finally:
|
||||
(lock/'owner.json').unlink();lock.rmdir()
|
||||
if __name__=='__main__':main()
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
// Product endpoint contracts; WordPress and DB are stubbed, never load production settings.
|
||||
error_reporting(E_ALL);
|
||||
set_error_handler(function($severity,$message,$file,$line){ throw new ErrorException($message,0,$severity,$file,$line); });
|
||||
define('ABSPATH',__DIR__.'/');define('MINUTE_IN_SECONDS',60);define('DAY_IN_SECONDS',86400);define('ARRAY_A','ARRAY_A');
|
||||
$testRoot=sys_get_temp_dir().'/dayu-color-contract-'.bin2hex(random_bytes(6));mkdir($testRoot,0700,true);
|
||||
function add_action(...$args){}
|
||||
function get_option($key){return '1';}
|
||||
function register_rest_route($namespace,$route,$args){$GLOBALS['routes'][$route]=$args;}
|
||||
function current_user_can($permission){return false;}
|
||||
function wp_upload_dir(...$args){return array('basedir'=>$GLOBALS['testRoot']);}
|
||||
function sanitize_textarea_field($value){return strip_tags($value);}
|
||||
function sanitize_text_field($value){return strip_tags($value);}
|
||||
function wp_salt($scheme){return 'test-only-not-production';}
|
||||
function get_transient($key){return 0;}
|
||||
function set_transient(...$args){}
|
||||
function wp_json_encode($value,$options=0){return json_encode($value,$options);}
|
||||
class WP_Error {public $code,$data;function __construct($code,$message,$data){$this->code=$code;$this->data=$data;}}
|
||||
class WP_REST_Response {public $data,$status;function __construct($data,$status,$headers){$this->data=$data;$this->status=$status;}}
|
||||
class WP_REST_Request {public $params,$body;function __construct($params=array(),$body=null){$this->params=$params;$this->body=$body;}function get_param($name){return $this->params[$name]??null;}function get_body(){return json_encode($this->body);}function get_json_params(){return $this->body;}}
|
||||
class FakeDB {public $prefix='wp_',$rows=array();function prepare($sql,...$args){return $args[0]??$sql;}function get_var($sql){return isset($this->rows[$sql])?$sql:null;}function insert($table,$row){$this->rows[$row['event_id']]=$row;return 1;}}
|
||||
$wpdb=new FakeDB;
|
||||
require dirname(__DIR__).'/wp-content/mu-plugins/dayu-color-beta.php';
|
||||
$checks=0;
|
||||
function check($value,$label){global $checks;if(!$value)throw new RuntimeException($label);$checks++;}
|
||||
function request($body){return new WP_REST_Request(array(),$body);}
|
||||
try {
|
||||
Dayu_Color_Beta::routes();
|
||||
check(($routes['/diagnostics'][1]['permission_callback'])()===false,'anonymous log reads denied');
|
||||
check(Dayu_Color_Beta::update(new WP_REST_Request(array('bundle_id'=>'other')))->data['status']===400,'product separation');
|
||||
$response=Dayu_Color_Beta::update(new WP_REST_Request(array('bundle_id'=>'com.dayu.color','current_build'=>44)));
|
||||
check($response->status===200 && !$response->data['update_available'],'empty feed is usable');
|
||||
$fields=Dayu_Color_Beta::clean_fields(array('frames'=>'/Users/test/secret.mov','error_domain'=>'token=not-a-token','arbitrary'=>'private','duration_ms'=>INF,'gpu'=>'M4'));
|
||||
check($fields['frames']==='[REDACTED]' && $fields['error_domain']==='[REDACTED]' && !isset($fields['arbitrary']) && !isset($fields['duration_ms']) && $fields['gpu']==='M4','allowlist and redaction');
|
||||
$id='12345678-1234-4234-8234-123456789012';
|
||||
$event=array('event_id'=>$id,'session_id'=>$id,'source'=>'plugin','version'=>'1.7.0','build'=>45,'event'=>'first_render','occurred_at'=>time(),'fields'=>array('duration_ms'=>1200));
|
||||
$body=array('bundle_id'=>'com.dayu.color','installation_id'=>$id,'events'=>array($event));
|
||||
$reply=Dayu_Color_Beta::ingest(request($body));
|
||||
check($reply->status===200 && $reply->data['accepted'] && count($wpdb->rows)===1,'valid event accepted');
|
||||
Dayu_Color_Beta::ingest(request($body));check(count($wpdb->rows)===1,'retry idempotency');
|
||||
foreach(array('version'=>array(),'build'=>array(),'event'=>'material_path','session_id'=>'bad','occurred_at'=>null) as $key=>$bad){$b=$body;$b['events'][0][$key]=$bad;check(Dayu_Color_Beta::ingest(request($b))->data['status']===400,'malformed '.$key);}
|
||||
$b=$body;$b['events']=array_fill(0,33,$event);check(Dayu_Color_Beta::ingest(request($b))->data['status']===400,'batch limit');
|
||||
$b=$body;$b['padding']=str_repeat('a',100000);check(Dayu_Color_Beta::ingest(request($b))->data['status']===413,'byte limit');
|
||||
$manifest=array('bundle_id'=>'com.dayu.color','channel'=>'beta','version'=>'1.7.0','build'=>45,'package_type'=>'pkg','install_mode'=>'pkg_installer','size'=>123,'sha256'=>str_repeat('a',64),'download_url'=>'https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg');
|
||||
mkdir(dirname(Dayu_Color_Beta::manifest_path()),0700,true);file_put_contents(Dayu_Color_Beta::manifest_path(),json_encode($manifest));
|
||||
check(Dayu_Color_Beta::update(new WP_REST_Request(array('bundle_id'=>'com.dayu.color','current_build'=>44)))->data['update_available']===true,'older build sees update');
|
||||
check(Dayu_Color_Beta::update(new WP_REST_Request(array('bundle_id'=>'com.dayu.color','current_build'=>45)))->data['update_available']===false,'current build no downgrade');
|
||||
foreach(array('download_url'=>'https://other.example/evil.pkg','sha256'=>'bad','build'=>array(),'size'=>1073741825,'install_mode'=>'zip_replace') as $key=>$bad){$m=$manifest;$m[$key]=$bad;file_put_contents(Dayu_Color_Beta::manifest_path(),json_encode($m));check(Dayu_Color_Beta::manifest()===array(),'bad manifest '.$key);}
|
||||
echo json_encode(array('passed'=>true,'checks'=>$checks),JSON_PRETTY_PRINT)."\n";
|
||||
} finally {
|
||||
if(is_file(Dayu_Color_Beta::manifest_path()))unlink(Dayu_Color_Beta::manifest_path());
|
||||
@rmdir($testRoot.'/dayu-color-beta/updates');@rmdir($testRoot.'/dayu-color-beta');@rmdir($testRoot);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Anonymous public-beta endpoint smoke test; no credentials or production settings."""
|
||||
import datetime,json,time,urllib.request,urllib.error,uuid
|
||||
from pathlib import Path
|
||||
ROOT=Path(__file__).resolve().parent.parent
|
||||
BASE='https://dayu.media/wp-json/dayu-color/v1/'
|
||||
def call(route,body=None):
|
||||
request=urllib.request.Request(BASE+route,data=json.dumps(body).encode() if body else None,headers={'Content-Type':'application/json'})
|
||||
try:
|
||||
with urllib.request.urlopen(request,timeout=15) as r:return r.status,json.load(r)
|
||||
except urllib.error.HTTPError as e:return e.code,json.load(e)
|
||||
def main():
|
||||
status,feed=call('update?bundle_id=com.dayu.color&channel=beta¤t_build=44');assert status==200 and feed['bundle_id']=='com.dayu.color'
|
||||
assert call('update?bundle_id=other&channel=beta')[0]==400
|
||||
assert call('diagnostics')[0] in (401,403)
|
||||
event_id=str(uuid.uuid4());installation=str(uuid.uuid4());session=str(uuid.uuid4())
|
||||
event=dict(event_id=event_id,session_id=session,source='app',version='1.7.0',build=45,event='diagnostic_summary',occurred_at=time.time(),fields={'status':'deployment_smoke_test','count':1})
|
||||
payload=dict(bundle_id='com.dayu.color',installation_id=installation,events=[event])
|
||||
for attempt in range(2):
|
||||
status,reply=call('diagnostics',payload);assert status==200 and reply['accepted'] and reply['event_ids']==[event_id],(status,reply)
|
||||
bad=dict(payload,bundle_id='other');assert call('diagnostics',bad)[0]==400
|
||||
record=dict(passed=True,checked_at=datetime.datetime.now(datetime.timezone.utc).isoformat(),checks=['update GET','product isolation','admin read denied anonymously','diagnostic stored ACK','retry same UUID ACK','foreign upload denied'],test_event_id=event_id,test_installation_id=installation,update=feed)
|
||||
(ROOT/'verification/BetaBackendLive.json').write_text(json.dumps(record,ensure_ascii=False,indent=2)+'\n');print(json.dumps(record,ensure_ascii=False))
|
||||
if __name__=='__main__':main()
|
||||
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
/** Plugin Name: 大鱼调色公测更新与诊断
|
||||
* Product-scoped beta endpoints. No changes to shared account/authentication code.
|
||||
*/
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
final class Dayu_Color_Beta {
|
||||
const SCHEMA = '1';
|
||||
const BUNDLE = 'com.dayu.color';
|
||||
const MAX_BODY = 98304;
|
||||
const MAX_BATCH = 32;
|
||||
const EVENTS = array('process_start','process_exit','plugin_init','inspector_create','inspector_refresh',
|
||||
'device_prepare','gpu_pipeline','first_render','render_error','main_thread_stall',
|
||||
'operation_stall','previous_session_pending','crash_summary','registration','host_confirmed',
|
||||
'update_check','update_download','update_validation','update_installer','diagnostic_summary');
|
||||
const FIELDS = array('phase','stage','pipeline','duration_ms','status','error_domain','error_code',
|
||||
'exception','signal','frames','report_time','count','pending','model','os_version','fcp_version',
|
||||
'cpu_cores','memory_gb','gpu','main_delay_ms','active_stages','source_version');
|
||||
|
||||
public static function boot() {
|
||||
add_action('rest_api_init', array(__CLASS__, 'routes'));
|
||||
add_action('admin_menu', function () {
|
||||
add_management_page('大鱼调色公测', '大鱼调色公测', 'manage_options', 'dayu-color-beta', array(__CLASS__, 'admin'));
|
||||
});
|
||||
add_action('dayu_color_beta_cleanup', array(__CLASS__, 'cleanup'));
|
||||
}
|
||||
private static function table() { global $wpdb; return $wpdb->prefix . 'dayu_color_beta_events'; }
|
||||
public static function ensure_schema() {
|
||||
if (get_option('dayu_color_beta_schema') === self::SCHEMA) return;
|
||||
global $wpdb;
|
||||
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
||||
$table = self::table(); $collation = $wpdb->get_charset_collate();
|
||||
dbDelta("CREATE TABLE {$table} (
|
||||
event_id varchar(36) NOT NULL,
|
||||
installation_id varchar(36) NOT NULL,
|
||||
session_id varchar(36) NOT NULL,
|
||||
client_version varchar(32) NOT NULL,
|
||||
client_build bigint unsigned NOT NULL,
|
||||
source varchar(12) NOT NULL,
|
||||
event varchar(64) NOT NULL,
|
||||
fields_json text NOT NULL,
|
||||
occurred_at datetime NOT NULL,
|
||||
received_at datetime NOT NULL,
|
||||
PRIMARY KEY (event_id),
|
||||
KEY received_at (received_at),
|
||||
KEY client_event (client_build,event),
|
||||
KEY installation (installation_id)
|
||||
) {$collation};");
|
||||
if ($wpdb->get_var($wpdb->prepare('SHOW TABLES LIKE %s', $table)) === $table) {
|
||||
update_option('dayu_color_beta_schema', self::SCHEMA, false);
|
||||
if (!wp_next_scheduled('dayu_color_beta_cleanup')) wp_schedule_event(time()+3600, 'daily', 'dayu_color_beta_cleanup');
|
||||
}
|
||||
}
|
||||
public static function routes() {
|
||||
self::ensure_schema();
|
||||
register_rest_route('dayu-color/v1', '/update', array('methods'=>'GET', 'permission_callback'=>'__return_true', 'callback'=>array(__CLASS__,'update')));
|
||||
register_rest_route('dayu-color/v1', '/diagnostics', array(
|
||||
array('methods'=>'POST', 'permission_callback'=>'__return_true', 'callback'=>array(__CLASS__,'ingest')),
|
||||
array('methods'=>'GET', 'permission_callback'=>function(){ return current_user_can('manage_options'); }, 'callback'=>array(__CLASS__,'events'))
|
||||
));
|
||||
}
|
||||
public static function manifest_path() {
|
||||
$upload = wp_upload_dir(null, false);
|
||||
return rtrim($upload['basedir'], '/\\') . '/dayu-color-beta/updates/beta.json';
|
||||
}
|
||||
public static function manifest() {
|
||||
$path = self::manifest_path();
|
||||
if (!is_file($path) || filesize($path)>32768) return array();
|
||||
$value = json_decode((string)file_get_contents($path), true);
|
||||
if (!is_array($value) || ($value['bundle_id']??'')!==self::BUNDLE || ($value['channel']??'')!=='beta') return array();
|
||||
if (!is_string($value['download_url']??null) || !is_string($value['sha256']??null) || !is_string($value['version']??null) || !is_int($value['build']??null) || !is_int($value['size']??null) || ($value['package_type']??'')!=='pkg' || ($value['install_mode']??'')!=='pkg_installer') return array();
|
||||
$url = $value['download_url'];
|
||||
if (!preg_match('~^https://dayu\.media/wp-content/uploads/dayu-color-beta/updates/[A-Za-z0-9_-]+\.pkg$~D', $url)) return array();
|
||||
if (!preg_match('/^[a-f0-9]{64}$/D', (string)($value['sha256']??'')) || intval($value['size']??0)<=0 || intval($value['build']??0)<=0 || intval($value['size'])>1073741824) return array();
|
||||
return $value;
|
||||
}
|
||||
public static function update($request) {
|
||||
if (($request->get_param('bundle_id')??'')!==self::BUNDLE || ($request->get_param('channel')??'beta')!=='beta') {
|
||||
return new WP_Error('product_mismatch','此通道仅用于大鱼调色公测。',array('status'=>400));
|
||||
}
|
||||
$manifest = self::manifest();
|
||||
if (!$manifest) return new WP_REST_Response(array('bundle_id'=>self::BUNDLE,'channel'=>'beta','update_available'=>false,'message'=>'当前没有公测更新。'),200,array('Cache-Control'=>'no-store'));
|
||||
$current = max(0, intval($request->get_param('current_build')));
|
||||
$manifest['update_available'] = intval($manifest['build']) > $current;
|
||||
$manifest['checked_at'] = gmdate('c');
|
||||
return new WP_REST_Response($manifest,200,array('Cache-Control'=>'no-store'));
|
||||
}
|
||||
public static function clean_fields($input) {
|
||||
if (!is_array($input)) return array();
|
||||
$out = array();
|
||||
foreach (self::FIELDS as $key) {
|
||||
if (!array_key_exists($key,$input) || !is_scalar($input[$key])) continue;
|
||||
if (in_array($key,array('duration_ms','main_delay_ms','memory_gb','cpu_cores','count','pending','error_code'),true)) {
|
||||
if (is_numeric($input[$key]) && is_finite((float)$input[$key])) $out[$key]=max(-1000000,min(86400000,(float)$input[$key]));
|
||||
continue;
|
||||
}
|
||||
$value = sanitize_textarea_field((string)$input[$key]);
|
||||
$value = preg_replace('~(?:https?://\S+|(?:/Users/|/Volumes/|/private/|/var/)[^\r\n]*)~i','[REDACTED]',$value);
|
||||
$value = preg_replace('/(?:bearer\s+\S+|(?:token|api[_-]?key|secret|password)\s*[=:]\s*\S+)/i','[REDACTED]',$value);
|
||||
$limit = $key==='frames' ? 6000 : ($key==='active_stages' ? 1000 : 200);
|
||||
$out[$key] = function_exists('mb_substr') ? mb_substr($value,0,$limit,'UTF-8') : substr($value,0,$limit);
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
private static function uuid($value) { return is_string($value) && preg_match('/^[a-f0-9]{8}-(?:[a-f0-9]{4}-){3}[a-f0-9]{12}$/iD',$value); }
|
||||
public static function ingest($request) {
|
||||
if (strlen($request->get_body())>self::MAX_BODY) return new WP_Error('body_too_large','诊断批次过大。',array('status'=>413));
|
||||
$body = $request->get_json_params();
|
||||
if (!is_array($body) || ($body['bundle_id']??'')!==self::BUNDLE || !self::uuid($body['installation_id']??null)
|
||||
|| !isset($body['events']) || !is_array($body['events']) || count($body['events'])<1 || count($body['events'])>self::MAX_BATCH) {
|
||||
return new WP_Error('invalid_batch','诊断批次无效。',array('status'=>400));
|
||||
}
|
||||
// Anonymous beta diagnostics are untrusted input, never an authorization proof.
|
||||
$ip = (string)($_SERVER['REMOTE_ADDR']??'unknown');
|
||||
$bucket = 'dayu_color_rate_' . substr(hash_hmac('sha256',$ip,wp_salt('nonce')),0,32);
|
||||
$count = intval(get_transient($bucket));
|
||||
if ($count>=300) return new WP_Error('rate_limit','请稍后重试。',array('status'=>429));
|
||||
set_transient($bucket,$count+1,10*MINUTE_IN_SECONDS);
|
||||
$normalized = array();
|
||||
foreach ($body['events'] as $event) {
|
||||
if (!is_array($event) || !self::uuid($event['event_id']??null) || !self::uuid($event['session_id']??null)
|
||||
|| !in_array($event['event']??'',self::EVENTS,true) || !in_array($event['source']??'',array('app','plugin'),true)
|
||||
|| !is_string($event['version']??null) || strlen($event['version'])>32 || !preg_match('/^[0-9]+(?:\.[0-9A-Za-z_-]+){1,3}$/D',$event['version'])
|
||||
|| !is_int($event['build']??null) || $event['build']<1 || $event['build']>999999999
|
||||
|| !is_numeric($event['occurred_at']??null) || !is_finite((float)$event['occurred_at']) || abs((float)$event['occurred_at']-time())>366*DAY_IN_SECONDS) return new WP_Error('invalid_event','诊断事件无效。',array('status'=>400));
|
||||
$normalized[] = array('event_id'=>strtolower($event['event_id']),'installation_id'=>strtolower($body['installation_id']),
|
||||
'session_id'=>strtolower($event['session_id']),'client_version'=>substr($event['version'],0,32),
|
||||
'client_build'=>intval($event['build']),'source'=>$event['source'],'event'=>$event['event'],
|
||||
'fields_json'=>wp_json_encode(self::clean_fields($event['fields']??array()),JSON_UNESCAPED_UNICODE),
|
||||
'occurred_at'=>gmdate('Y-m-d H:i:s',(int)$event['occurred_at']), 'received_at'=>gmdate('Y-m-d H:i:s'));
|
||||
}
|
||||
global $wpdb; $table=self::table(); $accepted=array();
|
||||
foreach ($normalized as $row) {
|
||||
// Idempotent event IDs permit bounded retry after an ambiguous connection loss.
|
||||
if ($wpdb->get_var($wpdb->prepare("SELECT event_id FROM {$table} WHERE event_id=%s",$row['event_id']))) { $accepted[]=$row['event_id']; continue; }
|
||||
if ($wpdb->insert($table,$row)===false && !$wpdb->get_var($wpdb->prepare("SELECT event_id FROM {$table} WHERE event_id=%s",$row['event_id']))) return new WP_Error('storage_failed','诊断存储失败,请稍后重试。',array('status'=>503));
|
||||
$accepted[]=$row['event_id'];
|
||||
}
|
||||
return new WP_REST_Response(array('accepted'=>true,'event_ids'=>$accepted,'received_at'=>gmdate('c')),200,array('Cache-Control'=>'no-store'));
|
||||
}
|
||||
public static function cleanup() {
|
||||
global $wpdb; $table=self::table();
|
||||
$wpdb->query($wpdb->prepare("DELETE FROM {$table} WHERE received_at < %s",gmdate('Y-m-d H:i:s',time()-30*DAY_IN_SECONDS)));
|
||||
}
|
||||
public static function events($request) {
|
||||
global $wpdb; $table=self::table(); $where='1=1'; $values=array();
|
||||
foreach (array('build'=>'client_build','event'=>'event','installation'=>'installation_id') as $param=>$column) {
|
||||
$raw=$request->get_param($param);$value = is_scalar($raw)?sanitize_text_field((string)$raw):'';
|
||||
if ($value!=='') { $where.=" AND {$column}=%s"; $values[]=$value; }
|
||||
}
|
||||
$page=max(1,min(1000,intval($request->get_param('page'))));
|
||||
$sql="SELECT event_id,installation_id,session_id,client_version,client_build,source,event,fields_json,occurred_at,received_at FROM {$table} WHERE {$where} ORDER BY received_at DESC LIMIT 50 OFFSET " . (($page-1)*50);
|
||||
$rows=$wpdb->get_results($values?$wpdb->prepare($sql,$values):$sql,ARRAY_A);
|
||||
return array('events'=>$rows?:array(),'page'=>$page,'retention_days'=>30);
|
||||
}
|
||||
public static function admin() {
|
||||
if (!current_user_can('manage_options')) return;
|
||||
self::ensure_schema(); global $wpdb; $table=self::table();
|
||||
$request = new WP_REST_Request('GET');
|
||||
foreach (array('build','event','installation') as $key) $request->set_param($key,is_string($_GET[$key]??null)?sanitize_text_field(wp_unslash($_GET[$key])):'');
|
||||
$request->set_param('page',max(1,intval($_GET['paged']??1)));
|
||||
$result=self::events($request);$manifest=self::manifest();
|
||||
$devices=intval($wpdb->get_var($wpdb->prepare("SELECT COUNT(DISTINCT installation_id) FROM {$table} WHERE received_at >= %s",gmdate('Y-m-d H:i:s',time()-7*DAY_IN_SECONDS))));
|
||||
echo '<div class="wrap"><h1>大鱼调色公测</h1><p>近7天报告设备:<strong>'.esc_html($devices).'</strong> · 诊断保留30天。匿名公测标识用于关联问题,不代表账号或设备授权。</p>';
|
||||
echo '<h2>公测更新</h2><p>'.($manifest?'当前版本:'.esc_html($manifest['version']).'('.esc_html($manifest['build']).')':'尚未发布更新包').'</p>';
|
||||
echo '<h2>诊断事件</h2><form method="get"><input type="hidden" name="page" value="dayu-color-beta">';
|
||||
foreach (array('build'=>'构建号','event'=>'事件','installation'=>'完整报告标识') as $key=>$label) echo '<label>'.esc_html($label).' <input name="'.esc_attr($key).'" value="'.esc_attr($request->get_param($key)).'"></label> ';
|
||||
echo '<button class="button">筛选</button></form><table class="widefat striped"><thead><tr><th>时间(UTC)</th><th>版本</th><th>报告标识</th><th>来源/事件</th><th>内容</th></tr></thead><tbody>';
|
||||
foreach ($result['events'] as $row) {
|
||||
echo '<tr><td>'.esc_html($row['occurred_at']).'<br>送达 '.esc_html($row['received_at']).'</td><td>'.esc_html($row['client_version'].' ('.$row['client_build'].')').'</td><td><code>'.esc_html($row['installation_id']).'</code><br>会话 '.esc_html(substr($row['session_id'],0,8)).'</td><td>'.esc_html($row['source'].' / '.$row['event']).'</td><td><pre style="white-space:pre-wrap;max-width:760px">'.esc_html(wp_json_encode(json_decode($row['fields_json'],true),JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE)).'</pre></td></tr>';
|
||||
}
|
||||
echo '</tbody></table><p>';
|
||||
$base=array('page'=>'dayu-color-beta','build'=>$request->get_param('build'),'event'=>$request->get_param('event'),'installation'=>$request->get_param('installation'));
|
||||
if ($result['page']>1) echo '<a class="button" href="'.esc_url(add_query_arg(array_merge($base,array('paged'=>$result['page']-1)),admin_url('tools.php'))).'">上一页</a> ';
|
||||
if (count($result['events'])===50) echo '<a class="button" href="'.esc_url(add_query_arg(array_merge($base,array('paged'=>$result['page']+1)),admin_url('tools.php'))).'">下一页</a>';
|
||||
echo '</p><p>仅包含产品版本、环境、阶段耗时、错误代码及本插件崩溃摘要,不接收素材、预设、硬件UUID或账户凭据。</p></div>';
|
||||
}
|
||||
}
|
||||
Dayu_Color_Beta::boot();
|
||||
@@ -0,0 +1,19 @@
|
||||
# 大鱼调色 1.7.0(45)公测
|
||||
|
||||
加入主 APP 自动更新检查与云端公测诊断。启动时并行检查插件注册和新版本;注册成功且检查结束后显示3秒退出倒计时,发现更新则保留窗口。完整 PKG 更新由用户确认下载,验证 SHA-256、大小、签名团队、公证评估、产品/版本/安装位置及 FCP 模板;保存并退出 FCP/Motion 后打开系统安装器。
|
||||
|
||||
公测诊断默认开启,可在主 APP 随时关闭。主 APP 与插件共用随机报告标识,后台限量排队、离线重试、事件去重。采集版本和系统环境、插件/检查器/Metal 管线/首次渲染耗时、错误代码、疑似阻塞及本插件崩溃摘要;不上传素材、LUT、预设、账号、硬件 UUID、用户路径或原始崩溃文件。云端保留30天,管理页面需管理员登录。
|
||||
|
||||
本轮用于收集偶发 FCP 加载卡死证据,保留既有调色及宿主回调逻辑,未宣称修复卡死。暂未加入登录、授权或业务加密模块。共享会员后台不变,公测使用独立产品路由与日志表。主 APP 启动时检查更新,插件使用期间不会自动替换正在运行的组件。
|
||||
|
||||
要求 Apple Silicon、macOS 14.6 或更新。固定安装位置 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;主/插件 ID 为 `com.dayu.color`、`com.dayu.color.XPC`。APP 实际编译源码 `a0f37578f73d7f8faa872d9a81009e2d6586a858`。Metal 与模板 SHA 与1.6.1一致。
|
||||
|
||||
395项原生检查通过;正式路径 UI、诊断关闭/恢复/手动发送、3秒退出、FCP 12.4 界面与曝光调整/还原通过,云端已实际收到插件首次渲染记录。另有66项更新/隐私/完整签名安装包检查、20项后端契约检查,以及线上接收与去重验证。单次本机加载正常不能证明偶发卡死已经解决。
|
||||
|
||||
APP 公证 `777a5c05-4936-4b14-b8e8-0c789c1df05c` Accepted;PKG 公证 `04082e26-663d-4408-85da-63736d079aa2` Accepted;签名、票据、Gatekeeper 和展开验包通过。本轮正式 APP 已直接安装及宿主验收,PKG 已验包,未重复执行系统安装脚本。
|
||||
|
||||
发行包 `大鱼调色-1.7.0.pkg`,40,898,751字节;SHA-256 `a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb`。
|
||||
|
||||
公测下载:https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg
|
||||
|
||||
日志后台:https://dayu.media/wp-admin/tools.php?page=dayu-color-beta (管理员)。反馈用户可附主 APP 显示的报告标识和发生时间,便于关联同一次加载过程。
|
||||
@@ -0,0 +1,13 @@
|
||||
# 大鱼调色 1.7.1(46)
|
||||
|
||||
兼容部分 Cube LUT 在颜色数据行中夹带文字的情况:保留开头的有效数值,读不到的后续通道补 0,忽略文字尾注并保持各行位置,与本机 FCP“自定 LUT”处理用户提供文件的方式一致。编码兼容、正常 LUT 的浮点精度和原始文件保持不变。
|
||||
|
||||
仍拒绝缺失数据行、无效数值、损坏编码及错误尺寸。此兼容不会恢复被文字替换的原始颜色数值,也不对其进行插值猜测。
|
||||
|
||||
要求 Apple Silicon、macOS 14.6 或更新。唯一安装位置 `/Library/Plug-Ins/FxPlug/大鱼调色.app`,Bundle ID `com.dayu.color`。本轮不修改网站、公测更新清单或后端。
|
||||
|
||||
正式签名、公证、验证及发行包摘要见 `verification/Delivery.json`、`verification/Package.json` 与 `verification/Release.json`。
|
||||
|
||||
实际编译源码 `58a17de43810798570b4965166d33129d949de3d`。APP公证 `59cbf6ce-3782-4aa0-bc3b-b82c345ee498`、PKG公证 `208441f0-d244-4b7c-abdc-cc3eef602a77` 均 Accepted,票据与Gatekeeper通过,20项展开验包通过。正式安装407项原生检查及FCP12.4原文件导入、应用、冷重开通过;本轮未重复执行PKG系统安装脚本。
|
||||
|
||||
包名 `大鱼调色-1.7.1.pkg`,40902664字节;SHA-256 `533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791`。
|
||||
@@ -0,0 +1,11 @@
|
||||
# 大鱼调色 1.7.2(47)
|
||||
|
||||
修正风格LUT缩略图浏览库的远程窗口尺寸处理:按FCP提供的实际内容区域布局,避免用本地保存的位置、尺寸和min/max覆盖宿主窗口;容器变更时同步填充深色内容区。缩略图大小、列表/网格、侧栏、分类和最近使用继续保留。
|
||||
|
||||
本地脱离式窗口使用系统实际标题栏尺寸,并把恢复位置约束到当前显示器。保留1.7.1的Cube文字行兼容。
|
||||
|
||||
要求Apple Silicon、macOS14.6或更新,唯一位置`/Library/Plug-Ins/FxPlug/大鱼调色.app`。本机宿主为FCP12.4;反馈来自FCP12.3/系统27.01,目标机显示器配置未知,目标版本仍需更新后复测。测试和交付结果见本轮verification记录。
|
||||
|
||||
APP实际编译 `f9dea76a453319abceaff2d66ba401d30ae10468`;公证 `5606289a-3d55-4d57-99ef-95ad7812734d` Accepted。PKG公证 `5167b3e0-89a0-457e-a832-753bd385ca93` Accepted,签名、票据、Gatekeeper及20项展开验包通过。408项正式原生检查与本机宿主验收通过;本轮未重复运行PKG安装脚本。
|
||||
|
||||
包名`大鱼调色-1.7.2.pkg`,40904714字节,SHA-256 `dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6`。
|
||||
@@ -0,0 +1,11 @@
|
||||
# 大鱼调色 1.7.3(49)
|
||||
|
||||
修正部分显示器选择“更多空间”后,LUT缩略图浏览库出现大片灰色、内容偏移和裁切的问题。浏览库首次打开即可对齐完整内容区,无需点击窗口绿色按钮恢复;宿主窗口大小、网格/列表、侧栏与缩略图设置继续保留。
|
||||
|
||||
本机FCP12.4/macOS27.0.1在相同显示设置下复现旧问题并验证修正,首次打开、热/冷重开及绿色按钮缩放通过。目标MacBook/FCP12.3仍需使用者更新复测。保留Cube文字行兼容,不改调色数学、模板与Metal库。
|
||||
|
||||
要求Apple Silicon、macOS14.6或更新,唯一安装位置`/Library/Plug-Ins/FxPlug/大鱼调色.app`。
|
||||
|
||||
实际编译源码`2688b22f99b5118153b94a43f6c184a204d4ce7e`。APP公证`06e09906-676f-414b-adcc-acf2bec6864a`、PKG公证`4d2d6a3c-4dba-4711-b2d0-a59707ff72ce`均Accepted;签名、票据、Gatekeeper及20项展开验包通过。411项正式原生、27项几何及23项浏览库检查通过。本轮APP独立正式安装并验收,未再次运行PKG安装脚本。
|
||||
|
||||
包名`大鱼调色-1.7.3.pkg`,40908193字节,SHA-256 `f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324`。
|
||||
+1
-1
@@ -76,7 +76,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、预设或媒体文件。",
|
||||
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天。主 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")
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Read back a published beta Release and fully download its exact verified PKG.
|
||||
PKG Forge's generic publisher rejects the prerelease flag; preserve beta metadata here.
|
||||
"""
|
||||
import argparse,hashlib,json,runpy,subprocess
|
||||
from pathlib import Path
|
||||
ROOT=Path(__file__).resolve().parent.parent
|
||||
REPOSITORY='dayu/dayu-color'
|
||||
def git(*args):return subprocess.check_output(['git',*args],cwd=ROOT,text=True).strip()
|
||||
def main():
|
||||
parser=argparse.ArgumentParser(description=__doc__);parser.add_argument('--tag',required=True);parser.add_argument('--notes',required=True,type=Path);args=parser.parse_args()
|
||||
report=json.loads((ROOT/'verification/Package.json').read_text());package=Path(report['package']);expected=json.loads(git('show',args.tag+':verification/Package.json'))
|
||||
assert report['pass'] and not report['testUnsigned'] and report['notarization']['status']=='Accepted'
|
||||
for key in ['sha256','bytes','appCompiledSource','appBuild']:assert report[key]==expected[key]
|
||||
assert package.stat().st_size==report['bytes'] and hashlib.sha256(package.read_bytes()).hexdigest()==report['sha256']
|
||||
helper=runpy.run_path('/Users/mac/.codex/skills/pkg-forge/scripts/publish_release.py',run_name='dayu_beta_release_helper')
|
||||
provider=runpy.run_path('/Users/mac/.local/bin/dayu-git',run_name='dayu_beta_provider');token,source=provider['credential']('dayu');api=helper['API'](token)
|
||||
with helper['repository_lock'](REPOSITORY):
|
||||
commit=git('rev-parse',args.tag+'^{commit}');assert git('ls-remote','origin','refs/tags/'+args.tag).split()[0]==commit
|
||||
repo=api.request('GET','/repos/'+REPOSITORY);assert repo['full_name']==REPOSITORY and repo['permissions']['push']
|
||||
release=api.request('GET','/repos/'+REPOSITORY+'/releases/tags/'+args.tag)
|
||||
title='大鱼调色 '+report['resources'][0]['version']+'('+report['appBuild']+')'
|
||||
assert not release['draft'] and release['prerelease'] and release['name']==title and release['body'].strip()==args.notes.read_text().strip()
|
||||
path='/repos/'+REPOSITORY+'/releases/'+str(release['id'])
|
||||
assets=api.request('GET',path+'/assets');matches=[a for a in assets if a['name']==package.name];assert len(matches)==1;asset=matches[0];assert asset['size']==report['bytes']
|
||||
digest,size=api.downloaded_digest(asset['browser_download_url'],report['bytes']);assert digest==report['sha256'] and size==report['bytes']
|
||||
final=api.request('GET',path);confirmed=api.request('GET',path+'/assets')
|
||||
assert final['id']==release['id'] and not final['draft'] and final['prerelease'] and final['tag_name']==args.tag and final['name']==title and final['body'].strip()==args.notes.read_text().strip()
|
||||
assert any(a['id']==asset['id'] and a['name']==package.name and a['size']==size for a in confirmed)
|
||||
result=dict(passResult=True,repository=REPOSITORY,repositoryID=repo['id'],private=repo['private'],tag=args.tag,releaseCommit=commit,releaseID=final['id'],releaseURL=final['html_url'],prerelease=True,
|
||||
assetID=asset['id'],assetName=asset['name'],downloadURL=asset['browser_download_url'],bytes=size,sha256=digest,existingAssetReused=True,
|
||||
verification='Authenticated full download SHA-256 and byte count, then beta release/asset read-back; original prerelease metadata preserved.',credentialSource=source)
|
||||
(ROOT/'verification/Release.json').write_text(json.dumps(result,ensure_ascii=False,indent=2)+'\n');print(json.dumps(result,ensure_ascii=False))
|
||||
if __name__=='__main__':main()
|
||||
@@ -1,10 +1,20 @@
|
||||
# 大鱼调色
|
||||
|
||||
原生 FxPlug 4 调色器,当前正式安装版本 **1.6.1(44)**。唯一安装位置为 `/Library/Plug-Ins/FxPlug/大鱼调色.app`;Final Cut Pro 中从“效果 → 大鱼调色”添加。
|
||||
原生 FxPlug 4 调色器,当前正式安装的公测版本 **1.7.3(49)**。唯一安装位置为 `/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)。
|
||||
1.7.3 修正“更多空间”下远程内容容器原点偏移造成的大片灰色和裁切。首次打开自动对齐内容区,无需点击绿色按钮;不调整宿主窗口尺寸。411项正式原生、27项几何与23项浏览库检查通过,本机FCP12.4同一显示设置的首次、热/冷重开与缩放正常。见[实际原因与修正](research/BrowserMoreSpace1.7.3.md)、[宿主验证](verification/HostBrowserMoreSpace1.7.3.json)和[资源文章](https://dayu.media/15792/)。目标MacBook/FCP12.3仍需使用者更新复测。
|
||||
|
||||
1.7.2 修正LUT缩略图浏览库远程窗口的尺寸归属和容器同步,不再把本地位置记录强加给FCP;本地脱离式窗口改用系统实际标题栏换算。408项正式原生、21项几何及23项浏览库检查通过,FCP12.4/macOS27.0.1观察到完整深色窗口、网格/列表及冷重开正常;报告中的FCP12.3目标机尚未直接复测。见[修复依据](research/BrowserRemoteGeometry1.7.2.md)、[宿主记录](verification/HostBrowserGeometry1.7.2.json)、[1.7.2 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.2-browser-geometry-20261102)及[资源文章](https://dayu.media/15792/)。
|
||||
|
||||
1.7.1 兼容颜色数据行夹带文字的 Cube:保留数值前缀、未读取通道补 0、保持原行位置。用户原文件 65³ 全表与本机 FCP 自定 LUT 读取规则对照通过;正式路径407项原生检查、FCP导入/缩略图/应用/冷重开通过,原始字节保留。见[兼容依据](research/LUTNotes1.7.1.md)、[宿主验证](verification/HostLUTNotes1.7.1.json)和[1.7.1安装包 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.1-lut-notes-20261102)。网站公测更新清单仍为原1.7.0,本轮未改动后端。
|
||||
|
||||
主 APP 保留深色介绍、置顶发布地址、自动注册和3秒退出倒计时;加入启动自动检查公测更新和可关闭的云端诊断。更新使用完整 PKG,由用户确认下载并通过完整性、签名与产品校验后打开系统安装器;安装前要求保存并退出 FCP/Motion。诊断记录版本、环境、启动/界面/管线/首次渲染耗时及错误摘要,后台限量重试、云端去重并保留30天,不发送素材、LUT、预设、账号或硬件 UUID。暂未加入登录、授权及业务加密模块。
|
||||
|
||||
[1.7.0站点公测安装包](https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg)、[1.7.0 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.0-beta-20261102)、[日志管理页](https://dayu.media/wp-admin/tools.php?page=dayu-color-beta)(管理员)。反馈可附主 APP 的报告标识与发生时间。详见[公测前后端与隐私/恢复说明](Backend/README.md)、[1.7.0发行说明](Packaging/Release-1.7.0.md)和[正式宿主/日志验证](verification/BetaClientQA.json)。本轮保留既有调色与宿主回调逻辑,收集偶发卡死证据,尚未宣称解决该问题。
|
||||
|
||||
1.6.1 主界面改造及用户宿主确认属于历史记录,见[说明](research/MainApp1.6.1.md)、[验证](verification/MainApp1.6.1.json);后续账号工作仍参考[原交接](大鱼调色主APP开发交接.md)。
|
||||
|
||||
## 胶片模拟与通道混合器
|
||||
|
||||
@@ -103,6 +113,6 @@ LUT 缩略图浏览器使用宿主的独立可调整窗口:拖动标题栏移
|
||||
|
||||
正式发行包由 PKG 工坊技能生成,包含 APP 与 FCP 模板,不含用户 LUT、预设或媒体。安装与发布证据分别保存在 [Package.json](verification/Package.json) 和 [Release.json](verification/Release.json);以其中记录的版本和成功状态为准。
|
||||
|
||||
当前发行包:[大鱼调色-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.6.1.pkg](../发行包/大鱼调色-1.6.1.pkg),主APP与注册验证见[1.6.1记录](verification/MainApp1.6.1.json)。 [1.6.1 Release](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.1-main-app-20261102)已发布(Release374 / 附件19),草稿和正式链接完整下载均核对40,854,422字节和SHA-256一致;发行标签304文件逐字节独立恢复、102个APP/工程文件与实际编译节点一致,已清理本轮生成副本。FCP实际使用已由用户于2026-11-02明确确认正常,见[用户验收记录](verification/HostUserConfirmation1.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 另在独立合成工程中完成上文的宿主检查,用户确认中心拖动后保留其试调状态。
|
||||
+50
-2
@@ -2,13 +2,61 @@
|
||||
|
||||
当前交接:[大鱼调色FxPlug4交接.md](大鱼调色FxPlug4交接.md)。
|
||||
|
||||
## 当前1.6.1(44):主 APP 界面与自动注册
|
||||
## 当前1.7.3(49):更多空间的内容原点
|
||||
|
||||
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.3-browser-origin-20261102`,实际编译源码 `2688b22f99b5118153b94a43f6c184a204d4ce7e`。版本标签完整SHA与Release/附件下载校验以 `verification/Release.json` 为准;可用 `git switch --detach v1.7.3-browser-origin-20261102` 或完整编译SHA恢复。Xcode27.1 / FxPlugSDK4.3.5,无LFS、子模块或新增必要外部资源;签名私钥与公证凭据需独立恢复。
|
||||
|
||||
唯一APP `/Library/Plug-Ins/FxPlug/大鱼调色.app`,APP公证 `06e09906-676f-414b-adcc-acf2bec6864a`、PKG公证 `4d2d6a3c-4dba-4711-b2d0-a59707ff72ce` 均Accepted,签名、票据、Gatekeeper与20项展开验包通过。411项正式原生、27项几何、23项浏览库检查及本机FCP12.4/macOS27.0.1“更多空间”的首次/热重开/冷重开/绿色缩放通过。目标使用者MacBook/FCP12.3未直接覆盖,需其复测。
|
||||
|
||||
真实运行记录显示parent contentView原点(789,521)残留,浏览器在parent内部正确但映射到窗口后整体偏移;以公开AppKit坐标转换只修正内容原点,不移动或缩放宿主窗口。见 `research/BrowserMoreSpace1.7.3.md`、`verification/MoreSpaceBridgeRuntime1.7.3.json` 和 `HostBrowserMoreSpace1.7.3.json`。
|
||||
|
||||
正式包 `../发行包/大鱼调色-1.7.3.pkg`,40908193字节,SHA-256 `f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324`。APP直接正式替换并启动验证,PKG只生成及展开验包,未再次运行系统安装脚本。诊断48版未制作或发布安装包,其旧APP备份已在49版验收后清理;本机临时开启的几何采样偏好已删除。模板、Metal和用户LUT保留。源码独立恢复368个文件并重建27项几何检查通过,最终标签核验与清理记录见 `verification/MoreSpaceRecovery1.7.3.json`。网站自动更新清单仍为原1.7.0,本轮不修改后端。
|
||||
|
||||
## 历史1.7.2(47):远程LUT窗口
|
||||
|
||||
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.2-browser-geometry-20261102`,实际编译源码 `f9dea76a453319abceaff2d66ba401d30ae10468`,完整标签SHA见 `verification/Release.json`。独立克隆后用 `git switch --detach v1.7.2-browser-geometry-20261102` 或上述完整编译SHA恢复,Xcode27.1 / FxPlugSDK4.3.5;无LFS、子模块和新增外部资源,证书/私钥/公证凭据仍需独立恢复。
|
||||
|
||||
唯一APP `/Library/Plug-Ins/FxPlug/大鱼调色.app`。APP公证 `5606289a-3d55-4d57-99ef-95ad7812734d`、PKG公证 `5167b3e0-89a0-457e-a832-753bd385ca93` 均Accepted;签名、票据、Gatekeeper与20项展开验包通过。408项正式原生、21项几何及23项浏览库回归通过。FCP12.4/macOS27.0.1检查打开/缩放/深色填充、列表网格、热重开及正常退出冷重开;目标FCP12.3未实机覆盖。Metal和模板与1.7.1逐字节一致,未修改LUT颜色数学。
|
||||
|
||||
包 `../发行包/大鱼调色-1.7.2.pkg`,40904714字节,SHA-256 `dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6`。本轮APP直接正式替换并启动验证,PKG仅生成及展开验包,未重复运行系统安装脚本。源码/宿主/包记录见 `verification/BrowserGeometryRecovery1.7.2.json`、`HostBrowserGeometry1.7.2.json`、`Delivery.json`、`Package.json`。本轮不修改网站自动更新清单,文章和媒体更新另见publication记录。
|
||||
|
||||
1.7.2发行标签完整SHA `7720d9a042271ad0147992a7d476b5c06151f616`,Release378 / 附件22 已发布并保留公测标记;草稿正常浏览器下载与发布后完整下载均核对 40904714 字节及SHA-256一致。版本页 https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.2-browser-geometry-20261102 。标签362文件独立恢复和full/strict fsck通过,程序源码与实际编译节点相同;临时clone、验证程序、浏览器下载副本及生成APP已按本任务范围清理。见 `BrowserGeometryReleaseDraft1.7.2.json`、`Release.json`、`BrowserGeometryRecovery1.7.2.json`、`BrowserGeometryCleanup1.7.2.json`。
|
||||
|
||||
既有文章 https://dayu.media/15792/ 已更新为1.7.2(47),主下载媒体15801完整下载与同一正式PKG一致;保留50元、会员免费、封面、分类及原FCPX同步设置,正文/SEO/安装说明和匿名页面通过。见 `publication/ArticleUpdate1.7.2.json` / `ArticleUpdateVerification1.7.2.json`;没有变更自动更新清单。
|
||||
|
||||
## 历史1.7.1(46):Cube文字行容错
|
||||
|
||||
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.1-lut-notes-20261102`。实际编译源码 `58a17de43810798570b4965166d33129d949de3d`;完整标签提交及安装包链接见 `verification/Release.json`。克隆后 `git switch --detach v1.7.1-lut-notes-20261102` 恢复发行节点,或按上述完整SHA恢复实际编译源码。Xcode27.1 / FxPlugSDK4.3.5,无LFS或子模块;签名证书、私钥和公证凭据仍需独立恢复。
|
||||
|
||||
唯一位置 `/Library/Plug-Ins/FxPlug/大鱼调色.app`,固定Bundle ID和团队保持。APP公证 `59cbf6ce-3782-4aa0-bc3b-b82c345ee498` Accepted;PKG公证 `208441f0-d244-4b7c-abdc-cc3eef602a77` Accepted。签名、票据、Gatekeeper及20项展开验包通过;本轮APP直接正式替换和宿主验证,PKG未重复执行安装脚本。
|
||||
|
||||
407项正式原生检查包含只读用户文件、全表及GPU数值基准、缩略图和隔离导入;FCP12.4真实导入桌面原文件、缩略图可应用、画面变化、正常退出冷重开保持通过。用户库从56项增至57项,原文件及导入副本字节相同。苹果全部274625行的对照及容错边界见 `research/LUTNotes1.7.1.md`;产品不依赖Apple私有框架或REA。
|
||||
|
||||
PKG `../发行包/大鱼调色-1.7.1.pkg`,40902664字节,SHA-256 `533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791`。源码恢复、宿主与交付证据分别见 `verification/LUTNoteRecovery.json`、`HostLUTNotes1.7.1.json`、`LUTNoteInstalled.json`、`Delivery.json`、`Package.json`。用户LUT及测试数值副本不进入Git/PKG,本轮不更新NAS和网站更新清单。
|
||||
|
||||
发行标签完整SHA `14cca24de6901b1d1d57d6a3ff6eccaf12f6a77c`,Release377 / 附件21 已发布(保留公测标记),草稿正常浏览器完整下载和发布后的完整下载均核对 40902664 字节及SHA-256一致。Release:https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.1-lut-notes-20261102;附件:https://dayu.media/git/dayu/dayu-color/releases/download/v1.7.1-lut-notes-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.7.1.pkg。标签351文件全字节恢复、full/strict fsck及程序源码与实际编译节点一致通过;验证clone、Apple分析临时切片、数值基准和浏览器下载副本已清理,保留一个本轮正式发行包与原有历史包。见 `LUTNoteReleaseDraft.json`、`Release.json`、`LUTNoteRecovery.json`、`LUTNoteCleanup.json`。
|
||||
|
||||
文章更新:既有文章 `https://dayu.media/15792/` 已更新为1.7.1(46),主下载绑定本站媒体15799;完整下载40,902,664字节与正式PKG的SHA-256一致。保留50元/会员免费、封面15795、分类与FCPX同步设置,标题/正文/SEO及匿名前台验证通过。当前发布副本及回读见 `publication/ArticleUpdate1.7.1.json`、`ArticleUpdateVerification1.7.1.json`、`article.html`。仅更新文章和媒体,网站自动更新清单仍为1.7.0。
|
||||
|
||||
## 历史1.7.0(45):公测更新与诊断
|
||||
|
||||
远程 `https://dayu.media/git/dayu/dayu-color.git`,main;发行标签 `v1.7.0-beta-20261102` 对应 `b5d842835cef860d27f38b3f9c2efc6743abfaa4`,实际编译源码 `a0f37578f73d7f8faa872d9a81009e2d6586a858`。唯一位置、Bundle ID、团队与系统要求同下方历史版本。Xcode27.1、FxPlugSDK4.3.5;无LFS和子模块。证书、私钥与公证凭据需独立恢复。
|
||||
|
||||
克隆后 `git switch --detach v1.7.0-beta-20261102`;安装所需SDK与本机签名身份/profile,再运行 `python3 tools/deliver.py` 完成Release构建、正式签名、公证、安装及宿主验收。`Backend/` 包含隔离公测后端源码、契约测试和精确部署脚本;NAS源、旁路备份、映射、路由和回滚见 `Backend/README.md`。数据库诊断和NAS安装包空间不等于Git源码副本,数据库由站点备份负责。
|
||||
|
||||
APP公证 `777a5c05-4936-4b14-b8e8-0c789c1df05c`、PKG公证 `04082e26-663d-4408-85da-63736d079aa2` 均 Accepted。395项原生、66项更新/隐私/包校验、20项后端契约及线上实际日志通过;FCP12.4新界面/曝光调节/还原由代理验收,上一版用户确认没有移作本版用户验收。Metal和模板字节未变,卡死根因尚未确认。
|
||||
|
||||
PKG `../发行包/大鱼调色-1.7.0.pkg`,40,898,751字节,SHA-256 `a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb`。Release375 / 附件20,源码标签与公测NAS下载使用同一最终包;草稿及正式附件完整下载校验分别见 `verification/BetaReleaseDraftDownload.json` 与 `verification/Release.json`,线上更新下载见 `BetaUpdateLive.json`。PKG已展开验证,本轮未重复执行系统安装脚本。
|
||||
|
||||
远端独立恢复326文件逐字节核验、106个APP/工程文件与实际编译节点一致,full/strict fsck、Xcode方案解析与后端20项契约通过,见 `verification/BetaRecovery.json`。公测Release带prerelease标记;通用PKG工坊发布器不支持此标记时保留原元数据,使用本项目 `Packaging/verify_beta_release.py` 只读完整下载及回读核验。不会改动其他产品或共享会员鉴权。
|
||||
|
||||
## 历史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用户确认仍单独记录。
|
||||
通过克隆仓库并 `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` 对应完整提交 `5d9a4ad7072c1d30f9f8d589719939e2efbcd53c`,[Release374](https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.1-main-app-20261102) / 附件19已发布;正常浏览器草稿下载及发布后的完整下载均核对大小、SHA-256一致,附件URL见verification/Release.json。独立恢复304文件逐字节核对、full/strict fsck通过,102个APP/工程文件与实际编译节点90d6022520c59ea34f42b511daee85ac2936cfd9一致。临时回滚APP、下载和恢复副本已清理,历史发行包及用户QA资料保留,见MainAppCleanup1.6.1.json;FCP实际使用已由用户于2026-11-02明确回复“已确认正常”,详见verification/HostUserConfirmation1.6.1.json;APP、安装包及发行标签未改变。
|
||||
|
||||
## 历史1.6.0(39):八种印片、低版本模板与默认映射
|
||||
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"status": "published-and-verified",
|
||||
"postID": 15792,
|
||||
"articleURL": "https://dayu.media/15792/",
|
||||
"baselineCommit": "04d74e1dd2bcb46a8cad0e73888707965d525394",
|
||||
"baselineContentMatchesGit": true,
|
||||
"baselineContentSHA256": "90f194f604bb96331bd9dd0f03e328ee3fa84d108c8220c3ebc4982a020b1ffb",
|
||||
"beforeTitle": "大鱼调色 1.7.0 公测版:Final Cut Pro 原生调色插件",
|
||||
"beforeDownloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
|
||||
"beforeResource": {
|
||||
"cao_status": "1",
|
||||
"cao_close_novip_pay": "",
|
||||
"cao_is_boosvip": "",
|
||||
"cao_video": "",
|
||||
"cao_is_video_free": "",
|
||||
"cao_price": "50",
|
||||
"cao_vip_rate": "0",
|
||||
"cao_ref_bonus_rate": "0.25",
|
||||
"cao_expire_day": "0",
|
||||
"cao_downurl": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
|
||||
"cao_downurl_bak": "",
|
||||
"cao_demourl": "",
|
||||
"video_url": "",
|
||||
"video_poster_url": "",
|
||||
"cao_pwd": "",
|
||||
"post_style": "sidebar",
|
||||
"cao_info": ""
|
||||
},
|
||||
"beforeFeaturedMedia": 15795,
|
||||
"beforeCategories": [
|
||||
13,
|
||||
4
|
||||
],
|
||||
"beforeTags": [],
|
||||
"beforeSEO": {
|
||||
"title": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.0公测版:Final Cut Pro原生调色插件,会员免费"
|
||||
},
|
||||
"description": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.0公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,新增自动更新检查和可关闭的公测诊断。完整PKG已签名公证,附安装使用说明。售价50元,站内会员免费。"
|
||||
},
|
||||
"keywords": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费"
|
||||
}
|
||||
},
|
||||
"requestID": "dayu-color-15792-1.7.1-4c7e33754e744324b30fefd242d04fd3",
|
||||
"requestedTitle": "大鱼调色 1.7.1 公测版:Final Cut Pro 原生调色插件",
|
||||
"payloadSHA256": "da680bbace7202aa0c6c30e879783415bb3c9adc34599975cbf28f52e8d323a0",
|
||||
"package": "大鱼调色-1.7.1.pkg",
|
||||
"packageBytes": 40902664,
|
||||
"packageSHA256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
|
||||
"newDownload": {
|
||||
"mediaID": 15799,
|
||||
"url": "https://dayu.media/wp-content/uploads/2026/11/1793626180-5c87dd962e56c27.pkg",
|
||||
"bytes": 40902664,
|
||||
"sha256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
|
||||
"fullDownloadVerified": true
|
||||
},
|
||||
"savedContentSHA256": "df8bdab47c0ce51cebb9dcece292682cc8c9f3666262e048774ceba8f998b60a",
|
||||
"savedContentMatchesProposedAfterHTMLSelfClosingWhitespaceNormalization": true,
|
||||
"businessSettingsPreserved": true,
|
||||
"authorCategoriesTagsCoverPreserved": true,
|
||||
"fcpxSyncSettingsPreserved": true,
|
||||
"originalPublishedStatusPreserved": true,
|
||||
"checkedAt": "2026-11-02T13:30:46.042159+00:00"
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"status": "published-and-verified",
|
||||
"postID": 15792,
|
||||
"articleURL": "https://dayu.media/15792/",
|
||||
"baselineCommit": "7720d9a042271ad0147992a7d476b5c06151f616",
|
||||
"baselineContentMatchesGit": true,
|
||||
"beforeTitle": "大鱼调色 1.7.1 公测版:Final Cut Pro 原生调色插件",
|
||||
"beforeResource": {
|
||||
"cao_status": "1",
|
||||
"cao_close_novip_pay": "",
|
||||
"cao_is_boosvip": "",
|
||||
"cao_video": "",
|
||||
"cao_is_video_free": "",
|
||||
"cao_price": "50",
|
||||
"cao_vip_rate": "0",
|
||||
"cao_ref_bonus_rate": "0.25",
|
||||
"cao_expire_day": "0",
|
||||
"cao_downurl": "https://dayu.media/wp-content/uploads/2026/11/1793626180-5c87dd962e56c27.pkg",
|
||||
"cao_downurl_bak": "",
|
||||
"cao_demourl": "",
|
||||
"video_url": "",
|
||||
"video_poster_url": "",
|
||||
"cao_pwd": "",
|
||||
"cao_original_filename": "1793626180-5c87dd962e56c27.pkg",
|
||||
"post_style": "sidebar",
|
||||
"cao_info": ""
|
||||
},
|
||||
"beforeSEO": {
|
||||
"title": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.1公测版:Final Cut Pro原生调色插件,会员免费"
|
||||
},
|
||||
"description": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.1公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,改善带文字标记的Cube LUT导入兼容性,支持自动更新检查和可关闭的公测诊断。完整PKG已签名公证,售价50元,站内会员免费。"
|
||||
},
|
||||
"keywords": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费"
|
||||
}
|
||||
},
|
||||
"beforeFeaturedMedia": 15795,
|
||||
"beforeCategories": [
|
||||
13,
|
||||
4
|
||||
],
|
||||
"beforeTags": [],
|
||||
"requestID": "dayu-color-15792-1.7.2-a134dbe31d4a46718dc601d04d07a6ad",
|
||||
"payloadSHA256": "86ac54d1e002f882f4141596dcbcc25fd4a982f2dceefcac4a5c75cf5479739f",
|
||||
"package": "大鱼调色-1.7.2.pkg",
|
||||
"packageBytes": 40904714,
|
||||
"packageSHA256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"newDownload": {
|
||||
"mediaID": 15801,
|
||||
"url": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
|
||||
"bytes": 40904714,
|
||||
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"fullDownloadVerified": true
|
||||
},
|
||||
"savedContentSHA256": "95202f968878076d4542b0027397d08957f962cad7e559922bee7274306e692e",
|
||||
"businessSettingsPreserved": true,
|
||||
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
|
||||
"checkedAt": "2026-11-02T13:57:12.692095+00:00"
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"passed": true,
|
||||
"postID": 15792,
|
||||
"url": "https://dayu.media/15792/",
|
||||
"version": "1.7.1",
|
||||
"build": "46",
|
||||
"checkedAt": "2026-11-02T13:30:46.042159+00:00",
|
||||
"mainDownload": {
|
||||
"mediaID": 15799,
|
||||
"url": "https://dayu.media/wp-content/uploads/2026/11/1793626180-5c87dd962e56c27.pkg",
|
||||
"bytes": 40902664,
|
||||
"sha256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
|
||||
"fullDownloadVerified": true
|
||||
},
|
||||
"frontend": [
|
||||
{
|
||||
"request": "normal",
|
||||
"url": "https://dayu.media/15792/",
|
||||
"seoTitleExact": true,
|
||||
"seoDescriptionExact": true,
|
||||
"seoKeywordsExact": true,
|
||||
"articleVersion": "1.7.1",
|
||||
"build": "46",
|
||||
"installGuideNativeCodeBlock": true,
|
||||
"inlineImagePreserved": true,
|
||||
"guestPrice50": true,
|
||||
"guestVIPFree": true,
|
||||
"paidDownloadNotExposedInBody": true
|
||||
},
|
||||
{
|
||||
"request": "fresh",
|
||||
"url": "https://dayu.media/15792/?dayu_verify=9b75b8bd37314cf09e923f4775f1dbf8",
|
||||
"seoTitleExact": true,
|
||||
"seoDescriptionExact": true,
|
||||
"seoKeywordsExact": true,
|
||||
"articleVersion": "1.7.1",
|
||||
"build": "46",
|
||||
"installGuideNativeCodeBlock": true,
|
||||
"inlineImagePreserved": true,
|
||||
"guestPrice50": true,
|
||||
"guestVIPFree": true,
|
||||
"paidDownloadNotExposedInBody": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"passed": true,
|
||||
"postID": 15792,
|
||||
"url": "https://dayu.media/15792/",
|
||||
"version": "1.7.2",
|
||||
"build": "47",
|
||||
"checkedAt": "2026-11-02T13:57:12.692095+00:00",
|
||||
"mainDownload": {
|
||||
"mediaID": 15801,
|
||||
"url": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
|
||||
"bytes": 40904714,
|
||||
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"fullDownloadVerified": true
|
||||
},
|
||||
"frontend": [
|
||||
{
|
||||
"request": "normal",
|
||||
"seoTitleDescriptionKeywordsExact": true,
|
||||
"versionAndChangelog": true,
|
||||
"guestPrice50AndVIPFree": true,
|
||||
"inlineImageAndNativeInstallGuidePreserved": true,
|
||||
"paidDownloadNotInPublicBody": true
|
||||
},
|
||||
{
|
||||
"request": "fresh",
|
||||
"seoTitleDescriptionKeywordsExact": true,
|
||||
"versionAndChangelog": true,
|
||||
"guestPrice50AndVIPFree": true,
|
||||
"inlineImageAndNativeInstallGuidePreserved": true,
|
||||
"paidDownloadNotInPublicBody": true
|
||||
}
|
||||
],
|
||||
"businessSettingsPreserved": true,
|
||||
"authorCategoriesTagsCoverAndFCPXSettingsPreserved": true,
|
||||
"readBackContentMatchesAfterHTMLWhitespaceNormalization": true
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"passed": true,
|
||||
"postID": 15792,
|
||||
"url": "https://dayu.media/15792/",
|
||||
"status": "publish",
|
||||
"actualTitle": "大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件",
|
||||
"price": 50,
|
||||
"vipRate": 0,
|
||||
"ordinaryPurchaseAllowed": true,
|
||||
"featuredMedia": 15795,
|
||||
"media": [
|
||||
{
|
||||
"id": 15795,
|
||||
"url": "https://dayu.media/wp-content/uploads/2026/11/1793613870-285eac993228898.png",
|
||||
"bytes": 1850952,
|
||||
"sha256": "7f80bab9def7caa679550d6425f07b8a8fce7b1ec088451151ca625a5f4e6a57",
|
||||
"alt": "大鱼调色1.7.0公测版介绍封面,展示蓝色插件界面和CST、LUT、胶片模拟、局部蒙版功能",
|
||||
"width": 1672,
|
||||
"height": 941
|
||||
},
|
||||
{
|
||||
"id": 15796,
|
||||
"url": "https://dayu.media/wp-content/uploads/2026/11/1793613872-21b2d1772c5ccac.png",
|
||||
"bytes": 1707253,
|
||||
"sha256": "e2c17dc759fb43d1ff0e6539e010cfa14ffb1d4e088e6a1ee88ab67d0e01b621",
|
||||
"alt": "大鱼调色蓝色调色面板与CST色彩管理、LUT、胶片模拟和局部蒙版功能介绍",
|
||||
"width": 1122,
|
||||
"height": 1402
|
||||
}
|
||||
],
|
||||
"seo": {
|
||||
"title": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.2公测版:Final Cut Pro原生调色插件,会员免费",
|
||||
"frontendExact": true
|
||||
},
|
||||
"description": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.2公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,修正LUT缩略图浏览库的窗口尺寸与布局处理,保留Cube文字行兼容。完整PKG已签名公证,售价50元,站内会员免费。",
|
||||
"frontendExact": true
|
||||
},
|
||||
"keywords": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费",
|
||||
"frontendExact": true
|
||||
}
|
||||
},
|
||||
"frontendGuestPriceSnippet": "路人用户购买价格 : 50元 鱼粉会员购买价格 : 0元 登录后购买鱼粉年会员开通全站会员全站资源免费下载(极个别开发工具除外)专属临时高速网盘系统(接收方免登录)专属在线审阅系统(内测中……) 登录后开通会员权益以站点设置为准 抖音、B站ID:大鱼先森Media,闲鱼ID:成都大鱼先森文化传媒 蜀ICP备2024",
|
||||
"frontendInlineImage": true,
|
||||
"installGuideNativeCodeBlock": true,
|
||||
"paidURLOnlyInResource": true,
|
||||
"publishedBy": "user",
|
||||
"readBackVia": "dayu-publish-article read 15792",
|
||||
"checkedAt": "2026-11-02T13:57:12.692095+00:00",
|
||||
"version": "1.7.2",
|
||||
"build": "47",
|
||||
"mainDownload": {
|
||||
"mediaID": 15801,
|
||||
"url": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
|
||||
"bytes": 40904714,
|
||||
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"fullDownloadVerified": true
|
||||
},
|
||||
"frontend": [
|
||||
{
|
||||
"request": "normal",
|
||||
"seoTitleDescriptionKeywordsExact": true,
|
||||
"versionAndChangelog": true,
|
||||
"guestPrice50AndVIPFree": true,
|
||||
"inlineImageAndNativeInstallGuidePreserved": true,
|
||||
"paidDownloadNotInPublicBody": true
|
||||
},
|
||||
{
|
||||
"request": "fresh",
|
||||
"seoTitleDescriptionKeywordsExact": true,
|
||||
"versionAndChangelog": true,
|
||||
"guestPrice50AndVIPFree": true,
|
||||
"inlineImageAndNativeInstallGuidePreserved": true,
|
||||
"paidDownloadNotInPublicBody": true
|
||||
}
|
||||
],
|
||||
"updatedBy": "dayu-publish-article write --post-id 15792"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"passed": true,
|
||||
"credentialStore": "macOS login Keychain",
|
||||
"service": "dayu-article-publisher",
|
||||
"account": "dayu",
|
||||
"applicationName": "Codex Mac mini M4 文章发布 2026-11-02",
|
||||
"command": "/Users/mac/.local/bin/dayu-publish-article",
|
||||
"skill": "/Users/mac/.codex/skills/dayu-publish-article/SKILL.md",
|
||||
"sourceRemote": "https://dayu.media/git/dayu/dayu-publish-article-skill.git",
|
||||
"sourceCommit": "0492db74983b49c7bff21e470d21126fb58d82a3",
|
||||
"sourceTag": "cli-keychain-20261102",
|
||||
"canPublish": true,
|
||||
"canUpload": true,
|
||||
"actualAuthenticatedArticleRead": 15792,
|
||||
"articleURL": "https://dayu.media/15792/",
|
||||
"liveWritePerformed": false,
|
||||
"credentialValueRecorded": false,
|
||||
"checkedAt": "2026-11-02T10:47:53.306090+00:00"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"tool": "built-in image_gen",
|
||||
"prompt": "Use case: ads-marketing. Asset type: 16:9 landscape website article cover and introduction poster, polished high-resolution raster graphic for a Chinese Final Cut Pro color grading plugin. Create a NEW composition; the input image is a brand-logo reference, NOT a screenshot or an edit target. Preserve the recognizable rainbow fish logo, integrated elegantly as a small badge. Deep midnight navy background with restrained cyan, violet, warm orange light, sophisticated photographic editorial design. Clear left-side Chinese title typography with generous space, on the right a large cinematic photograph of a sunlit mountain lake with subtle warm highlights and rich cool shadows, framed in a refined rounded panel. Small abstract color wheel and curve accents below the photo suggest grading tools, without fabricated application screenshots or illegible interface details. Strong hierarchy and excellent legibility as a small article thumbnail. All essential content inside 8% safe margins. Exact text, correctly rendered, no additional text: main title '大鱼调色'; subtitle 'Final Cut Pro 原生调色插件'; features in a clean 2-by-2 arrangement 'CST 色彩管理' 'LUT 风格' '胶片模拟' '局部蒙版'; compact badge '1.7.0 公测版'; price line '¥50 · 会员免费'; footer 'Apple Silicon · macOS 14.6+' and 'dayu.media'. The main title should dominate; price is secondary but clear. Premium software launch cover, balanced visual weight, no stock mockup devices, no watermarks, no claims of demonstrated before-and-after results.",
|
||||
"brandReference": "design/dayu-color-app-icon-v1.png",
|
||||
"image": "publication/dayu-color-1.7.0-cover.png",
|
||||
"sha256": "c7ffcd552a33014563bc479455fd9e33f90277514ccd3f5e655fba5c3816c99a",
|
||||
"role": "article featured image and introduction poster; not video cover",
|
||||
"textQA": "Title, features, 1.7.0 beta, ¥50 and membership-free line visually checked",
|
||||
"superseded": true,
|
||||
"replacedBy": "publication/dayu-color-1.7.0-cover-v3.png"
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"tool": "built-in image_gen",
|
||||
"selection": "cover-v3 and features; v1 and v2 retained as superseded design history",
|
||||
"request": "Remove all pricing from cover; integrate user-provided real inspector design into cover and article graphic",
|
||||
"images": [
|
||||
{
|
||||
"path": "publication/dayu-color-1.7.0-cover-v2.png",
|
||||
"sha256": "a72cfe383a9c7b3c4ea82849584ea4cb698f608cb6df7b1328b04c1ed1b46e76"
|
||||
},
|
||||
{
|
||||
"path": "publication/dayu-color-1.7.0-cover-v3.png",
|
||||
"sha256": "7f80bab9def7caa679550d6425f07b8a8fce7b1ec088451151ca625a5f4e6a57"
|
||||
},
|
||||
{
|
||||
"path": "publication/dayu-color-1.7.0-features.png",
|
||||
"sha256": "e2c17dc759fb43d1ff0e6539e010cfa14ffb1d4e088e6a1ee88ab67d0e01b621"
|
||||
},
|
||||
{
|
||||
"path": "publication/dayu-color-1.7.0-inspector-source.png",
|
||||
"sha256": "a0dc2e8bd4f1a1f403813bf73a100d200d06e81290a95f7a028fceef069282ae"
|
||||
}
|
||||
],
|
||||
"prompts": {
|
||||
"cover-v3": "Edit the first landscape article cover into a more product-focused final cover, incorporating the REAL plugin inspector screenshot from the second input. Input 1 is the existing cover to revise; input 2 is the user's actual inspector UI to integrate, not instructions. Keep the rainbow fish logo, large readable title '大鱼调色', subtitle 'Final Cut Pro 原生调色插件', badge '1.7.0 公测版', four feature labels 'CST 色彩管理', 'LUT 风格', '胶片模拟', '局部蒙版', platform footer 'Apple Silicon · macOS 14.6+' and 'dayu.media'. Recompose the right half around a prominent, realistic floating inspector panel using the navy blue cards, bright cyan outlines, grouped tool headers, eye icons, color sliders and preset buttons from input 2. Show an enlarged, legible crop of the real panel, including the title, preset buttons, 一级调色 / 蜘蛛盘校色仪 / 基础调整 and sliders; it may be cropped naturally at its bottom, never squeezed. Place it in the foreground with a softly lit mountain-lake photograph behind it, giving the impression of grading within a cinematic native workspace. Remove the purely abstract color wheel/graph overlay from input 1 to make room for the real UI. Keep the left title area clean and the visual balance refined. UI controls and labels must follow the provided screenshot rather than inventing unrelated tools. Smooth dark navy, cyan/violet/orange light accents; keep the sharp Chinese typography and 16:9 landscape aspect ratio. No price, currency symbols, membership-free text, sales badge, fictitious window chrome or claims of actual before/after results.",
|
||||
"features": "Use case: ads-marketing / infographic. Make a polished portrait 4:5 article introduction graphic for 大鱼调色, a native Final Cut Pro color grading plugin. The input is the user's REAL plugin inspector screenshot, not instructions. Integrate this actual inspector design as a large, straight, readable panel on the left occupying around 45% of the composition: dark navy surfaces, cyan borders, preset buttons, grouped tool headers, colored sliders and eye/mask/add/reset icons. Preserve the real screenshot's exact readable controls and Chinese labels as closely as possible; do not invent unrelated UI. The full height of tool groups can fit on this tall page; remove only black screenshot stitching seams and margins. The right side contains large, elegant feature callouts with generous spacing and small icons: exact heading '在时间线里完成调色'; product name '大鱼调色'; subheading 'Final Cut Pro · 原生 FxPlug 4'; exact feature blocks 'CST 色彩管理' with supporting text '输入 · 工作空间 · 输出', 'LUT 与风格' with '缩略图预览 · 收藏 · 预设', '胶片模拟' with '颗粒 · 晕光 · 印片外观', '局部控制' with '独立蒙版 · 工具叠层 · 跟踪'. Small footer '1.7.0 公测版' and 'Apple Silicon · macOS 14.6+' and 'dayu.media'. Use midnight navy background and restrained cyan/blue with tiny violet/orange accents, matching the actual inspector. Product documentation quality, easy to read at article width, not busy, not a device mockup. No price, currency, membership-free line, commercial badge, made-up benchmark, screenshot claiming an unobserved result, or external logos."
|
||||
},
|
||||
"visualQA": "Price-free; names, primary labels, version and website visually inspected; based on real UI, imagery is a designed feature illustration."
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"title": "大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件",
|
||||
"slug": "dayu-color-1-7-0-beta",
|
||||
"excerpt": "",
|
||||
"categories": [
|
||||
13,
|
||||
4
|
||||
],
|
||||
"tags": [],
|
||||
"seo": {
|
||||
"title": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.2公测版:Final Cut Pro原生调色插件,会员免费"
|
||||
},
|
||||
"description": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色1.7.2公测版,适用于Apple Silicon与macOS14.6及以上。提供CST色彩管理、LUT预览、胶片模拟、局部蒙版与跟踪,修正LUT缩略图浏览库的窗口尺寸与布局处理,保留Cube文字行兼容。完整PKG已签名公证,售价50元,站内会员免费。"
|
||||
},
|
||||
"keywords": {
|
||||
"enabled": true,
|
||||
"value": "大鱼调色,Final Cut Pro,调色插件,FxPlug4,CST色彩管理,LUT,胶片模拟,局部蒙版,会员免费"
|
||||
}
|
||||
},
|
||||
"resource": {
|
||||
"cao_status": "1",
|
||||
"cao_close_novip_pay": "",
|
||||
"cao_is_boosvip": "",
|
||||
"cao_video": "",
|
||||
"cao_is_video_free": "",
|
||||
"cao_price": "50",
|
||||
"cao_vip_rate": "0",
|
||||
"cao_ref_bonus_rate": "0.25",
|
||||
"cao_expire_day": "0",
|
||||
"cao_downurl": "https://dayu.media/wp-content/uploads/2026/11/1793627751-1071d4780582a45.pkg",
|
||||
"cao_downurl_bak": "",
|
||||
"cao_demourl": "",
|
||||
"video_url": "",
|
||||
"video_poster_url": "",
|
||||
"cao_pwd": "",
|
||||
"cao_original_filename": "1793627751-1071d4780582a45.pkg",
|
||||
"post_style": "sidebar",
|
||||
"cao_info": ""
|
||||
},
|
||||
"packageSHA256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"skill": {
|
||||
"installed": "/Users/mac/.codex/skills/dayu-publish-article",
|
||||
"remote": "https://dayu.media/git/dayu/dayu-publish-article-skill.git",
|
||||
"commit": "1e8da1005f32bf6b6452144b071dd2a800123185"
|
||||
},
|
||||
"postID": 15792,
|
||||
"editorURL": "https://dayu.media/wp-admin/post.php?post=15792&action=edit",
|
||||
"featuredImage": "publication/dayu-color-1.7.0-cover-v3.png",
|
||||
"inlineImage": "publication/dayu-color-1.7.0-features.png",
|
||||
"featuredImageURL": "https://dayu.media/wp-content/uploads/2026/11/1793613870-285eac993228898.png",
|
||||
"inlineImageURL": "https://dayu.media/wp-content/uploads/2026/11/1793613872-21b2d1772c5ccac.png",
|
||||
"status": "publish",
|
||||
"articleURL": "https://dayu.media/15792/",
|
||||
"actualSlug": "%e5%a4%a7%e9%b1%bc%e8%b0%83%e8%89%b2-1-7-0-%e5%85%ac%e6%b5%8b%e7%89%88%ef%bc%9afinal-cut-pro-%e5%8e%9f%e7%94%9f%e8%b0%83%e8%89%b2%e6%8f%92%e4%bb%b6%ef%bc%8c%e4%bc%9a%e5%91%98%e5%85%8d%e8%b4%b9",
|
||||
"featuredMedia": 15795,
|
||||
"actualTitle": "大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件",
|
||||
"userPublished": true,
|
||||
"actualTags": [],
|
||||
"actualExcerpt": "",
|
||||
"packageBytes": 40904714,
|
||||
"packageMediaID": 15801,
|
||||
"updatedBy": "dayu-publish-article command",
|
||||
"version": "1.7.2",
|
||||
"build": "47"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
<!-- wp:paragraph -->
|
||||
<p>大鱼调色 1.7.2 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.2,构建47。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
|
||||
<figure class="wp-block-image size-full"><img src="https://dayu.media/wp-content/uploads/2026/11/1793613872-21b2d1772c5ccac.png" alt="大鱼调色蓝色插件面板与CST、LUT、胶片模拟、局部蒙版功能介绍" /><figcaption class="wp-element-caption">大鱼调色界面与功能介绍图</figcaption></figure>
|
||||
<!-- /wp:image -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">在时间线里完成调色</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p><strong>色彩管理与基础调整</strong>:支持 CST 输入、工作空间和输出转换,并提供曝光、白平衡、曲线、HSL、色轮及蜘蛛盘等调节工具。首次使用时,请在一级调色中选择与素材相符的输入曲线和色域。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p><strong>LUT 与风格管理</strong>:通过缩略图浏览、收藏和预览管理常用 LUT,支持自选 LUT 文件与文件夹。完整预设用于保存组合调节;适合静态颜色变换的处理可导出 Cube LUT,颗粒、晕光、蒙版等时间或空间效果不属于静态 LUT 的保存范围。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p><strong>胶片模拟与印片外观</strong>:包含减色、颗粒、晕光、辉光、暗角及通道混合器,提供 Kodak 2383、Fuji 3513 等八种印片外观,可独立调整强度。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p><strong>局部蒙版与工具叠层</strong>:可针对单独工具添加蒙版、建立相邻叠层,并使用关键帧与跟踪处理局部区域,方便细调画面的不同部分。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">1.7.2 更新:LUT 浏览窗口</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>LUT 缩略图浏览库改为跟随 Final Cut Pro 提供的实际窗口内容区域,避免旧窗口位置和尺寸记录干扰布局;窗口变化时同步调整深色内容区、列表及底部控件。缩略图大小、网格/列表、侧栏、分类和最近使用设置继续保留。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">1.7.1 更新:LUT 导入兼容</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>改善 Cube LUT 导入兼容性,可读取部分在颜色数据行夹带文字标记的文件。保留可读取的数值,无法读取的后续通道按 0 处理,各行位置保持不变;这与本机 Final Cut Pro“自定 LUT”处理同类文件的方式一致。原有文件编码支持、缩略图浏览与预览功能继续保留。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">1.7.0 公测新增</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>主 App 启动时自动检查新版,发现更新后由用户确认下载。完整更新包经过完整性、签名和产品版本校验,保存并退出 Final Cut Pro / Motion 后,通过系统安装器完成升级。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>公测诊断用于记录系统与版本、插件初始化、界面创建、管线准备和首次渲染的耗时,以及错误和本插件崩溃摘要。它在后台限量排队、离线重试,不上传素材、LUT、预设、账号、硬件 UUID 或原始崩溃文件;诊断保留30天,可在主 App 关闭。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>本版处于公测阶段,部分用户反馈的偶发加载无响应仍在收集信息,尚未确认根因。遇到问题时,请附主 App 显示的报告标识、发生时间、Mac 芯片、macOS 和 FCP 版本,便于关联加载过程。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">兼容与安装内容</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:list -->
|
||||
<ul class="wp-block-list"><li>Apple Silicon Mac,macOS 14.6 或更新版本;本发行构建不支持 Intel Mac。</li><li>本机已在 Final Cut Pro 12.4 验证加载、界面和调节,其他宿主版本的兼容情况继续通过公测收集。</li><li>主 App 固定安装到 /Library/Plug-Ins/FxPlug/大鱼调色.app,FCP 效果模板安装到当前登录用户的“影片/Motion Templates/Effects/大鱼调色”。</li><li>安装包不包含用户自选素材、LUT 或个人预设。</li></ul>
|
||||
<!-- /wp:list -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">安装</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>安装前,请先退出 Final Cut Pro(FCPX)和 Motion,并在整个安装过程中保持它们关闭。PKG 通常会检查这两个程序是否正在运行;如果安装器提示关闭,请退出对应程序后继续安装。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>运行本资源提供的 PKG 安装包,安装包包含完整的大鱼调色主 App、内嵌 FxPlug 插件和效果模板,并自动完成安装与插件注册,无需另行安装运行依赖。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>本公测版不需要登录或输入激活码。安装完成后打开主 App「大鱼调色」,它会检查并提交插件注册;成功后显示3秒倒计时再退出。点击“查看功能介绍”可以保留窗口,查看更新和诊断设置。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">使用</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>安装和注册完成后,打开 Final Cut Pro。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>在“效果”中找到“大鱼调色”文件夹,选择“大鱼调色”即可使用。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:heading -->
|
||||
<h2 class="wp-block-heading">常见问题</h2>
|
||||
<!-- /wp:heading -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>如果插件失效或显示红色警告,可能是系统插件缓存异常。先退出 Final Cut Pro,再重新打开一次插件主 App,然后重新启动 Final Cut Pro 查看插件是否恢复。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>本资源的主 App「大鱼调色」安装在下面的实际路径。将以下命令复制到“终端”运行,即可打开主 App:</p>
|
||||
<!-- /wp:paragraph -->
|
||||
|
||||
<!-- wp:code -->
|
||||
<pre class="wp-block-code"><code>open '/Library/Plug-Ins/FxPlug/大鱼调色.app'</code></pre>
|
||||
<!-- /wp:code -->
|
||||
|
||||
<!-- wp:paragraph -->
|
||||
<p>若仍显示红色警告或长时间停在加载中,请核对系统及 FCP 版本,并通过主 App 的“发送诊断摘要”反馈报告标识和发生时间。公测阶段的偶发加载无响应仍在收集信息,重新注册并不能保证解决所有问题。</p>
|
||||
<!-- /wp:paragraph -->
|
||||
@@ -0,0 +1,65 @@
|
||||
# 大鱼调色 1.7.2 公测版:Final Cut Pro 原生调色插件
|
||||
|
||||
大鱼调色 1.7.2 公测版是一款适用于 Final Cut Pro 与 Motion 的原生 FxPlug 4 调色插件。从素材色彩还原、基础调整,到 LUT 风格、胶片质感和局部蒙版,可直接在剪辑时间线里完成。
|
||||
|
||||
本篇下载售价为50元,站内有效会员免费。提供已签名、公证的完整 PKG 安装包,版本1.7.2,构建47。
|
||||
|
||||
## 在时间线里完成调色
|
||||
|
||||
**色彩管理与基础调整**:支持 CST 输入、工作空间和输出转换,并提供曝光、白平衡、曲线、HSL、色轮及蜘蛛盘等调节工具。首次使用时,请在一级调色中选择与素材相符的输入曲线和色域。
|
||||
|
||||
**LUT 与风格管理**:通过缩略图浏览、收藏和预览管理常用 LUT,支持自选 LUT 文件与文件夹。完整预设用于保存组合调节;适合静态颜色变换的处理可导出 Cube LUT,颗粒、晕光、蒙版等时间或空间效果不属于静态 LUT 的保存范围。
|
||||
|
||||
**胶片模拟与印片外观**:包含减色、颗粒、晕光、辉光、暗角及通道混合器,提供 Kodak 2383、Fuji 3513 等八种印片外观,可独立调整强度。
|
||||
|
||||
**局部蒙版与工具叠层**:可针对单独工具添加蒙版、建立相邻叠层,并使用关键帧与跟踪处理局部区域,方便细调画面的不同部分。
|
||||
|
||||
## 1.7.2 更新:LUT 浏览窗口
|
||||
|
||||
LUT 缩略图浏览库改为跟随 Final Cut Pro 提供的实际窗口内容区域,避免旧窗口位置和尺寸记录干扰布局;窗口变化时同步调整深色内容区、列表及底部控件。缩略图大小、网格/列表、侧栏、分类和最近使用设置继续保留。
|
||||
|
||||
## 1.7.1 更新:LUT 导入兼容
|
||||
|
||||
改善 Cube LUT 导入兼容性,可读取部分在颜色数据行夹带文字标记的文件。保留可读取的数值,无法读取的后续通道按 0 处理,各行位置保持不变;这与本机 Final Cut Pro“自定 LUT”处理同类文件的方式一致。原有文件编码支持、缩略图浏览与预览功能继续保留。
|
||||
|
||||
## 1.7.0 公测新增
|
||||
|
||||
主 App 启动时自动检查新版,发现更新后由用户确认下载。完整更新包经过完整性、签名和产品版本校验,保存并退出 Final Cut Pro / Motion 后,通过系统安装器完成升级。
|
||||
|
||||
公测诊断用于记录系统与版本、插件初始化、界面创建、管线准备和首次渲染的耗时,以及错误和本插件崩溃摘要。它在后台限量排队、离线重试,不上传素材、LUT、预设、账号、硬件 UUID 或原始崩溃文件;诊断保留30天,可在主 App 关闭。
|
||||
|
||||
本版处于公测阶段,部分用户反馈的偶发加载无响应仍在收集信息,尚未确认根因。遇到问题时,请附主 App 显示的报告标识、发生时间、Mac 芯片、macOS 和 FCP 版本,便于关联加载过程。
|
||||
|
||||
## 兼容与安装内容
|
||||
|
||||
- Apple Silicon Mac,macOS 14.6 或更新版本;本发行构建不支持 Intel Mac。
|
||||
- 本机已在 Final Cut Pro 12.4 验证加载、界面和调节,其他宿主版本的兼容情况继续通过公测收集。
|
||||
- 主 App 固定安装到 /Library/Plug-Ins/FxPlug/大鱼调色.app,FCP 效果模板安装到当前登录用户的“影片/Motion Templates/Effects/大鱼调色”。
|
||||
- 安装包不包含用户自选素材、LUT 或个人预设。
|
||||
|
||||
## 安装
|
||||
|
||||
安装前,请先退出 Final Cut Pro(FCPX)和 Motion,并在整个安装过程中保持它们关闭。PKG 通常会检查这两个程序是否正在运行;如果安装器提示关闭,请退出对应程序后继续安装。
|
||||
|
||||
运行本资源提供的 PKG 安装包,安装包包含完整的大鱼调色主 App、内嵌 FxPlug 插件和效果模板,并自动完成安装与插件注册,无需另行安装运行依赖。
|
||||
|
||||
本公测版不需要登录或输入激活码。安装完成后打开主 App「大鱼调色」,它会检查并提交插件注册;成功后显示3秒倒计时再退出。点击“查看功能介绍”可以保留窗口,查看更新和诊断设置。
|
||||
|
||||
## 使用
|
||||
|
||||
安装和注册完成后,打开 Final Cut Pro。
|
||||
|
||||
在“效果”中找到“大鱼调色”文件夹,选择“大鱼调色”即可使用。
|
||||
|
||||
## 常见问题
|
||||
|
||||
如果插件失效或显示红色警告,可能是系统插件缓存异常。先退出 Final Cut Pro,再重新打开一次插件主 App,然后重新启动 Final Cut Pro 查看插件是否恢复。
|
||||
|
||||
本资源的主 App「大鱼调色」安装在下面的实际路径。将以下命令复制到“终端”运行,即可打开主 App:
|
||||
|
||||
```bash
|
||||
open '/Library/Plug-Ins/FxPlug/大鱼调色.app'
|
||||
```
|
||||
|
||||
若仍显示红色警告或长时间停在加载中,请核对系统及 FCP 版本,并通过主 App 的“发送诊断摘要”反馈报告标识和发生时间。公测阶段的偶发加载无响应仍在收集信息,重新注册并不能保证解决所有问题。
|
||||
|
||||
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 1.9 MiB |
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 1.8 MiB |
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 2.0 MiB |
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 1.6 MiB |
二进制文件未显示。
|
之后 宽度: | 高度: | 大小: 511 KiB |
@@ -0,0 +1,5 @@
|
||||
[
|
||||
{
|
||||
"file": "Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,39 @@
|
||||
# 1.7.2:内置屏幕“更多空间”灰色区域的补充调查
|
||||
|
||||
后续:本机已复现并取得实际外层容器原点偏移,修正与验证见[1.7.3记录](BrowserMoreSpace1.7.3.md)。本文保留修复前的调查边界。
|
||||
|
||||
2026-11-02,用户提供新的目标机截图:已安装1.7.2,MacBook Pro / M1 Pro(16核GPU),内置Liquid Retina XDR显示屏,系统报告分辨率3456×2234。沿用此前报告的FCP12.3、macOS27.0.1。内置屏幕设为“更多空间”时出现大面积灰色;设为“默认”正常。用户进一步确认在“更多空间”档位完全退出并重启FCP后仍有灰色区域。
|
||||
|
||||
## 观察与已排除的解释
|
||||
|
||||
- 截图中深色浏览界面整体向右偏移,顶部和右侧被裁切;缩略图和底部工具栏仍可见。它不只是内部网格列数或缩略图大小不合适。
|
||||
- 显示模式是已确认的触发条件。重启仍复现,不能只归因于切换显示模式瞬间未刷新的布局;也不能据此排除全部持久设置或桥接状态问题。
|
||||
- 原始LUT在默认模式可用,异常截图也有缩略图。这份证据不支持把问题归到LUT文件内容或编码。
|
||||
- 1.7.2远程分支已提前返回,不再恢复插件保存的窗口frame、修改远程窗口min/max或标题。因此此前发现的不安全窗口恢复逻辑不足以解释1.7.2的新截图。
|
||||
|
||||
## 源码与本机SDK的有限证据
|
||||
|
||||
`DYLUTBrowser.mm`的远程接入和跟随逻辑使用`parent.bounds`设置`_root.frame`,内部布局使用`_root.bounds.size`。此路径没有直接使用3456×2234、手工乘除`backingScaleFactor`或按物理屏幕像素算窗口尺寸。
|
||||
|
||||
本机SDK的`FxTypes_MacOS.h`将`FxXPView`定义为`NSView`。`FxRemoteWindowAPI.h`说明parent是远程内容容器,并说明v2最大尺寸由宿主窗口的80%限制;不是检视器宽度。NSView的frame/bounds在各自坐标系中表达,截图物理分辨率不能直接当作容器的逻辑尺寸。
|
||||
|
||||
本轮还静态分析了本机已安装的Apple FxPlug框架(不是目标机FCP12.3的实测运行):
|
||||
|
||||
- 原件:`/Library/Developer/Frameworks/FxPlug.framework/Versions/A/FxPlug`,SHA-256 `07eae772cc14d8bb0b18e515a1c16d5bc03245fc2c908fe4899318703ecbaaa7`。
|
||||
- 独立arm64分析切片SHA-256 `f1d5110d017d599edb5f11cb6c80d62ecd05c427d9d1e4e7749f110ef1d8ab6a`。
|
||||
- REA/Ghidra静态证据`ev_4c60191b63451f68d443e25d2a3965934cc3e708a3baa4aad7ee432e695ad3df`:`FxAPIManagerShim::remoteWindowWithMinimumSize:maximumSize:reply:`(arm64偏移0x20df0)经host mediator请求窗口、取得windowContentView。
|
||||
- 证据`ev_be540b8fa3cc9dae8e1df580895369d804e441a327fba6026566a3873ffc8bd4`:其第二个回调(0x21110)先调用插件reply,然后读取parent第一个子视图的frame.size,调用parent的setFrameSize与setBoundsSize。支持“接入后SDK还会同步几何”的判断,不能证明目标机在此产生了错误的缩放或原点。
|
||||
- 证据`ev_4e842ef1089426daf462c3568fbb0c73b865336704c75601601eb560b7f19db4`:`FxRemotePlugin::windowContentView`(0x7974)返回windowViewController.view。
|
||||
- 伪代码不是Apple源码;未执行这些私有方法,未观测目标机容器的实际frame、bounds、visibleRect或backing映射。REA会话已关闭,完整12条静态证据保存在本机构建缓存的`remote-scaling-analysis/FxPlug-window-evidence.snapshot.json`,不作为已远程保存的必要工程资源。
|
||||
|
||||
Apple的[高分辨率坐标转换说明](https://developer.apple.com/library/archive/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/APIs/APIs.html)区分view、window、screen、backing各自坐标系,并建议使用对应转换API。[NSWindow.backingScaleFactor](https://developer.apple.com/documentation/appkit/nswindow/backingscalefactor)的说明不支持把该值直接用于布局。不能因为选择“更多空间”就断言backingScaleFactor必然从2变成1.5;屏幕物理像素、桌面逻辑尺寸、backing尺寸和最终显示合成并非同一个量。
|
||||
|
||||
## 当前结论和未解项
|
||||
|
||||
已确认触发条件,最有力的工作假设是显示缩放下远程容器与插件内容的坐标、裁切或合成映射不同步;尚未锁定是哪一侧、哪个值首次出错。不能把这一假设写成已确认的“插件混用point/pixel”或“FCP自身bug”。
|
||||
|
||||
1.7.2的21项隐藏AppKit模型检查覆盖了内容尺寸变化、非零bounds原点及晚到尺寸,未模拟真实ViewBridge跨进程合成和目标屏幕的缩放模式。本机FCP12.4的成功验证也不能替代目标机12.3的该模式复现。
|
||||
|
||||
要确定修复,应在目标环境对照两档显示设置,采集接入时、SDK回调返回后和稳定布局后的parent/root frame、bounds、visibleRect、到window的转换矩形及backing转换;同时确认宿主可见窗口/remote view大小。先判断偏移发生在插件子视图内部还是跨进程显示桥接,再选择布局修正或替代呈现路径。不可根据截图补固定偏移、盲目乘除2、扩大窗口、改灰色背景或清空用户设置后宣称修复。
|
||||
|
||||
本轮只作调查记录,未修改应用源码、版本、已安装APP、安装包或文章;1.7.2仍需解决该模式下的问题。
|
||||
@@ -0,0 +1,33 @@
|
||||
# 1.7.3(49):更多空间下的远程内容原点
|
||||
|
||||
2026-11-02,本机切换“更多空间”后复现1.7.2的大片灰色、深色内容向右偏移和顶部裁切。用户随后发现点击窗口绿色缩放按钮可恢复。此前[1.7.2调查](BrowserMoreSpace1.7.2.md)只锁定触发条件;本轮取得实际运行几何,不再以缩放假设代替证据。
|
||||
|
||||
## 实际原因
|
||||
|
||||
正式签名、公证并安装的诊断构建1.7.3(48)记录到:
|
||||
|
||||
- SDK提供的parent就是服务窗口的contentView;它的frame为`{{789,521},{1800,1200}}`,bounds为`{{0,0},{1800,1200}}`。
|
||||
- 浏览器_root.frame为`{{0,0},{1800,1200}}`,在parent内部完全正确;但转换到窗口后变成`{{789,521},{1800,1200}}`。所以仅检查root.frame等于parent.bounds会漏掉外层容器的偏移。
|
||||
- 服务窗口frame为`{{0,100},{1800,1200}}`,contentLayoutRect为`{{0,0},{1800,1200}}`。接入前、SDK回调返回后、1秒稳定状态都保留错误的contentView原点。
|
||||
- 用户点击绿色按钮时,parent原点回到`(0,0)`,随后系统缩放过程出现1–5点边缘调整,界面恢复。此操作触发了容器重排。
|
||||
- 本机主屏逻辑3840×2160/backingScaleFactor1,另有1920×1080/backingScaleFactor2副屏。窗口位于主屏。不能将此比例或偏移数值硬编码为目标MacBook的显示参数。
|
||||
|
||||
这是**远程内容容器的frame原点残留**,不是本机这一复现中插件把3456等物理像素直接当作逻辑尺寸。已确认它发生在SDK/ViewBridge提供的外层contentView;未逆推出Apple内部具体哪一处首次写错原点,也未宣称确认所有缩放模式存在同一平台bug。
|
||||
|
||||
## 修正
|
||||
|
||||
仅在远程模式且SDK提供的parent恰好是当前window.contentView时,用公开AppKit API取得实际内容矩形,依次执行screen→window→parent.superview的坐标转换,修正parent的frame.origin。随后仍按parent.bounds铺满浏览器。接入、parent变化及窗口几何事件使用同一路径。
|
||||
|
||||
不修改宿主窗口frame、尺寸限制、标题、保存位置或桥接容器的autoresizing策略;不更改parent尺寸,不调用绿色按钮,不加固定偏移或显示器比例。SDK在reply返回后读取第一个子视图尺寸的机制继续保留。本地弹窗行为不变。
|
||||
|
||||
加入默认关闭的本地诊断开关`DYBrowserGeometryDiagnostics`,仅记录视图/窗口/屏幕几何和图层变换,不含LUT名称、文件路径或图像,不发送网络。每进程限1MiB,存于本机Library/Logs/大鱼调色;本轮采样结束后删除临时开启的偏好。采样不属于公测云端诊断。
|
||||
|
||||
## 验证与边界
|
||||
|
||||
- 隐藏AppKit模型按实际`(789,521)`偏移重现:旧代码27项中3项失败;修正后27项通过,覆盖首次及后续原点偏移、非零bounds和宿主frame/尺寸/桥接策略不变。已有浏览库23项回归通过。
|
||||
- 正式安装版411项原生检查通过,包括新增3项窗口坐标对齐检查。实际编译源码`2688b22f99b5118153b94a43f6c184a204d4ce7e`,APP公证`06e09906-676f-414b-adcc-acf2bec6864a` Accepted。
|
||||
- 本机FCP12.4/macOS27.0.1在同一“更多空间”设置下,修正版首次接入仍收到错误原点,但自动对齐为0;服务窗口frame和尺寸不变,稳定采样保持正确。搜索、侧栏、网格、列表、底部完成按钮完整。绿色缩放/还原、热重开和正常退出后冷重开通过;冷重开再次收到错误原点并自动修正。
|
||||
- 已有58个LUT、tlfs选择及缩略图大小125.4610877403846保留,原始tlfs SHA-256仍为`5ee4eefe92410549abf3e27baf7aea5e74b77101b496af5eddb5ba601bf033fe`。模板与Metal库相对1.7.2逐字节一致。
|
||||
- 目标使用者的MacBook/FCP12.3仍需更新后复测;本机不是该机的直接测试。代理没有改动系统显示设置。本轮未再次运行PKG安装脚本。
|
||||
|
||||
记录:`verification/MoreSpaceBridgeRuntime1.7.3.json`、`HostBrowserMoreSpace1.7.3.json`、`MoreSpaceRegression1.7.3.json`、`MoreSpaceRecovery1.7.3.json`;正式包与Release以对应最终记录为准。诊断48版未制作或发布安装包,不作为修复完成版本。
|
||||
@@ -0,0 +1,23 @@
|
||||
# 1.7.2:LUT浏览库远程窗口尺寸
|
||||
|
||||
基线 `e62d5532f2360d157d5a4d96488e58f4113a55af`,正式安装1.7.1(46)。用户转述另一使用者的“窗口很大、出现灰色空白、深色内容被裁切”,并提供第三方源码分析;版本为FCP12.3、系统输入为27.01(按27.0.1记录),分辨率及缩放未知。本机为FCP12.4,不能把本机验证写成对方12.3实测。
|
||||
|
||||
## 已确认的代码问题与分析边界
|
||||
|
||||
`DYInspector`优先请求FxRemoteWindowAPI_v3/v2,并同步把浏览器根视图接入SDK提供的parent。随后`configurePresentationWindow`原先还会修改`_root.window`的最小/最大内容尺寸、标题和frame,恢复插件自行保存的位置。远程桥接窗口的几何不应由这条本地恢复逻辑覆盖。
|
||||
|
||||
本机FxPlug4.3.5的`FxRemoteWindowAPI.h`说明v2的最大尺寸会限制到宿主**窗口**大小的80%。Apple在线文档同样写明宿主主窗口的80%,见 https://developer.apple.com/documentation/professional_video_applications/fxremotewindowapi_v2/remotewindow(withminimumsize:maximumsize:reply:) 。它没有说按检视器宽度限制;固定28点标题栏换算不准确,也不能单凭不同常量认定每台机器必然出现灰边。多屏时机、FCP12.3具体桥接行为及对方真实灰边仍需目标机复核。
|
||||
|
||||
隐藏AppKit桥接模型从相同内容大小开始,关闭parent自动调整子视图,种入离屏/大屏历史记录。旧源码失败9项:宿主frame/min/max/标题被改、桥接缩放策略被覆盖、若干parent变化未跟随、非零bounds原点未跟随、远程窗口事件污染本地历史。修正后21项几何检查、23项浏览库回归通过,摘要见`verification/BrowserGeometryRegression1.7.2.json`。测试模型的失败证明不安全路径,不冒充对方系统的实际截图复现。
|
||||
|
||||
## 修改
|
||||
|
||||
- 远程模式仅观察生命周期并按parent.bounds布局,直接返回;不设宿主窗口frame、min/max、标题、位置或背景,不从本地历史恢复远程窗口。
|
||||
- 保留桥接容器自己的autoresizesSubviews设置;监听parent的frame/bounds变化,即使自动缩放关闭、初始零尺寸或bounds原点非零,根视图也填满实际可用区域。关闭后移除这些观察。
|
||||
- 远程窗口事件不再写插件的本地frame偏好;缩略图大小、布局、分类、侧栏和最近使用保留原机制。
|
||||
- 仅本地脱离式弹窗保留位置恢复,用AppKit实际frame/content转换取代固定28/448/1228点;按保存frame与显示器的交集选择可用屏幕,将内容和外框约束到真实可见区域。
|
||||
- SDK v2/v3仍负责可调整远程窗口的范围;不通过改min/max伪装初始尺寸,也不清空用户配置来掩盖问题。
|
||||
|
||||
`tools/verify_browser_remote_geometry.mm`覆盖576×336、720×420、1280×800、900×620等桥接内容大小、旧记录、禁用自动缩放、非零原点、晚到尺寸、一次关闭和本地窗口恢复。正式`--self-test`加入8项对应检查。所有构建目录窗口测试保持不可见;用户可见验证只运行正式签名、公证并安装的版本。
|
||||
|
||||
本轮继续保留1.7.1的Cube文字行容错。最终公证、宿主、安装包和Release结果以交付记录为准;目标使用者的FCP12.3仍需更新后复测。
|
||||
@@ -0,0 +1,25 @@
|
||||
# 1.7.1:带文字行的 Cube 容错
|
||||
|
||||
基线为 `5c547100c1a15feb7a1a9a67c98f2ac44056583a`,正式版 1.7.0(45)。用户提供的 `tlfs.cube` 为 UTF-8、65³;两行保留 R 数值,G/B 位置被文字替换。原解析器报第 1899 行无效,编码识别本身没有失败。
|
||||
|
||||
## 苹果行为依据
|
||||
|
||||
本机 Final Cut Pro 12.4(454072)的 ProCore 中,`cc::lut_t::readCUBE` 逐行调用 `_readrow`,后者连续调用 `qdcstr2float`;遇到文字不会继续寻找其中的数字,读不到的通道输出 0,每行仍推进三个表格位置。只读分析使用 REA/Ghidra,临时提取 arm64 切片,未修改 Apple APP。
|
||||
|
||||
通过已签名原始框架的实际行读取函数,对用户原文件全部 274625 行进行受控重放:两处结果分别为 `(559,0,0)`、`(45643,0,0)`(16 位);本产品保留原有浮点精度,对应 `(0.00854505,0,0)`、`(0.696468,0,0)`。全表差异不超过一个 16 位量化单位。摘要、版本、源文件与框架摘要见 `verification/LUTNoteAppleReference.json`。这证明本文件的数据读取规则,不代表与 FCP 的完整色彩管理、插值和最终画面逐像素相同。
|
||||
|
||||
## 独立实现及边界
|
||||
|
||||
- 数值与尾部文字必须以空白分开,至少存在一个有效前导数值;文字必须是有效 UTF-8 且以字母/汉字起始。已有 UTF-16/32 先按原机制归一化。
|
||||
- 保留已读取通道,文字起始后的未读取通道补 0;读满 RGB 后允许同样的文字尾注。不扫描尾注中的数字,不删除行、不插值、不重排。
|
||||
- 缺少数据行、纯文字行、没有尾注的残缺 RGB、NaN/Inf、四个数值、数值粘连文字、损坏字节、无效尺寸与 DOMAIN 继续拒绝。兼容范围有意小于苹果读取器的所有宽松行为。
|
||||
- 标准 LUT 仍使用既有浮点精度、DOMAIN 与缓存/异步/取消机制;产品不加载 Apple 私有框架,也不携带 Apple 代码。
|
||||
- 原文件及导入副本逐字节保留。用户 LUT 和仅供验证的完整数值副本不进入源码、安装包或远端。
|
||||
|
||||
## 验证入口
|
||||
|
||||
独立 `tools/verify_lut_annotations.mm` 覆盖 UTF-8/16/32、三种换行、补零与后续行位置、尾注数字、数值基准、缩略图、原字节导入及拒绝边界;既有库/编码回归同步运行。编译方法与现有原生检查一致:使用 `clang++ -std=c++17 -fblocks` 链接 `DYLUTLibrary.mm`、AppKit 与 zlib。
|
||||
|
||||
正式插件 `--self-test` 新增合成 Cube 与完整数值基准的 GPU 对照。可通过 `DY_DIAGNOSTIC_LUT_FILE` 和 `DY_DIAGNOSTIC_LUT_ORACLE` 追加只读用户文件检查,导入到本次自检的独立临时库,比较全表、缩略图、GPU 结果及源/导入字节;自检结束清理。不要把这些路径写入公测上传数据。
|
||||
|
||||
最终安装、公证、宿主、打包和 Release 状态以本轮交付记录为准。
|
||||
@@ -29,3 +29,5 @@
|
||||
唯一正式路径 /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。以各记录的实际状态为准,不将系统登记等同于用户已确认宿主功能。
|
||||
|
||||
2026-11-02:用户针对正式1.6.1(44)在FCP中应用插件、检查画面和调节的验收问题明确回复“已确认正常”。本轮宿主用户验收已完成,证据见verification/HostUserConfirmation1.6.1.json。此后仅补录验收文档,不重编译、增加构建号或重发安装包。
|
||||
@@ -0,0 +1,39 @@
|
||||
#import <AppKit/AppKit.h>
|
||||
#import "../大鱼调色/Shared/DYBetaDiagnostics.h"
|
||||
#import "../大鱼调色/Wrapper Application/DYBetaUpdater.h"
|
||||
static NSUInteger checks;
|
||||
static void check(BOOL pass,NSString *name){if(!pass){fprintf(stderr,"FAIL %s\n",name.UTF8String);exit(1);}checks++;}
|
||||
int main(int argc,char **argv){@autoreleasepool{
|
||||
if(argc==2&&!strcmp(argv[1],"--live-update")){
|
||||
DYBetaUpdater *updater=[DYBetaUpdater new];NSMutableArray *phases=[NSMutableArray array];__block BOOL done=NO,passed=NO,started=NO;
|
||||
updater.changed=^(NSDictionary *state){NSString *phase=state[@"phase"];[phases addObject:phase];
|
||||
if([phase isEqual:@"available"]){if(started){done=YES;fprintf(stderr,"%s\n",[state description].UTF8String);}else{started=YES;dispatch_async(dispatch_get_main_queue(),^{[updater download];});}}
|
||||
if([phase isEqual:@"ready"]){done=YES;passed=YES;}
|
||||
if([phase isEqual:@"failed"]||[phase isEqual:@"latest"]){done=YES;fprintf(stderr,"%s\n",[state description].UTF8String);}
|
||||
};
|
||||
[updater check];NSDate *deadline=[NSDate dateWithTimeIntervalSinceNow:360];
|
||||
while(!done&&deadline.timeIntervalSinceNow>0)[NSRunLoop.currentRunLoop runUntilDate:[NSDate dateWithTimeIntervalSinceNow:.1]];
|
||||
NSDictionary *result=@{@"passed":@(passed),@"phases":phases,@"source":@"production HTTPS beta endpoint and download",@"installation_performed":@NO};
|
||||
printf("%s\n",[[[NSString alloc]initWithData:[NSJSONSerialization dataWithJSONObject:result options:0 error:nil] encoding:NSUTF8StringEncoding]autorelease].UTF8String);
|
||||
updater.changed=nil;[updater cancel];return passed?0:1;
|
||||
}
|
||||
NSString *base=@"https://dayu.media/wp-content/uploads/dayu-color-beta/updates/";
|
||||
NSMutableDictionary *manifest=[@{@"bundle_id":@"com.dayu.color",@"channel":@"beta",@"version":@"1.7.0",@"build":@45,@"size":@123,
|
||||
@"sha256":[@"a" stringByPaddingToLength:64 withString:@"a" startingAtIndex:0],@"package_type":@"pkg",@"install_mode":@"pkg_installer",@"download_url":[base stringByAppendingString:@"dayu-color-1-7-0-45.pkg"]}mutableCopy];
|
||||
check([DYBetaUpdater validateManifest:manifest error:nil],@"valid manifest");
|
||||
for(NSString *key in manifest.allKeys){for(id bad in @[[NSNull null],@[],@{},@YES,@"",@(-1)]){NSMutableDictionary *changed=[[manifest mutableCopy]autorelease];changed[key]=bad;
|
||||
check(![DYBetaUpdater validateManifest:changed error:nil],[NSString stringWithFormat:@"reject %@ %@",key,bad]);}}
|
||||
check(![DYBetaUpdater validateManifest:(id)@[] error:nil],@"non dictionary manifest");
|
||||
for(NSString *bad in @[@"http://dayu.media/wp-json/dayu-color/v1/update",@"https://dayu.media.evil.test/wp-json/dayu-color/v1/update",@"https://dayu.media:444/wp-json/dayu-color/v1/update",@"https://user@dayu.media/wp-json/dayu-color/v1/update",@"https://dayu.media/wp-json/other/v1/update",@"https://dayu.media/wp-json/dayu-color/v1/../other"])
|
||||
check(!DYBetaAllowedURL([NSURL URLWithString:bad],NO),@"reject foreign URL");
|
||||
NSDictionary *safe=DYBetaSafeFields(@{@"phase":@"end",@"frames":@"/Users/test/secret.mov",@"error_domain":@"token=secret",@"email":@"private@example.invalid",@"duration_ms":@(NAN)});
|
||||
check([safe[@"frames"]isEqual:@"[REDACTED]"]&&[safe[@"error_domain"]isEqual:@"[REDACTED]"]&&!safe[@"email"]&&!safe[@"duration_ms"],@"privacy allowlist and redaction");
|
||||
check(DYBetaSafeFields((id)@[]).count==0,@"bad fields do not crash");
|
||||
if(argc==3){NSData *data=[NSData dataWithContentsOfFile:[NSString stringWithUTF8String:argv[2]]];NSDictionary *real=[NSJSONSerialization JSONObjectWithData:data options:0 error:nil];NSError *error=nil;
|
||||
BOOL verified=[DYBetaUpdater validatePackage:[NSURL fileURLWithPath:[NSString stringWithUTF8String:argv[1]]] manifest:real error:&error];
|
||||
if(!verified)fprintf(stderr,"%s\n",error.localizedDescription.UTF8String);check(verified,@"signed notarized full product package");
|
||||
NSMutableDictionary *wrong=[[real mutableCopy]autorelease];wrong[@"sha256"]=[@"0" stringByPaddingToLength:64 withString:@"0" startingAtIndex:0];
|
||||
check(![DYBetaUpdater validatePackage:[NSURL fileURLWithPath:[NSString stringWithUTF8String:argv[1]]] manifest:wrong error:nil],@"corrupt checksum refused before install");
|
||||
}
|
||||
printf("{\"passed\":true,\"checks\":%lu}\n",(unsigned long)checks);[manifest release];
|
||||
}return 0;}
|
||||
@@ -32,7 +32,7 @@ int main(int argc,const char **argv){@autoreleasepool{
|
||||
NSSplitView *split=[browser valueForKey:@"splitView"];[split setPosition:240 ofDividerAtIndex:0];[browser layoutBrowser];NSScrollView *folders=[browser valueForKey:@"folderScroll"],*grid=[browser valueForKey:@"gridScroll"];require(fabs(folders.frame.size.width-240)<2&&NSMaxX(folders.frame)<=NSMinX(grid.frame),@"sidebar divider changes folder width without overlapping previews");
|
||||
[browser close];[browser release];browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];pump(^{return [browser valueForKey:@"libraryTask"]==nil;});require([(NSPopUpButton*)[browser valueForKey:@"layoutMenu"]indexOfSelectedItem]==1&&fabs([[browser valueForKey:@"sidebarWidth"]doubleValue]-240)<2,@"layout and sidebar width survive reopening");
|
||||
NSPanel *host=[[[NSPanel alloc]initWithContentRect:NSMakeRect(120,160,900,620) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]autorelease];__block int closes=0;[browser showInRemoteParent:host.contentView close:^{closes++;}];pump(^{return [browser valueForKey:@"presentationWindow"]==host;});require(!host.visible&&browser.visible,@"remote-parent checks never display a test window");
|
||||
NSRect desired=NSMakeRect(190,210,1000,680);[host setFrame:desired display:NO];NSString *frameKey=[@"com.dayu.color.lookLUTPreview.windowFrame|" stringByAppendingString:library.rootURL.path];require(NSEqualRects(NSRectFromString([NSUserDefaults.standardUserDefaults stringForKey:frameKey]),host.frame),@"window position and size are remembered");[browser close];[browser close];require(closes==1,@"remote close callback runs once");[browser release];[ack release];ack=nil;
|
||||
NSRect desired=NSMakeRect(190,210,1000,680);[host setFrame:desired display:NO];NSString *frameKey=[@"com.dayu.color.lookLUTPreview.windowFrame|" stringByAppendingString:library.rootURL.path];require([NSUserDefaults.standardUserDefaults stringForKey:frameKey]==nil,@"remote window geometry is owned and remembered by the host");[browser close];[browser close];require(closes==1,@"remote close callback runs once");[browser release];[ack release];ack=nil;
|
||||
for(int i=0;i<50;i++)[library recordUsedPath:[root.path stringByAppendingPathComponent:[NSString stringWithFormat:@"History-%d.cube",i]]];require(library.recentPaths.count==40&&[library.recentPaths[0]hasSuffix:@"History-49.cube"],@"recent history stays bounded at 40 newest paths");
|
||||
NSArray *keys=NSUserDefaults.standardUserDefaults.dictionaryRepresentation.allKeys;for(NSString *key in keys)if([key containsString:library.rootURL.path])[NSUserDefaults.standardUserDefaults removeObjectForKey:key];require([fm removeItemAtURL:root error:nil],@"isolated fixtures and preferences cleaned");
|
||||
NSDictionary *report=@{@"pass":@YES,@"checks":checks,@"scope":@"Real AppKit browser objects, hidden host-owned window fixture, asynchronous acknowledgement and root-scoped history; no visible test app or user LUT changes."};[[NSJSONSerialization dataWithJSONObject:report options:NSJSONWritingPrettyPrinted error:nil]writeToFile:[NSString stringWithUTF8String:argv[1]] atomically:YES];printf("PASS %lu browser checks\n",(unsigned long)checks.count);[checks release];return 0;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
#import <AppKit/AppKit.h>
|
||||
#import "../大鱼调色/Plugin/DYLUTBrowser.h"
|
||||
#import "../大鱼调色/Plugin/DYLUTLibrary.h"
|
||||
#include <cmath>
|
||||
|
||||
@interface DYLUTBrowser (GeometryProbe)
|
||||
- (void)configurePresentationWindow;
|
||||
@end
|
||||
static NSMutableArray *checks;
|
||||
static void check(BOOL pass,NSString *name){[checks addObject:@{@"name":name,@"pass":@(pass)}];if(!pass)fprintf(stderr,"FAIL %s\n",name.UTF8String);}
|
||||
static void pump(void){double until=NSProcessInfo.processInfo.systemUptime+.08;while(NSProcessInfo.processInfo.systemUptime<until)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];}
|
||||
int main(int argc,const char **argv){@autoreleasepool{
|
||||
if(argc!=2)return 2;checks=[NSMutableArray new];[NSApplication sharedApplication];[NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited];
|
||||
NSURL *directory=[NSURL fileURLWithPath:[NSTemporaryDirectory()stringByAppendingPathComponent:[@"dayu-remote-geometry-" stringByAppendingString:NSUUID.UUID.UUIDString]]];
|
||||
[NSFileManager.defaultManager createDirectoryAtURL:directory withIntermediateDirectories:YES attributes:nil error:nil];
|
||||
DYLUTLibrary *library=[[[DYLUTLibrary alloc]initWithRootURL:directory]autorelease];
|
||||
NSString *key=[@"com.dayu.color.lookLUTPreview.windowFrame|" stringByAppendingString:library.rootURL.path];
|
||||
NSString *stale=NSStringFromRect(NSMakeRect(-9000,8000,1800,1228));[NSUserDefaults.standardUserDefaults setObject:stale forKey:key];
|
||||
NSPanel *host=[[[NSPanel alloc]initWithContentRect:NSMakeRect(80,100,900,620) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]autorelease];
|
||||
// A remote bridge can publish its content bounds separately from its local
|
||||
// service-side window. Never resize that window to restore plug-in history.
|
||||
NSView *parent=[[[NSView alloc]initWithFrame:host.contentView.bounds]autorelease];parent.autoresizesSubviews=NO;[host.contentView addSubview:parent];
|
||||
NSRect initial=host.frame;NSSize minimum=host.contentMinSize,maximum=host.contentMaxSize;NSString *title=[host.title copy];
|
||||
__block NSUInteger closes=0;DYLUTBrowser *browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];
|
||||
[browser showInRemoteParent:parent close:^{closes++;}];pump();
|
||||
NSView *root=[browser valueForKey:@"root"];
|
||||
check(NSEqualRects(host.frame,initial),@"remote attach never restores a stale frame onto the host window");
|
||||
check(NSEqualSizes(host.contentMinSize,minimum)&&NSEqualSizes(host.contentMaxSize,maximum),@"remote attach preserves host minimum and maximum sizes");
|
||||
check([host.title isEqual:title],@"remote attach preserves host-owned window metadata");
|
||||
check(!parent.autoresizesSubviews,@"remote attach preserves the bridge's autoresizing policy");
|
||||
check(NSEqualRects(root.frame,parent.bounds),@"root initially covers exactly the supplied remote bounds");
|
||||
check(!host.visible&&browser.visible,@"native geometry fixtures remain invisible");
|
||||
for(NSValue *value in @[[NSValue valueWithSize:NSMakeSize(576,336)],[NSValue valueWithSize:NSMakeSize(720,420)],[NSValue valueWithSize:NSMakeSize(1280,800)],[NSValue valueWithSize:NSMakeSize(900,620)]]){
|
||||
parent.autoresizesSubviews=NO;[parent setFrameSize:value.sizeValue];pump();
|
||||
check(NSEqualRects(root.frame,parent.bounds),@"root follows bridge resize even when autoresizing is disabled");
|
||||
NSView *done=[browser valueForKey:@"done"],*search=[browser valueForKey:@"search"],*split=[browser valueForKey:@"splitView"];
|
||||
check(NSContainsRect(root.bounds,done.frame)&&NSContainsRect(root.bounds,search.frame)&&NSContainsRect(root.bounds,split.frame),@"footer, search and browser panes remain within host-capped content");
|
||||
}
|
||||
[parent setBoundsOrigin:NSMakePoint(17,23)];pump();check(NSEqualRects(root.frame,parent.bounds),@"root tracks nonzero remote bounds origins");
|
||||
[host setFrame:NSMakeRect(140,160,1000,700) display:NO];pump();check([[NSUserDefaults.standardUserDefaults stringForKey:key]isEqual:stale],@"remote window events never overwrite local window history");
|
||||
[browser close];[browser close];check(closes==1,@"remote dismissal is delivered once");[browser release];[title release];
|
||||
// Late SDK attachment: a zero-sized placeholder gets real bounds later.
|
||||
NSView *late=[[[NSView alloc]initWithFrame:NSZeroRect]autorelease];late.autoresizesSubviews=NO;[host.contentView addSubview:late];
|
||||
browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];[browser showInRemoteParent:late close:nil];
|
||||
[late setFrame:NSMakeRect(0,0,720,420)];pump();root=[browser valueForKey:@"root"];
|
||||
check(NSEqualRects(root.frame,late.bounds),@"zero-size SDK placeholder expands after late host attachment");[browser close];[browser release];
|
||||
// Detached popovers are local windows and retain their geometry behavior.
|
||||
NSPanel *local=[[[NSPanel alloc]initWithContentRect:NSMakeRect(120,140,900,620) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]autorelease];
|
||||
browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];[browser showInRemoteParent:local.contentView close:nil];
|
||||
[browser setValue:@NO forKey:@"remoteMode"];[browser setValue:@YES forKey:@"detached"];pump();
|
||||
BOOL onScreen=NO;for(NSScreen *screen in NSScreen.screens)onScreen|=NSContainsRect(screen.visibleFrame,local.frame);
|
||||
check(onScreen,@"local detached window constrains disconnected-display history to a visible screen");
|
||||
NSRect chosen=[local frameRectForContentRect:NSMakeRect(180,200,900,620)];[local setFrame:chosen display:NO];pump();
|
||||
check(NSEqualRects(NSRectFromString([NSUserDefaults.standardUserDefaults stringForKey:key]),local.frame),@"local detached window still remembers user position and size");
|
||||
check(!local.visible,@"local fallback geometry checks also remain invisible");[browser close];[browser release];
|
||||
// Real More Space reproduction: the service window's content view itself
|
||||
// arrives displaced, while its bounds and the plug-in child's frame agree.
|
||||
// A frame==bounds assertion alone cannot detect the resulting gray area.
|
||||
NSPanel *service=[[[NSPanel alloc]initWithContentRect:NSMakeRect(60,100,1800,1200) styleMask:NSWindowStyleMaskBorderless backing:NSBackingStoreBuffered defer:NO]autorelease];
|
||||
NSView *content=service.contentView;content.autoresizingMask=NSViewMinXMargin|NSViewMaxXMargin|NSViewMinYMargin|NSViewMaxYMargin;
|
||||
[content setFrameOrigin:NSMakePoint(789,521)];NSRect serviceFrame=service.frame;NSSize contentSize=content.frame.size;NSUInteger bridgeMask=content.autoresizingMask;
|
||||
browser=[[DYLUTBrowser alloc]initWithLibrary:library preview:nil selectedPath:nil palette:@{} selection:nil];[browser showInRemoteParent:content close:nil];pump();root=[browser valueForKey:@"root"];
|
||||
NSRect viewport=[service convertRectFromScreen:[service contentRectForFrameRect:service.frame]];
|
||||
check(NSEqualRects([root convertRect:root.bounds toView:nil],viewport),@"displaced service content is aligned to the actual window viewport");
|
||||
check(NSEqualRects(service.frame,serviceFrame)&&NSEqualSizes(content.frame.size,contentSize),@"content-origin repair never moves or resizes the host window or content");
|
||||
check(content.autoresizingMask==bridgeMask,@"content-origin repair preserves the bridge's margin policy");
|
||||
[content setFrameOrigin:NSMakePoint(123,77)];pump();
|
||||
check(NSEqualRects([root convertRect:root.bounds toView:nil],viewport),@"a later bridge-origin displacement is realigned without a green-button resize");
|
||||
[content setBoundsOrigin:NSMakePoint(17,23)];pump();
|
||||
check(NSEqualRects([root convertRect:root.bounds toView:nil],viewport),@"content-origin repair also respects nonzero content bounds");
|
||||
check(!service.visible,@"service-origin reproduction remains invisible");[browser close];[browser release];
|
||||
for(NSString *item in NSUserDefaults.standardUserDefaults.dictionaryRepresentation.allKeys)if([item containsString:library.rootURL.path])[NSUserDefaults.standardUserDefaults removeObjectForKey:item];
|
||||
[NSFileManager.defaultManager removeItemAtURL:directory error:nil];
|
||||
BOOL pass=YES;for(NSDictionary *item in checks)pass&=[item[@"pass"]boolValue];
|
||||
NSDictionary *report=@{@"pass":@(pass),@"checks":checks,@"scope":@"Hidden native AppKit remote-bridge fixtures: stale off-screen history, host-owned geometry, disabled autoresizing, capped content sizes, nonzero bounds and late attachment. No visible test app or user settings modified."};
|
||||
[[NSJSONSerialization dataWithJSONObject:report options:NSJSONWritingPrettyPrinted error:nil]writeToFile:[NSString stringWithUTF8String:argv[1]] atomically:YES];
|
||||
printf("%s %lu checks\n",pass?"PASS":"FAIL",(unsigned long)checks.count);return pass?0:1;
|
||||
}}
|
||||
@@ -0,0 +1,49 @@
|
||||
#import <AppKit/AppKit.h>
|
||||
#import "../大鱼调色/Plugin/DYLUTLibrary.h"
|
||||
#include <cstdio>
|
||||
|
||||
static NSMutableArray *checks;
|
||||
static void need(BOOL pass,NSString *name){[checks addObject:@{@"name":name,@"pass":@(pass)}];if(!pass){fprintf(stderr,"FAIL %s\n",name.UTF8String);exit(1);}}
|
||||
int main(int argc,const char **argv){@autoreleasepool{
|
||||
if(argc!=2)return 2;checks=[NSMutableArray new];NSError *error=nil;
|
||||
NSFileManager *fm=NSFileManager.defaultManager;
|
||||
NSURL *root=[NSURL fileURLWithPath:[NSTemporaryDirectory()stringByAppendingPathComponent:[@"dayu-lut-notes-" stringByAppendingString:NSUUID.UUID.UUIDString]]];
|
||||
need([fm createDirectoryAtURL:root withIntermediateDirectories:YES attributes:nil error:&error],@"isolated fixtures");
|
||||
NSString *header=@"TITLE \"Synthetic note compatibility\"\nLUT_3D_SIZE 2\n";
|
||||
NSString *normal=@"0.25 0 0\n1 0 0\n0 1 0\n1 1 0\n0 0 1\n1 0 1\n0 1 1\n1 1 1\n";
|
||||
NSString *notes=@"0.25 v3文字 100 分\n1 0 说明99\n0 1 0 完整数值 后记123\n1 1 0\n0 0 1\n1 0 1\n0 1 1\n1 1 1\n";
|
||||
NSURL *baseline=[root URLByAppendingPathComponent:@"baseline.cube"];
|
||||
need([[header stringByAppendingString:normal]writeToURL:baseline atomically:YES encoding:NSUTF8StringEncoding error:&error],@"write independent numeric oracle");
|
||||
std::vector<float> expected;NSUInteger side=0;
|
||||
need(DYLUTReadCube(baseline.path,expected,side,&error)&&side==2,@"read numeric oracle");
|
||||
float pixel[]={.37,.28,.81,.6};NSData *input=[NSData dataWithBytes:pixel length:sizeof(pixel)];
|
||||
NSData *reference=DYLUTTransformRGBA(input,1,1,baseline.path,&error);
|
||||
NSArray *encodings=@[@(NSUTF8StringEncoding),@(NSUTF16LittleEndianStringEncoding),@(NSUTF16BigEndianStringEncoding),@(NSUTF32LittleEndianStringEncoding),@(NSUTF32BigEndianStringEncoding)];
|
||||
NSMutableArray *sources=[NSMutableArray array];
|
||||
for(NSNumber *encoding in encodings)for(NSString *newline in @[@"\n",@"\r\n",@"\r"]){@autoreleasepool{
|
||||
NSString *text=[[header stringByAppendingString:notes]stringByReplacingOccurrencesOfString:@"\n" withString:newline];
|
||||
NSURL *url=[root URLByAppendingPathComponent:[NSString stringWithFormat:@"note-%lu.cube",(unsigned long)sources.count]];
|
||||
NSData *bytes=[text dataUsingEncoding:encoding.unsignedIntegerValue];
|
||||
need([bytes writeToURL:url atomically:YES],@"write encoded annotations");[sources addObject:url];
|
||||
std::vector<float> actual;NSUInteger n=0;
|
||||
need(DYLUTReadCube(url.path,actual,n,&error)&&n==2&&actual==expected,@"zero unread channels, ignore note digits, preserve every later row");
|
||||
need([DYLUTTransformRGBA(input,1,1,url.path,&error)isEqual:reference],@"annotated and canonical cubes give exactly the same colors");
|
||||
need(DYLUTThumbnail(url.path,nil,0,0,NSMakeSize(32,18),&error)!=nil,@"annotated cube thumbnail");
|
||||
}}
|
||||
NSArray *invalid=@[@"0.25\n",@"0.25 0\n",@"0.25 NaN 0\n",@"0.25 Inf 0\n",@"0.25 0 0 100\n",@"0.25oops 0 0\n",@"0.25 0broken 0\n",@"0.25 0 0broken\n",@"note only 100\n",@"0.25 0 0 NaN\n"];
|
||||
NSUInteger index=0;
|
||||
for(NSString *first in invalid){
|
||||
NSURL *url=[root URLByAppendingPathComponent:[NSString stringWithFormat:@"invalid-%lu.cube",(unsigned long)index++]];
|
||||
NSString *text=[header stringByAppendingString:[normal stringByReplacingCharactersInRange:NSMakeRange(0,9) withString:first]];
|
||||
need([text writeToURL:url atomically:YES encoding:NSUTF8StringEncoding error:&error],@"write invalid numeric fixture");
|
||||
std::vector<float> actual;NSUInteger n=0;
|
||||
need(!DYLUTReadCube(url.path,actual,n,&error)&&actual.empty()&&n==0,@"notes do not excuse malformed numbers, bare truncation, extra values or text-only rows");
|
||||
}
|
||||
DYLUTLibrary *library=[[[DYLUTLibrary alloc]initWithRootURL:[root URLByAppendingPathComponent:@"library"]]autorelease];
|
||||
NSArray *imported=[library importURLs:sources error:&error];
|
||||
need(imported.count==sources.count,@"all annotated encodings import");
|
||||
for(NSUInteger i=0;i<sources.count;i++)need([[NSData dataWithContentsOfURL:sources[i]]isEqual:[NSData dataWithContentsOfFile:imported[i][@"path"]]],@"import retains original annotation bytes");
|
||||
NSDictionary *report=@{@"pass":@YES,@"checks":@(checks.count),@"results":checks,@"scope":@"Synthetic UTF-8/16/32 notes, zero fill without row shifts, exact canonical colors, thumbnails, byte-preserving import, strict invalid-number checks."};
|
||||
need([[NSJSONSerialization dataWithJSONObject:report options:NSJSONWritingPrettyPrinted error:nil]writeToFile:[NSString stringWithUTF8String:argv[1]] atomically:YES],@"write report");
|
||||
need([fm removeItemAtURL:root error:nil],@"clean fixtures");printf("PASS %lu checks\n",(unsigned long)checks.count);return 0;
|
||||
}}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-color-beta.php",
|
||||
"sha256": "d2b73816e871765bc2f7d1604a1beda98b99e2d9ac4f62039de7bf3a81107593",
|
||||
"backup": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/mu-plugins/dayu-color-beta-202611021738.phpbak",
|
||||
"size": 14220,
|
||||
"timestamp": "202611021738",
|
||||
"mount": "//dayu@192.168.31.21/dayumedia%20%28%E5%AD%98%E5%82%A8%E7%A9%BA%E9%97%B41%29 on /Volumes/dayumedia (存储空间1) (smbfs, nodev, nosuid, mounted by mac)",
|
||||
"localProject": "/Users/mac/Downloads/dayumedia/dayu-color-beta",
|
||||
"sourceCommit": "e37330a4b5a1ad8c10a05fbc6cd3c37be87dc530"
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"passed": true,
|
||||
"checked_at": "2026-11-02T09:40:25.115993+00:00",
|
||||
"checks": [
|
||||
"update GET",
|
||||
"product isolation",
|
||||
"admin read denied anonymously",
|
||||
"diagnostic stored ACK",
|
||||
"retry same UUID ACK",
|
||||
"foreign upload denied"
|
||||
],
|
||||
"test_event_id": "fe84a41b-84a4-41f8-ba22-afd62655506e",
|
||||
"test_installation_id": "c1f91498-dda9-4219-bb86-decaba573e18",
|
||||
"update": {
|
||||
"bundle_id": "com.dayu.color",
|
||||
"channel": "beta",
|
||||
"version": "1.7.0",
|
||||
"build": 45,
|
||||
"package_type": "pkg",
|
||||
"install_mode": "pkg_installer",
|
||||
"size": 40898751,
|
||||
"sha256": "a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb",
|
||||
"download_url": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
|
||||
"minimum_system_version": "14.6",
|
||||
"notes": "公测版:接入自动更新与可关闭的云端诊断,记录插件加载耗时及错误摘要。请保存并退出 FCP / Motion 后安装。",
|
||||
"update_available": true,
|
||||
"checked_at": "2026-11-02T09:40:23+00:00"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"passed": true,
|
||||
"checks": 20
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"passed": true,
|
||||
"checkedAt": "2026-11-02T09:46:30.578042+00:00",
|
||||
"formalInstall": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"version": "1.7.0",
|
||||
"build": 45,
|
||||
"removed": [
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/beta-package-inspect",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/beta-release-recovery",
|
||||
"/Volumes/备份/大鱼调色-1.7.0.pkg",
|
||||
"/Users/mac/Library/Caches/com.dayu.color/Updates/dayu-color-update-45.pkg",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/beta-test-manifest.json"
|
||||
],
|
||||
"registry": "one exact formal plugin path",
|
||||
"retained": [
|
||||
"Final notarized 1.7.0 PKG in 发行包",
|
||||
"Historical user release packages",
|
||||
"Source, QA projects, user media and presets",
|
||||
"Private runtime diagnostic outbox",
|
||||
"Read-only reference source cache"
|
||||
],
|
||||
"scope": "Product build cache, current project, known plugin installation locations and known task downloads; no whole-disk deletion"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": "1.7.0",
|
||||
"build": 45,
|
||||
"checkedAt": "2026-11-02T09:38:49.424288+00:00",
|
||||
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"nativeChecks": 395,
|
||||
"inspector": "FCP 12.4 UI shows 1.7.0; exposure changed 0.00 -> 0.35 and restored 0.00; image responds",
|
||||
"diagnosticsToggle": "off disables upload/manual button; on restores; manual summary acknowledged",
|
||||
"cloudEvidence": {
|
||||
"installationID": "113ffef4-5e7e-482b-a451-abd2dc6af83a",
|
||||
"pluginSessionPrefix": "ec3d4c05",
|
||||
"event": "first_render",
|
||||
"durationMS": 111.8215833330396,
|
||||
"status": "passed",
|
||||
"observedInAdmin": true
|
||||
},
|
||||
"limitations": [
|
||||
"Single local FCP run does not establish intermittent hang root cause",
|
||||
"Previous explicit user confirmation applied to build44; build45 host check performed by agent"
|
||||
],
|
||||
"startupCountdown": "AX observed 3-second countdown in build45; process subsequently exited normally with registration-succeeded; plugin XPC remained running in FCP"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"passed":true,"checks":66}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
|
||||
"sha256": "a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb",
|
||||
"backup": null,
|
||||
"size": 40898751,
|
||||
"manifest": {
|
||||
"path": "/Volumes/dayumedia (存储空间1)/wwwroot/dayu_media/wp-content/uploads/dayu-color-beta/updates/beta.json",
|
||||
"sha256": "30c92debf91de7ab8215b35dc64a4ddb764e53450c327ae53fb41a4c2f7a26c0",
|
||||
"backup": null,
|
||||
"size": 558
|
||||
},
|
||||
"version": "1.7.0",
|
||||
"build": 45,
|
||||
"downloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
|
||||
"timestamp": "202611021740"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"passed": true,
|
||||
"remote": "https://dayu.media/git/dayu/dayu-color.git",
|
||||
"branch": "main",
|
||||
"tag": "v1.7.0-beta-20261102",
|
||||
"releaseCommit": "b5d842835cef860d27f38b3f9c2efc6743abfaa4",
|
||||
"compiledSource": "a0f37578f73d7f8faa872d9a81009e2d6586a858",
|
||||
"trackedFilesCompared": 326,
|
||||
"appAndProjectFilesMatchCompiledSource": 106,
|
||||
"fsck": "full strict passed",
|
||||
"xcodeProject": "scheme list parsed from independent clone",
|
||||
"backendContracts": "20 passed from clone",
|
||||
"lfs": false,
|
||||
"submodules": false,
|
||||
"clone": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/beta-release-recovery",
|
||||
"cloneRemoved": true
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"passed": true,
|
||||
"releaseID": 375,
|
||||
"assetID": 20,
|
||||
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.7.0-beta-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.7.0.pkg",
|
||||
"path": "/Volumes/备份/大鱼调色-1.7.0.pkg",
|
||||
"bytes": 40898751,
|
||||
"sha256": "a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb",
|
||||
"originVerified": true
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"passed": true,
|
||||
"source": "production HTTPS beta endpoint and download",
|
||||
"phases": [
|
||||
"checking",
|
||||
"available",
|
||||
"downloading",
|
||||
"validating",
|
||||
"ready"
|
||||
],
|
||||
"installation_performed": false,
|
||||
"bytes": 40898751,
|
||||
"sha256": "a3578ee95aa7333e64d556061173fb73a42be0e45442ae844c94147b421d34bb",
|
||||
"downloadURL": "https://dayu.media/wp-content/uploads/dayu-color-beta/updates/dayu-color-1-7-0-45.pkg",
|
||||
"sameBuildHasNoUpdate": true,
|
||||
"lowerBuildHasUpdate": true
|
||||
}
|
||||
@@ -78,7 +78,7 @@
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "window position and size are remembered",
|
||||
"name" : "remote window geometry is owned and remembered by the host",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"date": "2026-11-02T13:59:23.934566+00:00",
|
||||
"removed": [
|
||||
"/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-browser-geometry-restore-5dolozhv",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/browser-geometry-qa/verify-remote-before",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/browser-geometry-qa/verify-browser_remote_geometry",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/browser-geometry-qa/verify-browser_customization",
|
||||
"/Volumes/备份/大鱼调色-1.7.2.pkg"
|
||||
],
|
||||
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"version": "1.7.2",
|
||||
"build": "47",
|
||||
"retainedInstaller": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.2.pkg",
|
||||
"knownGeneratedCandidatesAfterCleanup": [
|
||||
"/Library/Plug-Ins/FxPlug/大鱼调色.app"
|
||||
],
|
||||
"deliveryLockReleased": true,
|
||||
"userLibraryFilesAddedByTask": 0,
|
||||
"historicalInstallersPreserved": true,
|
||||
"scope": "Current product project/build root, known installation locations, and this task restore/download paths. Offline/unknown volumes not claimed to be scanned."
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"compiledSourceCommit": "f9dea76a453319abceaff2d66ba401d30ae10468",
|
||||
"filesCompared": 360,
|
||||
"fsck": "strict/full passed",
|
||||
"checks": {
|
||||
"browser_remote_geometry": {
|
||||
"result": "PASS 21 checks",
|
||||
"passResult": true
|
||||
},
|
||||
"browser_customization": {
|
||||
"result": "PASS 23 browser checks",
|
||||
"passResult": true
|
||||
}
|
||||
},
|
||||
"lfs": false,
|
||||
"submodules": false,
|
||||
"restoreRoot": "/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-browser-geometry-restore-5dolozhv",
|
||||
"releaseTag": "v1.7.2-browser-geometry-20261102",
|
||||
"releaseCommit": "7720d9a042271ad0147992a7d476b5c06151f616",
|
||||
"releaseFilesCompared": 362,
|
||||
"releaseSourceMatchesCompiledCommit": true,
|
||||
"restoreCloneRemoved": true
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"baselineCommit": "e62d5532f2360d157d5a4d96488e58f4113a55af",
|
||||
"baselineFailures": [
|
||||
"remote attach never restores a stale frame onto the host window",
|
||||
"remote attach preserves host minimum and maximum sizes",
|
||||
"remote attach preserves host-owned window metadata",
|
||||
"remote attach preserves the bridge's autoresizing policy",
|
||||
"root follows bridge resize even when autoresizing is disabled",
|
||||
"root follows bridge resize even when autoresizing is disabled",
|
||||
"root follows bridge resize even when autoresizing is disabled",
|
||||
"root tracks nonzero remote bounds origins",
|
||||
"remote window events never overwrite local window history"
|
||||
],
|
||||
"fixedChecks": 21,
|
||||
"fixedPass": true,
|
||||
"reportedHost": "Final Cut Pro 12.3",
|
||||
"reportedOS": "macOS 27.0.1 (user entered 27.01)",
|
||||
"reportedDisplay": "not supplied",
|
||||
"localHost": "Final Cut Pro 12.4",
|
||||
"scope": "A native bridge model reproduces unsafe geometry ownership; the affected user system has not been directly tested."
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"status": "draft-browser-download-verified",
|
||||
"repository": "dayu/dayu-color",
|
||||
"repositoryID": 52,
|
||||
"private": false,
|
||||
"tag": "v1.7.2-browser-geometry-20261102",
|
||||
"releaseCommit": "7720d9a042271ad0147992a7d476b5c06151f616",
|
||||
"releaseID": 378,
|
||||
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.2-browser-geometry-20261102",
|
||||
"prerelease": true,
|
||||
"assetID": 22,
|
||||
"assetName": "大鱼调色-1.7.2.pkg",
|
||||
"downloadURL": "https://dayu.media/git/attachments/114bcc6c-01a7-4adc-8382-b583527aa51f",
|
||||
"bytes": 40904714,
|
||||
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"downloadedFile": "/Volumes/备份/大鱼调色-1.7.2.pkg",
|
||||
"downloadedBytes": 40904714,
|
||||
"downloadedSHA256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"verification": "Normal logged-in browser full draft download; byte count and SHA-256 match verified installer."
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"pass" : true,
|
||||
"checks" : [
|
||||
{
|
||||
"name" : "remote attach never restores a stale frame onto the host window",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "remote attach preserves host minimum and maximum sizes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "remote attach preserves host-owned window metadata",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "remote attach preserves the bridge's autoresizing policy",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "root initially covers exactly the supplied remote bounds",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "native geometry fixtures remain invisible",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "root follows bridge resize even when autoresizing is disabled",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "footer, search and browser panes remain within host-capped content",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "root follows bridge resize even when autoresizing is disabled",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "footer, search and browser panes remain within host-capped content",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "root follows bridge resize even when autoresizing is disabled",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "footer, search and browser panes remain within host-capped content",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "root follows bridge resize even when autoresizing is disabled",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "footer, search and browser panes remain within host-capped content",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "root tracks nonzero remote bounds origins",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "remote window events never overwrite local window history",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "remote dismissal is delivered once",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero-size SDK placeholder expands after late host attachment",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "local detached window constrains disconnected-display history to a visible screen",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "local detached window still remembers user position and size",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "local fallback geometry checks also remain invisible",
|
||||
"pass" : true
|
||||
}
|
||||
],
|
||||
"scope" : "Hidden native AppKit remote-bridge fixtures: stale off-screen history, host-owned geometry, disabled autoresizing, capped content sizes, nonzero bounds and late attachment. No visible test app or user settings modified."
|
||||
}
|
||||
@@ -2,18 +2,14 @@
|
||||
"status": "verified",
|
||||
"path": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"bundleID": "com.dayu.color",
|
||||
"version": "1.6.1",
|
||||
"build": "44",
|
||||
"version": "1.7.3",
|
||||
"build": "49",
|
||||
"team": "B3W25FX5H5",
|
||||
"notaryID": "23d7b69c-5585-435d-ad07-faee061e0ccb",
|
||||
"notaryID": "06e09906-676f-414b-adcc-acf2bec6864a",
|
||||
"notaryStatus": "Accepted",
|
||||
"gatekeeper": "/Library/Plug-Ins/FxPlug/大鱼调色.app: accepted\nsource=Notarized Developer ID",
|
||||
"sourceCommit": "90d6022520c59ea34f42b511daee85ac2936cfd9",
|
||||
"sourceCommit": "2688b22f99b5118153b94a43f6c184a204d4ce7e",
|
||||
"templatePath": "/Users/mac/Movies/Motion Templates.localized/Effects.localized/大鱼调色/大鱼调色/大鱼调色.moef",
|
||||
"templateSHA256": "fe6b9ed9a59e1e00de7bcad4526bc98fa2d5fde5cab490fd65ec999835ab2250",
|
||||
"shaderSHA256": "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d",
|
||||
"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
|
||||
"shaderSHA256": "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d"
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"date": "2026-11-02T13:50:07.479031+00:00",
|
||||
"version": "1.7.2",
|
||||
"build": "47",
|
||||
"compiledSourceCommit": "f9dea76a453319abceaff2d66ba401d30ae10468",
|
||||
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"host": "Final Cut Pro 12.4 (454072)",
|
||||
"os": "macOS 27.0.1 (26A434)",
|
||||
"reportedTargetHost": "Final Cut Pro 12.3",
|
||||
"reportedTargetOS": "27.01",
|
||||
"reportedTargetVerified": false,
|
||||
"checks": [
|
||||
{
|
||||
"name": "formal-version-and-unique-plugin-path",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "remote-browser-dark-content-covers-window",
|
||||
"passResult": true,
|
||||
"observed": "Grid, sidebar, search and footer fill the remote window; no gray gap or clipped footer in the observed opening."
|
||||
},
|
||||
{
|
||||
"name": "host-system-zoom",
|
||||
"passResult": true,
|
||||
"observed": "System zoom changes window dimensions and content remains covered and visible."
|
||||
},
|
||||
{
|
||||
"name": "list-and-grid-layout",
|
||||
"passResult": true,
|
||||
"observed": "List uses full-width rows; grid restored afterwards."
|
||||
},
|
||||
{
|
||||
"name": "warm-close-reopen",
|
||||
"passResult": true,
|
||||
"observed": "Reopened window is visually complete and Return invokes Done."
|
||||
},
|
||||
{
|
||||
"name": "normal-host-quit-and-cold-reopen",
|
||||
"passResult": true,
|
||||
"observed": "1.7.2, selected tlfs, 58 files, grid layout and thumbnail size 125.4610877403846 retained; all controls returned in accessibility tree."
|
||||
},
|
||||
{
|
||||
"name": "existing-lut-and-rendered-chart-preserved",
|
||||
"passResult": true
|
||||
}
|
||||
],
|
||||
"userLibraryFilesAddedByThisTask": 0,
|
||||
"shaderAndTemplateUnchangedFrom1_7_1": true,
|
||||
"limitations": [
|
||||
"Affected FCP12.3 machine and display scaling not directly tested; the local host is12.4 on the same macOS27.0.1.",
|
||||
"Exact border-drag resizing was attempted but no size change was confirmed; host system zoom and hidden native size fixtures provide separate coverage.",
|
||||
"A warm reopen omitted remote child elements from the automation accessibility snapshot once; the image and Return operation worked, and a cold reopen returned the full tree. This is not a complete VoiceOver audit."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"checkedAt": "2026-11-02T14:48:34.202932+00:00",
|
||||
"version": "1.7.3",
|
||||
"build": "49",
|
||||
"compiledSource": "2688b22f99b5118153b94a43f6c184a204d4ce7e",
|
||||
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"host": "Final Cut Pro 12.4 (454072)",
|
||||
"os": "macOS 27.0.1 (26A434)",
|
||||
"nativeChecks": 411,
|
||||
"nativePass": true,
|
||||
"checks": [
|
||||
{
|
||||
"name": "formal-version-1.7.3-build49-and-unique-loaded-plugin-path",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "more-space-first-open-complete-without-green-button",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "sidebar-search-grid-footer-and-done-visible",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "list-grid-switch-and-grid-restored",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "green-button-system-zoom-and-restore-remain-aligned",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "warm-close-and-reopen",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "normal-host-quit-and-cold-reopen",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "selected-tlfs-58-files-and-thumbnail-size-preserved",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"name": "shader-and-template-identical-to-1.7.2",
|
||||
"passResult": true
|
||||
}
|
||||
],
|
||||
"targetUserFCP12_3Verified": false,
|
||||
"displaySettingsChangedByAgent": false,
|
||||
"existingLUTFilesAddedOrRemoved": 0,
|
||||
"screenshotsLocalOnly": [
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/before.png",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/after-first-open.png",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/after-cold-open.png"
|
||||
],
|
||||
"limitations": [
|
||||
"Affected user MacBook/FCP12.3 still requires their retest; this fixes the same observed defect reproduced on the local FCP12.4 host.",
|
||||
"No actual PKG installer executed in this iteration; independently installed formal APP verified."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"date": "2026-11-02T12:19:59.683173+00:00",
|
||||
"version": "1.7.1",
|
||||
"build": "46",
|
||||
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"compiledSourceCommit": "58a17de43810798570b4965166d33129d949de3d",
|
||||
"host": "Final Cut Pro 12.4 (454072)",
|
||||
"project": "大鱼调色_1.6_默认映射与链接",
|
||||
"sourceFile": "tlfs.cube",
|
||||
"sourceSHA256": "5ee4eefe92410549abf3e27baf7aea5e74b77101b496af5eddb5ba601bf033fe",
|
||||
"importedBytes": 5229034,
|
||||
"originalAndImportedBytesIdentical": true,
|
||||
"userLibraryCountBefore": 56,
|
||||
"userLibraryCountAfter": 57,
|
||||
"observations": [
|
||||
{
|
||||
"check": "Native file selector imports the original desktop file without an error",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"check": "Browser shows tlfs as 可应用 and after clicking as 已选择",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"check": "Inspector reports 1.7.1 and look0 points to the imported original",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"check": "Rendered test chart visibly changes when tlfs is applied",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"check": "After normal quit and cold reopen, the same LUT path and rendered chart remain",
|
||||
"passResult": true
|
||||
},
|
||||
{
|
||||
"check": "Timeline advances to 00:00:03:24 and stops without an error",
|
||||
"passResult": true
|
||||
}
|
||||
],
|
||||
"sourceLUTRedistributed": false,
|
||||
"limitations": [
|
||||
"This verifies the supplied file and this host version, not every malformed Cube or full FCP/Dayu color-management equivalence."
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"status": "user-confirmed",
|
||||
"version": "1.6.1",
|
||||
"build": "44",
|
||||
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"host": "Final Cut Pro",
|
||||
"confirmedOn": "2026-11-02",
|
||||
"timezone": "Asia/Shanghai",
|
||||
"source": "Explicit user reply in this Codex chat",
|
||||
"question": "1.6.1(44)已安装,3 秒倒计时已验证,也已打开 Final Cut Pro。请在 FCP 中应用“大鱼调色”检查画面和调节;检查结果如何?",
|
||||
"answer": "已确认正常",
|
||||
"scope": "User confirmation of actual FCP use. This record adds acceptance evidence without changing the APP, package, release tag or previous test snapshots."
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"bundlePath": "/Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit",
|
||||
"checks": 395,
|
||||
"checks": 411,
|
||||
"gpu": "Apple M4",
|
||||
"limitations": [
|
||||
"Finite states and a 64x48 frame; live FCP discovery, inspector interaction, timeline persistence and real host export require separate acceptance.",
|
||||
@@ -12,7 +12,7 @@
|
||||
"error": "未提供错误信息",
|
||||
"name": "runtime-directory",
|
||||
"pass": true,
|
||||
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/ED00D426-57B3-45AD-86FA-0A5A8B38E1F2"
|
||||
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E6BAA2C1-4D66-4B4E-A572-648B6B8D49E7"
|
||||
},
|
||||
{
|
||||
"descriptors": 278,
|
||||
@@ -68,6 +68,50 @@
|
||||
"name": "asset-copy-is-independent",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-presentation-attached",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-preserves-host-window-geometry",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-preserves-bridge-resize-policy",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-fills-host-capped-bounds",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-footer-and-grid-fit-capped-bounds",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-tracks-bounds-origin",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-keeps-local-history-isolated",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-close-once-without-visible-test-window",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-displaced-content-aligns-with-window",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-later-content-origin-is-repaired",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "browser-remote-origin-repair-keeps-host-frame-and-hidden-fixture",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"modules": 14,
|
||||
"name": "default-primary-spider-base-expanded-all-eyes-on",
|
||||
@@ -790,6 +834,32 @@
|
||||
"name": "temporary-look-file",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "lut-note-fixtures",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "lut-note-retains-prefix-zero-fills-without-row-shift",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "",
|
||||
"name": "lut-note-metal-render",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "",
|
||||
"name": "lut-note-oracle-metal-render",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"changedComponents": 0,
|
||||
"maxAbsoluteError": 0,
|
||||
"name": "lut-note-metal-exact-canonical-colors",
|
||||
"nonfiniteComponents": 0,
|
||||
"nonzeroComponents": 9832,
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "",
|
||||
"name": "renderer-five-look-pass",
|
||||
@@ -820,7 +890,7 @@
|
||||
"error": "未提供错误信息",
|
||||
"name": "renderer-export-33cube",
|
||||
"pass": true,
|
||||
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/ED00D426-57B3-45AD-86FA-0A5A8B38E1F2/diagnostic-export.cube"
|
||||
"path": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E6BAA2C1-4D66-4B4E-A572-648B6B8D49E7/diagnostic-export.cube"
|
||||
},
|
||||
{
|
||||
"bytes": 1186074,
|
||||
@@ -840,7 +910,7 @@
|
||||
},
|
||||
{
|
||||
"heartbeats": 0,
|
||||
"maximumGapMS": 92.54920833333813,
|
||||
"maximumGapMS": 82.24604166753124,
|
||||
"name": "external-activation-main-loop-responsive",
|
||||
"pass": true
|
||||
},
|
||||
@@ -2067,6 +2137,6 @@
|
||||
"pass": true
|
||||
}
|
||||
],
|
||||
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/ED00D426-57B3-45AD-86FA-0A5A8B38E1F2",
|
||||
"runtimePath": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/verification-runtime/E6BAA2C1-4D66-4B4E-A572-648B6B8D49E7",
|
||||
"scope": "Native model and renderer integration with real Metal/IOSurface textures and fake FxPlug host selectors; no GUI or live host document."
|
||||
}
|
||||
@@ -0,0 +1,403 @@
|
||||
{
|
||||
"results" : [
|
||||
{
|
||||
"name" : "isolated fixtures",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write independent numeric oracle",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "read numeric oracle",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write encoded annotations",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "zero unread channels, ignore note digits, preserve every later row",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated and canonical cubes give exactly the same colors",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "annotated cube thumbnail",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "write invalid numeric fixture",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "notes do not excuse malformed numbers, bare truncation, extra values or text-only rows",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "all annotated encodings import",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
},
|
||||
{
|
||||
"name" : "import retains original annotation bytes",
|
||||
"pass" : true
|
||||
}
|
||||
],
|
||||
"scope" : "Synthetic UTF-8\/16\/32 notes, zero fill without row shifts, exact canonical colors, thumbnails, byte-preserving import, strict invalid-number checks.",
|
||||
"pass" : true,
|
||||
"checks" : 99
|
||||
}
|
||||
+725
-1066
文件差异过大,未显示。
加载差异
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"pass": true,
|
||||
"dimension": 65,
|
||||
"scope": "Read-only replay of Apple's shipped ProCore row reader against every original source row, compared to Dayu's independent float parser. No Apple code or library is used by the product.",
|
||||
"rows": 274625,
|
||||
"maxRGBDifferenceFromApple16BitTable": 1.5259014602974968e-05,
|
||||
"tolerance": 1.5411612115663385e-05,
|
||||
"notedRows": [
|
||||
{
|
||||
"line": 1899,
|
||||
"appleRGB16": [
|
||||
559,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"dayuRGB": [
|
||||
0.008545050397515297,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"line": 2311,
|
||||
"appleRGB16": [
|
||||
45643,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"dayuRGB": [
|
||||
0.6964679956436157,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"sourceFile": "tlfs.cube",
|
||||
"sourceSHA256": "5ee4eefe92410549abf3e27baf7aea5e74b77101b496af5eddb5ba601bf033fe",
|
||||
"originalBytes": 5229034,
|
||||
"hostVersion": "Final Cut Pro 12.4 (454072)",
|
||||
"appleFramework": "/Applications/Final Cut Pro.app/Contents/Frameworks/ProCore.framework/Versions/A/ProCore",
|
||||
"appleFrameworkSHA256": "c4a28b44b421dcbb3916e35d187f3b7efbd69f133c5251b5a899c245e0d9954c",
|
||||
"arm64ReadRowAddress": "0x75700",
|
||||
"arm64FloatReaderAddress": "0x7daf8"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"date": "2026-11-02T12:25:54.358668+00:00",
|
||||
"removed": [
|
||||
"/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-lut-restore-kfvcdmzs",
|
||||
"/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-custom-lut-analysis-8fusx4rh",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/numeric-oracle.cube",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/verify-annotations",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/verify-library",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/lut-note-qa/verify-encoding",
|
||||
"/Volumes/备份/大鱼调色-1.7.1.pkg"
|
||||
],
|
||||
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"formalVersion": "1.7.1 (46)",
|
||||
"currentInstaller": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.1.pkg",
|
||||
"deliveryLockReleased": true,
|
||||
"sourceLUTUnchanged": true,
|
||||
"importedOriginalKept": true,
|
||||
"generatedAppCandidatesAfterCleanup": [
|
||||
"/Library/Plug-Ins/FxPlug/大鱼调色.app"
|
||||
],
|
||||
"scope": "Current product build root/project, known installation locations and this task temp/download roots. No claim about every offline volume; historical installers, original LUT and user library retained."
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"date": "2026-11-02T12:16:03.860516+00:00",
|
||||
"version": "1.7.1",
|
||||
"compiledSource": "58a17de43810798570b4965166d33129d949de3d",
|
||||
"formalApp": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"sourceFile": "tlfs.cube",
|
||||
"sourceSHA256": "5ee4eefe92410549abf3e27baf7aea5e74b77101b496af5eddb5ba601bf033fe",
|
||||
"sourceUnchanged": true,
|
||||
"installedNativeChecks": 407,
|
||||
"results": [
|
||||
{
|
||||
"name": "lut-note-fixtures",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "lut-note-retains-prefix-zero-fills-without-row-shift",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "",
|
||||
"name": "lut-note-metal-render",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "",
|
||||
"name": "lut-note-oracle-metal-render",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"changedComponents": 0,
|
||||
"maxAbsoluteError": 0,
|
||||
"name": "lut-note-metal-exact-canonical-colors",
|
||||
"nonfiniteComponents": 0,
|
||||
"nonzeroComponents": 9832,
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "未提供错误信息",
|
||||
"name": "user-lut-isolated-import",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"dimension": 65,
|
||||
"name": "user-lut-exact-canonical-table",
|
||||
"pass": true,
|
||||
"rows": 274625
|
||||
},
|
||||
{
|
||||
"name": "user-lut-thumbnail",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "",
|
||||
"name": "user-lut-metal-render",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"error": "",
|
||||
"name": "user-lut-oracle-metal-render",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"changedComponents": 0,
|
||||
"maxAbsoluteError": 0,
|
||||
"name": "user-lut-metal-exact-canonical-colors",
|
||||
"nonfiniteComponents": 0,
|
||||
"nonzeroComponents": 9832,
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "user-lut-original-and-import-bytes-preserved",
|
||||
"pass": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"compiledSourceCommit": "58a17de43810798570b4965166d33129d949de3d",
|
||||
"filesCompared": 348,
|
||||
"fsck": "strict/full passed",
|
||||
"restoredSourceTests": 99,
|
||||
"restoredTestResult": "PASS 101 checks",
|
||||
"lfs": false,
|
||||
"submodules": false,
|
||||
"restoreRoot": "/var/folders/7k/rzlzc30s5r3641f3qhbrw5xw0000gn/T/dayu-lut-restore-kfvcdmzs",
|
||||
"releaseTag": "v1.7.1-lut-notes-20261102",
|
||||
"releaseCommit": "14cca24de6901b1d1d57d6a3ff6eccaf12f6a77c",
|
||||
"releaseFilesCompared": 351,
|
||||
"releaseSourceMatchesCompiledCommit": true,
|
||||
"restoreCloneRemoved": true,
|
||||
"releaseTagVerified": true
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"status": "draft-browser-download-verified",
|
||||
"repository": "dayu/dayu-color",
|
||||
"repositoryID": 52,
|
||||
"private": false,
|
||||
"tag": "v1.7.1-lut-notes-20261102",
|
||||
"releaseCommit": "14cca24de6901b1d1d57d6a3ff6eccaf12f6a77c",
|
||||
"releaseID": 377,
|
||||
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.1-lut-notes-20261102",
|
||||
"prerelease": true,
|
||||
"assetID": 21,
|
||||
"assetName": "大鱼调色-1.7.1.pkg",
|
||||
"downloadURL": "https://dayu.media/git/attachments/9a429225-83f1-480f-ae7b-ec019f57ed8d",
|
||||
"bytes": 40902664,
|
||||
"sha256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
|
||||
"downloadedFile": "/Volumes/备份/大鱼调色-1.7.1.pkg",
|
||||
"downloadedBytes": 40902664,
|
||||
"downloadedSHA256": "533272ae3a08fb7788c24e6180569f8e0fab0b52ed0523ac31634ad4ae39c791",
|
||||
"verification": "Normal logged-in browser full draft download, followed by byte count and SHA-256 comparison."
|
||||
}
|
||||
@@ -33,7 +33,7 @@
|
||||
},
|
||||
"sandboxDisabled": true,
|
||||
"nativeChecks": 395,
|
||||
"hostVerification": "awaiting-user-confirmation",
|
||||
"hostVerification": "verification/HostUserConfirmation1.6.1.json",
|
||||
"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": [
|
||||
@@ -48,7 +48,6 @@
|
||||
"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"
|
||||
],
|
||||
@@ -103,5 +102,11 @@
|
||||
"2050 /Library/Plug-Ins/FxPlug/大鱼调色.app/Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/MacOS/大鱼调色 XPC Service"
|
||||
],
|
||||
"shaderSHA256": "6ec98b85aeb841f9988a4b66e3e5fba9e34d5ab3d7542c9205b0480c77f9ac6d",
|
||||
"renderingSourceUnchanged": true
|
||||
"renderingSourceUnchanged": true,
|
||||
"finalRelease": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.1-main-app-20261102",
|
||||
"cleanupRecord": "verification/MainAppCleanup1.6.1.json",
|
||||
"releaseRecoveryRecord": "verification/MainAppRecovery1.6.1.json",
|
||||
"finalPackageSHA256": "d075373d672b8f0146b98f3151c9f74cd6b97e8a1081e0d0796f53af7f291da0",
|
||||
"kernelIdenticalToPreviousFormalBuild": true,
|
||||
"hostVerificationStatus": "user-confirmed"
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"version": "1.6.1",
|
||||
"build": "44",
|
||||
"formalPath": "/Library/Plug-Ins/FxPlug/大鱼调色.app",
|
||||
"removed": [
|
||||
"/Library/Plug-Ins/FxPlug/.dayu-color-previous-b287e77bfb9f4efea6d46f3443137d3e.app",
|
||||
"/Library/Plug-Ins/FxPlug/.dayu-color-previous-69e5f09f71bd4afcbd3a8b0420c1e8b7.app",
|
||||
"/Library/Plug-Ins/FxPlug/.dayu-color-previous-67588f17dd924918bbb4f44feb8585d4.app",
|
||||
"/Volumes/备份/大鱼调色-1.6.1.pkg",
|
||||
"/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/recovery-main-app-1.6.1"
|
||||
],
|
||||
"productRegistry": [
|
||||
"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"
|
||||
],
|
||||
"generatedBuildAppAndLoosePluginAbsent": true,
|
||||
"submissionZIPAbsent": true,
|
||||
"retainedCurrentPackage": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.1.pkg",
|
||||
"retainedHistoricalPackages": true,
|
||||
"privateQAMediaAndPresetsRetained": true,
|
||||
"scope": "Task build cache, task rollback candidates, task recovery clone, verified browser download and known install locations; no whole-disk uniqueness claim."
|
||||
}
|
||||
@@ -7,5 +7,11 @@
|
||||
"gitFsck": "full strict passed",
|
||||
"LFS": false,
|
||||
"submodules": false,
|
||||
"scope": "Compiled source recovered from remote; final release tag recovery follows packaging."
|
||||
"scope": "Compiled source and final release tag independently recovered from the remote; every file byte-compared and full/strict fsck passed.",
|
||||
"releaseTag": "v1.6.1-main-app-20261102",
|
||||
"releaseTagCommit": "5d9a4ad7072c1d30f9f8d589719939e2efbcd53c",
|
||||
"releaseRecoveredFiles": 304,
|
||||
"releaseEveryFileByteCompared": true,
|
||||
"appSourceMatchesCompiledNode": true,
|
||||
"appSourceFilesCompared": 102
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
{
|
||||
"observedBefore": {
|
||||
"phase": "attached-before-sdk-reply",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{789, 521}, {1800, 1200}}",
|
||||
"parentFrame": "{{789, 521}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 100}, {1800, 1200}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1800, 1200}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{789, 521}, {1800, 1200}}",
|
||||
"screenRect": "{{789, 621}, {1800, 1200}}"
|
||||
}
|
||||
},
|
||||
"observedAfterGreenButton": {
|
||||
"phase": "NSViewFrameDidChangeNotification",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{0, 0}, {1800, 1200}}",
|
||||
"parentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 106}, {1794, 1194}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1794, 1194}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"screenRect": "{{0, 106}, {1800, 1200}}"
|
||||
}
|
||||
},
|
||||
"fixedFirstOpen": [
|
||||
{
|
||||
"phase": "before-content-origin-alignment",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{789, 521}, {1800, 1200}}",
|
||||
"parentFrame": "{{789, 521}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 100}, {1800, 1200}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1800, 1200}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{789, 521}, {1800, 1200}}",
|
||||
"screenRect": "{{789, 621}, {1800, 1200}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "attached-before-sdk-reply",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{0, 0}, {1800, 1200}}",
|
||||
"parentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 100}, {1800, 1200}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1800, 1200}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"screenRect": "{{0, 100}, {1800, 1200}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "settled",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{0, 0}, {1800, 1200}}",
|
||||
"parentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 100}, {1800, 1200}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1800, 1200}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"screenRect": "{{0, 100}, {1800, 1200}}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"fixedColdOpen": [
|
||||
{
|
||||
"phase": "before-content-origin-alignment",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{789, 521}, {1800, 1200}}",
|
||||
"parentFrame": "{{789, 521}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 100}, {1800, 1200}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1800, 1200}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{789, 521}, {1800, 1200}}",
|
||||
"screenRect": "{{789, 621}, {1800, 1200}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "attached-before-sdk-reply",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{0, 0}, {1800, 1200}}",
|
||||
"parentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 100}, {1800, 1200}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1800, 1200}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"screenRect": "{{0, 100}, {1800, 1200}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"phase": "settled",
|
||||
"rootFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"rootWindowRect": "{{0, 0}, {1800, 1200}}",
|
||||
"parentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"parentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"serviceWindow": {
|
||||
"contentBounds": "{{0, 0}, {1800, 1200}}",
|
||||
"frame": "{{0, 100}, {1800, 1200}}",
|
||||
"contentLayoutRect": "{{0, 0}, {1800, 1200}}",
|
||||
"backingScaleFactor": 1,
|
||||
"class": "NSServiceViewControllerWindow",
|
||||
"contentFrame": "{{0, 0}, {1800, 1200}}",
|
||||
"screenRect": "{{0, 100}, {1800, 1200}}"
|
||||
}
|
||||
}
|
||||
],
|
||||
"screens": [
|
||||
{
|
||||
"frame": "{{0, 0}, {3840, 2160}}",
|
||||
"backingScaleFactor": 1,
|
||||
"visibleFrame": "{{0, 0}, {3840, 2130}}"
|
||||
},
|
||||
{
|
||||
"frame": "{{3840, 1080}, {1920, 1080}}",
|
||||
"backingScaleFactor": 2,
|
||||
"visibleFrame": "{{3840, 1169}, {1920, 961}}"
|
||||
}
|
||||
],
|
||||
"interpretation": "The bridge content view itself has a stale origin; child frame==parent bounds did not imply alignment to the visible window. Public AppKit coordinate conversion realigns only that origin. No physical-pixel multiplier or host-window resizing."
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"compiledSource": "2688b22f99b5118153b94a43f6c184a204d4ce7e",
|
||||
"remote": "https://dayu.media/git/dayu/dayu-color.git",
|
||||
"sourceFilesCompared": 368,
|
||||
"allCommittedFileBytesMatch": true,
|
||||
"fullStrictFsck": true,
|
||||
"restoreDirectory": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/more-space-qa/recovery-1.7.3",
|
||||
"status": "source restored and native geometry rebuilt",
|
||||
"geometryChecks": 27,
|
||||
"geometryPass": true
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"baselineSource": "3ba2c0b823120da65e9b08f32928e73f7c6e962c",
|
||||
"baselineFailures": [
|
||||
"displaced service content is aligned to the actual window viewport",
|
||||
"a later bridge-origin displacement is realigned without a green-button resize",
|
||||
"content-origin repair also respects nonzero content bounds"
|
||||
],
|
||||
"geometryChecks": 27,
|
||||
"geometryPass": true,
|
||||
"browserChecks": 23,
|
||||
"browserPass": true,
|
||||
"scope": "Hidden native AppKit reproduction using the observed service content origin (789,521); visible final host validation still pending."
|
||||
}
|
||||
+16
-16
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.6.1.pkg",
|
||||
"sha256": "d075373d672b8f0146b98f3151c9f74cd6b97e8a1081e0d0796f53af7f291da0",
|
||||
"bytes": 40854422,
|
||||
"package": "/Volumes/备份/大鱼调色/发行包/大鱼调色-1.7.3.pkg",
|
||||
"sha256": "f7a6a5dbd38139c2d401a85aa83abd36efab076481c73a0c822e220f2c212324",
|
||||
"bytes": 40908193,
|
||||
"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.1",
|
||||
"build": "44"
|
||||
"version": "1.7.3",
|
||||
"build": "49"
|
||||
},
|
||||
{
|
||||
"source": "/Users/mac/Library/Caches/CodexBuilds/com.dayu.color/pkg-inputs/大鱼调色",
|
||||
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.21611cce-8ce5-4aba-b084-8c1502807f9e/96DEBA59-1D5C-4848-AB60-9D8772D73B72/大鱼调色"
|
||||
"payload": "Library/Application Support/PKGForge/Payload/com.dayu.color.installer.e1cbaa6d-3e2e-4155-aa9c-8776b42bec79/5788D868-23DA-4949-BD2C-C2BC14D3D126/大鱼调色"
|
||||
}
|
||||
],
|
||||
"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",
|
||||
"signature": "Package \"大鱼调色-1.7.3.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 14:48:50 +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.7.3.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",
|
||||
"createdDate": "2026-11-02T14:48:52.300Z",
|
||||
"name": "大鱼调色-1.7.3.pkg",
|
||||
"status": "Accepted",
|
||||
"name": "大鱼调色-1.6.1.pkg",
|
||||
"id": "7315225d-a350-4c65-9e87-5784035ea018"
|
||||
"message": "Successfully received submission info",
|
||||
"id": "4d2d6a3c-4dba-4711-b2d0-a59707ff72ce"
|
||||
},
|
||||
"appCompiledSource": "90d6022520c59ea34f42b511daee85ac2936cfd9",
|
||||
"appBuild": "44",
|
||||
"appCompiledSource": "2688b22f99b5118153b94a43f6c184a204d4ce7e",
|
||||
"appBuild": "49",
|
||||
"packageBuilderRemote": "https://dayu.media/git/dayu/pkg-forge.git",
|
||||
"packageBuilderCommit": "eb53707c0e67d8ddeab8c1270bb079f1050cfafe",
|
||||
"templateSHA256": {
|
||||
@@ -59,6 +59,6 @@
|
||||
"large.png": "ab12611e8801cff86332ccc505a4cffa0c1120541c2efb9bb9908be2c9fe631a",
|
||||
"small.png": "41fec3138aee904fc39d6982e6fde809243ffec55298dbfe966f4f48d89caf8a"
|
||||
},
|
||||
"installedAppHostAcceptance": "awaiting-user-confirmation",
|
||||
"installScope": "本轮生成并展开验包,未运行系统安装器;正式APP的UI、登记、3秒倒计时、退出及395项原生检查通过。FCP实际使用由用户确认。"
|
||||
"installedAppHostAcceptance": "verification/HostLUTLoading.json",
|
||||
"installScope": "本轮仅生成并验包,未再次执行系统安装;正式 APP 已有独立宿主验收。"
|
||||
}
|
||||
+12
-17
@@ -3,22 +3,17 @@
|
||||
"repository": "dayu/dayu-color",
|
||||
"repositoryID": 52,
|
||||
"private": false,
|
||||
"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",
|
||||
"tag": "v1.7.2-browser-geometry-20261102",
|
||||
"releaseCommit": "7720d9a042271ad0147992a7d476b5c06151f616",
|
||||
"releaseID": 378,
|
||||
"releaseURL": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.7.2-browser-geometry-20261102",
|
||||
"prerelease": true,
|
||||
"assetID": 22,
|
||||
"assetName": "大鱼调色-1.7.2.pkg",
|
||||
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.7.2-browser-geometry-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.7.2.pkg",
|
||||
"bytes": 40904714,
|
||||
"sha256": "dfaf291f894189ebdca66701b63a7c6679aab3e6f69db7991ae29284de75ddb6",
|
||||
"existingAssetReused": true,
|
||||
"verification": "Authenticated full download SHA-256 and byte count, then release/asset read-back.",
|
||||
"credentialSource": "macOS Keychain: dayu-git-api",
|
||||
"version": "1.6.0",
|
||||
"build": "39",
|
||||
"appCompiledSource": "e5affd3f097fc96f87f41be8e1a3f131ed01daeb",
|
||||
"draftDownloadVerification": "verification/ReleaseDraftDownload1.6.0.json",
|
||||
"hostVerification": "verification/HostPrintLooks1.6.0.json",
|
||||
"repositoryVisibilityUnchanged": true
|
||||
"verification": "Authenticated full download SHA-256 and byte count, then beta release/asset read-back; original prerelease metadata preserved.",
|
||||
"credentialSource": "macOS Keychain: dayu-git-api"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"id": 374,
|
||||
"tag_name": "v1.6.1-main-app-20261102",
|
||||
"draft": true,
|
||||
"html_url": "https://dayu.media/git/dayu/dayu-color/releases/tag/v1.6.1-main-app-20261102",
|
||||
"target_commitish": "5d9a4ad7072c1d30f9f8d589719939e2efbcd53c",
|
||||
"assets": [
|
||||
{
|
||||
"id": 19,
|
||||
"name": "大鱼调色-1.6.1.pkg",
|
||||
"size": 40854422,
|
||||
"browser_download_url": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.6.1-main-app-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.6.1.pkg"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"passResult": true,
|
||||
"releaseID": 374,
|
||||
"assetID": 19,
|
||||
"downloadURL": "https://dayu.media/git/dayu/dayu-color/releases/download/v1.6.1-main-app-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.6.1.pkg",
|
||||
"downloadedFile": "/Volumes/备份/大鱼调色-1.6.1.pkg",
|
||||
"bytes": 40854422,
|
||||
"sha256": "d075373d672b8f0146b98f3151c9f74cd6b97e8a1081e0d0796f53af7f291da0",
|
||||
"download": "Normal authenticated Microsoft Edge session; completed UI download independently hashed",
|
||||
"browserSourceMetadata": [
|
||||
"https://dayu.media/git/dayu/dayu-color/releases/download/v1.6.1-main-app-20261102/%E5%A4%A7%E9%B1%BC%E8%B0%83%E8%89%B2-1.6.1.pkg"
|
||||
]
|
||||
}
|
||||
@@ -123,6 +123,7 @@
|
||||
Plugin/Resources/InputLUTs/sony_slog3_sgamut3cine_to_rec709.dylut,
|
||||
"Plugin/Resources/THIRD-PARTY-NOTICES.txt",
|
||||
"Wrapper Application/AppDelegate.m",
|
||||
"Wrapper Application/DYBetaUpdater.mm",
|
||||
"Wrapper Application/Info.plist",
|
||||
"Wrapper Application/main.m",
|
||||
"Wrapper Application/Resources/DayuColor.icns",
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#import "DYRenderer.h"
|
||||
#import "DYAutoGrade.h"
|
||||
#import "DYLUTLibrary.h"
|
||||
#import "DYLUTBrowser.h"
|
||||
#import "DYInspector.h"
|
||||
#include "DYSpiderState.h"
|
||||
#include <string>
|
||||
@@ -198,6 +199,34 @@ extern "C" int DYRunDiagnostics(void) { @autoreleasepool {
|
||||
DYAssetState *copy=[[assets copy]autorelease];copy.paths=@{};run.record(@"asset-copy-is-independent",assets.paths.count==2&©.paths.count==0);
|
||||
// Exercise the real AppKit actions against a separate, in-memory host.
|
||||
[NSApplication sharedApplication];
|
||||
DYLUTLibrary *geometryLibrary=[[[DYLUTLibrary alloc]initWithRootURL:[NSURL fileURLWithPath:[runtime stringByAppendingPathComponent:@"browser-geometry"]]]autorelease];
|
||||
NSString *geometryKey=[@"com.dayu.color.lookLUTPreview.windowFrame|" stringByAppendingString:geometryLibrary.rootURL.path],*staleGeometry=NSStringFromRect(NSMakeRect(-9000,8000,1800,1228));
|
||||
[NSUserDefaults.standardUserDefaults setObject:staleGeometry forKey:geometryKey];
|
||||
NSPanel *geometryHost=[[[NSPanel alloc]initWithContentRect:NSMakeRect(80,100,900,620) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable backing:NSBackingStoreBuffered defer:NO]autorelease];
|
||||
NSView *geometryParent=[[[NSView alloc]initWithFrame:geometryHost.contentView.bounds]autorelease];geometryParent.autoresizesSubviews=NO;[geometryHost.contentView addSubview:geometryParent];
|
||||
NSRect geometryFrame=geometryHost.frame;NSSize geometryMin=geometryHost.contentMinSize,geometryMax=geometryHost.contentMaxSize;
|
||||
__block NSUInteger geometryCloses=0;DYLUTBrowser *geometryBrowser=[[[DYLUTBrowser alloc]initWithLibrary:geometryLibrary preview:nil selectedPath:nil palette:@{} selection:nil]autorelease];
|
||||
[geometryBrowser showInRemoteParent:geometryParent close:^{geometryCloses++;}];double geometryDeadline=NSProcessInfo.processInfo.systemUptime+2;
|
||||
while([geometryBrowser valueForKey:@"presentationWindow"]!=geometryHost&&NSProcessInfo.processInfo.systemUptime<geometryDeadline)[[NSRunLoop mainRunLoop]runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:.005]];
|
||||
run.need(@"browser-remote-presentation-attached",[geometryBrowser valueForKey:@"presentationWindow"]==geometryHost);
|
||||
run.record(@"browser-remote-preserves-host-window-geometry",NSEqualRects(geometryHost.frame,geometryFrame)&&NSEqualSizes(geometryHost.contentMinSize,geometryMin)&&NSEqualSizes(geometryHost.contentMaxSize,geometryMax));
|
||||
run.record(@"browser-remote-preserves-bridge-resize-policy",!geometryParent.autoresizesSubviews);
|
||||
NSView *geometryRoot=[geometryBrowser valueForKey:@"root"];[geometryParent setFrameSize:NSMakeSize(576,336)];
|
||||
run.record(@"browser-remote-fills-host-capped-bounds",NSEqualRects(geometryRoot.frame,geometryParent.bounds));
|
||||
NSView *geometryDone=[geometryBrowser valueForKey:@"done"],*geometrySplit=[geometryBrowser valueForKey:@"splitView"];
|
||||
run.record(@"browser-remote-footer-and-grid-fit-capped-bounds",NSContainsRect(geometryRoot.bounds,geometryDone.frame)&&NSContainsRect(geometryRoot.bounds,geometrySplit.frame));
|
||||
[geometryParent setBoundsOrigin:NSMakePoint(17,23)];run.record(@"browser-remote-tracks-bounds-origin",NSEqualRects(geometryRoot.frame,geometryParent.bounds));
|
||||
[geometryHost setFrame:NSMakeRect(140,160,1000,700) display:NO];run.record(@"browser-remote-keeps-local-history-isolated",[[NSUserDefaults.standardUserDefaults stringForKey:geometryKey]isEqual:staleGeometry]);
|
||||
[geometryBrowser close];[geometryBrowser close];run.record(@"browser-remote-close-once-without-visible-test-window",geometryCloses==1&&!geometryHost.visible);
|
||||
NSPanel *serviceGeometry=[[[NSPanel alloc]initWithContentRect:NSMakeRect(60,100,1800,1200) styleMask:NSWindowStyleMaskBorderless backing:NSBackingStoreBuffered defer:NO]autorelease];
|
||||
NSView *serviceContent=serviceGeometry.contentView;[serviceContent setFrameOrigin:NSMakePoint(789,521)];NSRect serviceFrame=serviceGeometry.frame;
|
||||
DYLUTBrowser *serviceBrowser=[[[DYLUTBrowser alloc]initWithLibrary:geometryLibrary preview:nil selectedPath:nil palette:@{} selection:nil]autorelease];[serviceBrowser showInRemoteParent:serviceContent close:nil];
|
||||
NSView *serviceRoot=[serviceBrowser valueForKey:@"root"];NSRect serviceViewport=[serviceGeometry convertRectFromScreen:[serviceGeometry contentRectForFrameRect:serviceGeometry.frame]];
|
||||
run.record(@"browser-remote-displaced-content-aligns-with-window",NSEqualRects([serviceRoot convertRect:serviceRoot.bounds toView:nil],serviceViewport));
|
||||
[serviceContent setFrameOrigin:NSMakePoint(123,77)];
|
||||
run.record(@"browser-remote-later-content-origin-is-repaired",NSEqualRects([serviceRoot convertRect:serviceRoot.bounds toView:nil],serviceViewport));
|
||||
run.record(@"browser-remote-origin-repair-keeps-host-frame-and-hidden-fixture",NSEqualRects(serviceGeometry.frame,serviceFrame)&&!serviceGeometry.visible);[serviceBrowser close];
|
||||
for(NSString *key in NSUserDefaults.standardUserDefaults.dictionaryRepresentation.allKeys)if([key containsString:geometryLibrary.rootURL.path])[NSUserDefaults.standardUserDefaults removeObjectForKey:key];
|
||||
DYDiagnosticManager *uiHost=[[[DYDiagnosticManager alloc]init]autorelease];DYCreateParameters(uiHost,nil);
|
||||
DYInspector *inspector=[[[DYInspector alloc]initWithAPIManager:uiHost]autorelease];[inspector refresh];
|
||||
NSArray *cards=[inspector valueForKey:@"cards"];BOOL initialUI=YES;
|
||||
@@ -362,6 +391,29 @@ extern "C" int DYRunDiagnostics(void) { @autoreleasepool {
|
||||
run.record(@"analysis-applies-selected-input-LUT",analysisDifferent&&analysisChanges>100,@{@"changedComponents":@(analysisChanges),@"maxAbsoluteError":@(analysisMaximum)});
|
||||
NSString *lookFile=[runtime stringByAppendingPathComponent:@"diagnostic-look.cube"];NSMutableString *cube=[NSMutableString stringWithString:@"TITLE \"Self test look\"\nLUT_3D_SIZE 2\nDOMAIN_MIN 0 0 0\nDOMAIN_MAX 1 1 1\n"];
|
||||
for(int b=0;b<2;b++)for(int g=0;g<2;g++)for(int r=0;r<2;r++)[cube appendFormat:@"%.8f %.8f %.8f\n",.7f*r+.1f,.8f*g+.05f,.85f*b+.02f];error=nil;run.need(@"temporary-look-file",[cube writeToFile:lookFile atomically:YES encoding:NSUTF8StringEncoding error:&error],@{@"error":reason(error)});
|
||||
NSString *noteFile=[runtime stringByAppendingPathComponent:@"noted.cube"],*noteOracle=[runtime stringByAppendingPathComponent:@"note-oracle.cube"];
|
||||
NSString *noteRows=@"LUT_3D_SIZE 2\n0.25 v3文字 100 分\n1 0 说明99\n0 1 0 后记123\n1 1 0\n0 0 1\n1 0 1\n0 1 1\n1 1 1\n";
|
||||
NSString *oracleRows=@"LUT_3D_SIZE 2\n0.25 0 0\n1 0 0\n0 1 0\n1 1 0\n0 0 1\n1 0 1\n0 1 1\n1 1 1\n";
|
||||
run.need(@"lut-note-fixtures",[noteRows writeToFile:noteFile atomically:YES encoding:NSUTF8StringEncoding error:&error]&&[oracleRows writeToFile:noteOracle atomically:YES encoding:NSUTF8StringEncoding error:&error]);
|
||||
std::vector<float> notedTable,oracleTable;NSUInteger notedSide=0,oracleSide=0;
|
||||
run.record(@"lut-note-retains-prefix-zero-fills-without-row-shift",DYLUTReadCube(noteFile,notedTable,notedSide,&error)&&DYLUTReadCube(noteOracle,oracleTable,oracleSide,&error)&¬edSide==2&&oracleSide==2&¬edTable==oracleTable);
|
||||
u=defaults;u.lookSectionEnabled=1;u.postLUTStrength=1;
|
||||
Pixels notePixels=render(run,renderer,source,destination,gpu,u,@{@"look0":noteFile},@"lut-note-metal-render");
|
||||
Pixels oraclePixels=render(run,renderer,source,destination,gpu,u,@{@"look0":noteOracle},@"lut-note-oracle-metal-render");
|
||||
Difference noteDelta=difference(notePixels,oraclePixels);run.record(@"lut-note-metal-exact-canonical-colors",noteDelta.nonfinite==0&¬eDelta.maximum==0,measure(noteDelta));
|
||||
NSString *userLUT=NSProcessInfo.processInfo.environment[@"DY_DIAGNOSTIC_LUT_FILE"],*userOracle=NSProcessInfo.processInfo.environment[@"DY_DIAGNOSTIC_LUT_ORACLE"];
|
||||
if(userLUT.length&&userOracle.length){
|
||||
NSData *original=[NSData dataWithContentsOfFile:userLUT];DYLUTLibrary *isolated=[[[DYLUTLibrary alloc]initWithRootURL:[NSURL fileURLWithPath:[runtime stringByAppendingPathComponent:@"user-lut-library"]]]autorelease];
|
||||
NSArray *items=[isolated importURLs:@[[NSURL fileURLWithPath:userLUT]] error:&error];
|
||||
run.need(@"user-lut-isolated-import",items.count==1,@{@"error":reason(error)});
|
||||
NSString *imported=items[0][@"path"];std::vector<float> userTable,userExpected;NSUInteger userSide=0,expectedSide=0;
|
||||
run.record(@"user-lut-exact-canonical-table",DYLUTReadCube(imported,userTable,userSide,&error)&&DYLUTReadCube(userOracle,userExpected,expectedSide,&error)&&userSide==expectedSide&&userTable==userExpected,@{@"dimension":@(userSide),@"rows":@(userTable.size()/4)});
|
||||
run.record(@"user-lut-thumbnail",DYLUTThumbnail(imported,nil,0,0,NSMakeSize(160,90),&error)!=nil);
|
||||
Pixels actual=render(run,renderer,source,destination,gpu,u,@{@"look0":imported},@"user-lut-metal-render");
|
||||
Pixels expected=render(run,renderer,source,destination,gpu,u,@{@"look0":userOracle},@"user-lut-oracle-metal-render");
|
||||
Difference delta=difference(actual,expected);run.record(@"user-lut-metal-exact-canonical-colors",delta.nonfinite==0&&delta.maximum==0,measure(delta));
|
||||
run.record(@"user-lut-original-and-import-bytes-preserved",original&&[original isEqual:[NSData dataWithContentsOfFile:userLUT]]&&[original isEqual:[NSData dataWithContentsOfFile:imported]]);
|
||||
}
|
||||
NSDictionary *paths=@{@"look0":lookFile,@"look1":lookFile,@"look2":lookFile,@"look3":lookFile,@"look4":lookFile};u=defaults;u.lookSectionEnabled=1;u.postLUTStrength=.35f;u.extraPostLUTStrengths=(DYFloat4){.4f,.5f,.6f,.7f};Pixels looks=render(run,renderer,source,destination,gpu,u,paths,@"renderer-five-look-pass");Difference looksDifference=difference(neutral,looks);run.record(@"five-look-mixes-affect-frame",looksDifference.nonfinite==0&&looksDifference.different>100,measure(looksDifference));
|
||||
checkFoldedGroup(u,offsetof(DYUniforms,lookSectionEnabled),paths,@"disabled-look-bypasses-retained-LUTs");
|
||||
NSURL *exportURL=[NSURL fileURLWithPath:[runtime stringByAppendingPathComponent:@"diagnostic-export.cube"]];error=nil;run.need(@"renderer-export-33cube",[renderer exportLUT:exportURL uniforms:u paths:paths error:&error],@{@"error":reason(error),@"path":exportURL.path});
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#import "DYInspector.h"
|
||||
#import "../Shared/DYBetaDiagnostics.h"
|
||||
#import "DYModel.h"
|
||||
#import "DYToolState.h"
|
||||
#import "DYAutoGrade.h"
|
||||
@@ -447,6 +448,7 @@ static NSImage *DYWheelImage(void) {
|
||||
return [self initWithAPIManager:manager renderer:nil];
|
||||
}
|
||||
- (instancetype)initWithAPIManager:(id<PROAPIAccessing>)manager renderer:(DYRenderer *)renderer {
|
||||
uint64_t beta=DYBetaSpanBegin(@"inspector_create",nil);
|
||||
if((self=[super initWithFrame:NSMakeRect(0,0,360,780)])) {
|
||||
_assetLoads=[NSMutableDictionary new];_assetLoadIDs=[NSMutableDictionary new];_manager=manager; _renderer=[renderer retain];_library=[DYLUTLibrary new];_tabs=[NSMutableDictionary new];_visibleLooks=1;
|
||||
_embedded=[manager isKindOfClass:DYToolManager.class];if(_embedded)[(id)_manager retain];
|
||||
@@ -491,7 +493,7 @@ static NSImage *DYWheelImage(void) {
|
||||
[self setAccessibilityLabel:@"大鱼调色检查器"];
|
||||
[self setNeedsLayout:YES];
|
||||
}
|
||||
return self;
|
||||
DYBetaSpanEnd(beta,nil);return self;
|
||||
}
|
||||
- (void)dealloc {
|
||||
[self graphicGesture:NO title:nil];_spiderPanel.delegate=nil;
|
||||
@@ -754,6 +756,7 @@ static NSImage *DYWheelImage(void) {
|
||||
if(_refreshing||!_manager)return;
|
||||
id<FxCustomParameterActionAPI_v4> action=[self actionAPI]; if(!action)return;
|
||||
_refreshing=YES;
|
||||
uint64_t beta=DYBetaSpanBegin(@"inspector_refresh",nil);
|
||||
BOOL groupingChanged=NO;
|
||||
[action startAction:self];
|
||||
@try {
|
||||
@@ -813,6 +816,7 @@ static NSImage *DYWheelImage(void) {
|
||||
// Remote layout/accessibility can re-enter the host. Let the parameter
|
||||
// action and current callback unwind before notifying the remote view.
|
||||
if(!_embedded)[self synchronizeTools];
|
||||
DYBetaSpanEnd(beta,nil);
|
||||
if(groupingChanged)dispatch_async(dispatch_get_main_queue(),^{NSAccessibilityPostNotification(self,NSAccessibilityLayoutChangedNotification);});
|
||||
}
|
||||
- (void)postChanged { [[NSNotificationCenter defaultCenter] postNotificationName:@"DYModelChanged" object:_embedded?[(DYToolManager*)_manager host]:_manager]; }
|
||||
|
||||
+82
-9
@@ -21,6 +21,41 @@ static NSString *const DYBrowserSidebarPreference=@"com.dayu.color.lookLUTPrevie
|
||||
static NSString *const DYBrowserRecentFolder=@"@recent";
|
||||
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.
|
||||
static void DYBrowserGeometrySample(NSView *root,NSString *phase){
|
||||
if(![NSUserDefaults.standardUserDefaults boolForKey:@"DYBrowserGeometryDiagnostics"]||!root)return;
|
||||
NSMutableArray *views=[NSMutableArray array];
|
||||
for(NSView *view=root;view&&views.count<8;view=view.superview){
|
||||
NSMutableDictionary *sample=[NSMutableDictionary dictionaryWithDictionary:@{
|
||||
@"class":NSStringFromClass(view.class),@"frame":NSStringFromRect(view.frame),@"bounds":NSStringFromRect(view.bounds),
|
||||
@"visibleRect":NSStringFromRect(view.visibleRect),@"windowRect":NSStringFromRect([view convertRect:view.bounds toView:nil]),
|
||||
@"flipped":@(view.flipped),@"autoresizesSubviews":@(view.autoresizesSubviews),@"autoresizingMask":@(view.autoresizingMask),
|
||||
@"frameRotation":@(view.frameRotation),@"boundsRotation":@(view.boundsRotation),@"wantsLayer":@(view.wantsLayer)}];
|
||||
if(view.layer){CALayer *layer=view.layer;CATransform3D t=layer.transform;sample[@"layer"]=@{
|
||||
@"frame":NSStringFromRect(NSRectFromCGRect(layer.frame)),@"bounds":NSStringFromRect(NSRectFromCGRect(layer.bounds)),
|
||||
@"position":NSStringFromPoint(NSPointFromCGPoint(layer.position)),@"anchorPoint":NSStringFromPoint(NSPointFromCGPoint(layer.anchorPoint)),
|
||||
@"contentsScale":@(layer.contentsScale),@"geometryFlipped":@(layer.geometryFlipped),
|
||||
@"transform":@[@(t.m11),@(t.m12),@(t.m21),@(t.m22),@(t.m41),@(t.m42)]};}
|
||||
[views addObject:sample];
|
||||
}
|
||||
NSMutableDictionary *record=[NSMutableDictionary dictionaryWithDictionary:@{@"phase":phase,@"time":@(NSDate.timeIntervalSinceReferenceDate),@"views":views}];
|
||||
NSWindow *window=root.window;
|
||||
if(window){record[@"window"]=@{@"class":NSStringFromClass(window.class),@"frame":NSStringFromRect(window.frame),
|
||||
@"contentFrame":NSStringFromRect(window.contentView.frame),@"contentBounds":NSStringFromRect(window.contentView.bounds),
|
||||
@"contentLayoutRect":NSStringFromRect(window.contentLayoutRect),@"backingScaleFactor":@(window.backingScaleFactor),
|
||||
@"screenRect":NSStringFromRect([window convertRectToScreen:[root convertRect:root.bounds toView:nil]])};}
|
||||
NSMutableArray *screens=[NSMutableArray array];
|
||||
for(NSScreen *screen in NSScreen.screens)[screens addObject:@{@"frame":NSStringFromRect(screen.frame),@"visibleFrame":NSStringFromRect(screen.visibleFrame),@"backingScaleFactor":@(screen.backingScaleFactor)}];
|
||||
record[@"screens"]=screens;
|
||||
NSString *logs=[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,NSUserDomainMask,YES).firstObject stringByAppendingPathComponent:@"Logs/大鱼调色"];
|
||||
[NSFileManager.defaultManager createDirectoryAtPath:logs withIntermediateDirectories:YES attributes:nil error:nil];
|
||||
NSString *path=[logs stringByAppendingPathComponent:[NSString stringWithFormat:@"BrowserGeometry-%d.jsonl",NSProcessInfo.processInfo.processIdentifier]];
|
||||
NSData *json=[NSJSONSerialization dataWithJSONObject:record options:0 error:nil];if(!json)return;
|
||||
if(![NSFileManager.defaultManager fileExistsAtPath:path])[NSFileManager.defaultManager createFileAtPath:path contents:nil attributes:nil];
|
||||
NSFileHandle *file=[NSFileHandle fileHandleForWritingAtPath:path];
|
||||
@try{if([file seekToEndOfFile]<1024*1024){[file writeData:json];[file writeData:[@"\n" dataUsingEncoding:NSUTF8StringEncoding]];}}@finally{[file closeFile];}
|
||||
}
|
||||
|
||||
@interface DYBrowserCanvas : NSView
|
||||
@property(copy) NSDictionary *palette;
|
||||
@property(copy) NSString *fillKey;
|
||||
@@ -144,7 +179,8 @@ static NSString *DYBrowserPreference(NSString *key,DYLUTLibrary *library){return
|
||||
NSString *key=[NSString stringWithFormat:@"%@|%@",DYBrowserFramePreference,DYLUTLibrary.defaultRootURL.path];
|
||||
NSString *saved=[[NSUserDefaults standardUserDefaults]stringForKey:key];NSRect frame=saved?NSRectFromString(saved):NSZeroRect;
|
||||
if(!std::isfinite(frame.size.width)||!std::isfinite(frame.size.height)||frame.size.width<720||frame.size.height<420)return NSMakeSize(900,620);
|
||||
return NSMakeSize(MIN(1800,frame.size.width),MIN(1200,MAX(420,frame.size.height-28)));
|
||||
NSSize content=[NSWindow contentRectForFrameRect:frame styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable].size;
|
||||
return NSMakeSize(MIN(1800,MAX(720,content.width)),MIN(1200,MAX(420,content.height)));
|
||||
}
|
||||
static NSTextField *BrowserLabel(NSString *title,CGFloat size){NSTextField *label=[NSTextField labelWithString:title];label.font=[NSFont systemFontOfSize:size];label.lineBreakMode=NSLineBreakByTruncatingTail;return label;}
|
||||
static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *button=[NSButton buttonWithTitle:title target:target action:action];button.font=[NSFont systemFontOfSize:11];button.bezelStyle=NSBezelStyleRounded;return button;}
|
||||
@@ -223,31 +259,67 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
|
||||
if(_closed||!parent||self.visible)return;
|
||||
_remoteMode=YES;_visible=YES;[_closeAction release];_closeAction=[closeAction copy];
|
||||
self.window.contentView=[[[NSView alloc]initWithFrame:NSMakeRect(0,0,1,1)]autorelease];
|
||||
[_root removeFromSuperview];_root.frame=parent.bounds;_root.autoresizingMask=NSViewWidthSizable|NSViewHeightSizable;parent.autoresizesSubviews=YES;_root.hidden=NO;
|
||||
[parent addSubview:_root];[self layoutBrowser];[_root setNeedsDisplay:YES];
|
||||
// The SDK reads the first child size as soon as its reply returns.
|
||||
// Restore geometry only after that first synchronous attachment is complete.
|
||||
dispatch_async(dispatch_get_main_queue(),^{if(!_closed)[self configurePresentationWindow];});
|
||||
[_root removeFromSuperview];_root.frame=parent.bounds;_root.autoresizingMask=NSViewWidthSizable|NSViewHeightSizable;_root.hidden=NO;
|
||||
// FxRemoteWindow owns the window and may publish view geometry separately.
|
||||
// Follow the supplied parent without changing the bridge's resize policy.
|
||||
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];
|
||||
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];DYBrowserGeometrySample(_root,@"after-sdk-reply");}});
|
||||
if([NSUserDefaults.standardUserDefaults boolForKey:@"DYBrowserGeometryDiagnostics"])dispatch_after(dispatch_time(DISPATCH_TIME_NOW,NSEC_PER_SEC),dispatch_get_main_queue(),^{if(!_closed)DYBrowserGeometrySample(_root,@"settled");});
|
||||
NSAccessibilityPostNotification(parent,NSAccessibilityLayoutChangedNotification);
|
||||
}
|
||||
- (void)fitRemoteParent{
|
||||
NSView *parent=_root.superview;if(_closed||!_remoteMode||!parent)return;
|
||||
// A scaled-display ViewBridge service can hand us its top-level content
|
||||
// view with a stale frame origin (observed: 789,521 in an 1800x1200 window).
|
||||
// Matching only its bounds keeps our child correct inside a displaced
|
||||
// container. Align that content origin using AppKit's coordinate APIs;
|
||||
// leave the host's window, content size and bridge resize policy intact.
|
||||
NSWindow *window=parent.window;
|
||||
if(window&&parent==window.contentView&&parent.superview){
|
||||
NSRect screenContent=[window contentRectForFrameRect:window.frame];
|
||||
NSRect windowContent=[window convertRectFromScreen:screenContent];
|
||||
NSPoint origin=[parent.superview convertPoint:windowContent.origin fromView:nil];
|
||||
if(std::isfinite(origin.x)&&std::isfinite(origin.y)&&!NSEqualPoints(parent.frame.origin,origin))[parent setFrameOrigin:origin];
|
||||
}
|
||||
if(!NSEqualRects(_root.frame,parent.bounds))_root.frame=parent.bounds;
|
||||
[self layoutBrowser];[_root setNeedsDisplay:YES];
|
||||
}
|
||||
- (void)remoteParentGeometryChanged:(NSNotification *)notification{
|
||||
if(notification.object==_root.superview)[self fitRemoteParent];
|
||||
DYBrowserGeometrySample(_root,notification.name);
|
||||
}
|
||||
- (void)configurePresentationWindow{
|
||||
NSWindow *window=_root.window;if(!window||window==self.window)return;
|
||||
if(_presentationWindow!=window){[_presentationWindow release];_presentationWindow=[window retain];
|
||||
for(NSNotificationName name in @[NSWindowDidMoveNotification,NSWindowDidResizeNotification])[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(presentationGeometryChanged:) name:name object:window];
|
||||
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(presentationWindowClosed:) name:NSWindowWillCloseNotification object:window];
|
||||
}
|
||||
// The v2 API caps the size to 80% of the host window. A service-side NSWindow
|
||||
// is not authority to override that geometry, metadata or saved position.
|
||||
if(_remoteMode){[self fitRemoteParent];return;}
|
||||
window.title=@"风格 LUT";window.contentMinSize=self.class.minimumContentSize;window.contentMaxSize=self.class.maximumContentSize;
|
||||
if(_detached)window.styleMask|=NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskResizable;
|
||||
NSString *saved=[NSUserDefaults.standardUserDefaults stringForKey:DYBrowserPreference(DYBrowserFramePreference,_library)];
|
||||
NSRect frame=saved?NSRectFromString(saved):[window frameRectForContentRect:(NSRect){window.frame.origin,self.class.preferredContentSize}];
|
||||
if(std::isfinite(frame.origin.x)&&std::isfinite(frame.origin.y)&&std::isfinite(frame.size.width)&&std::isfinite(frame.size.height)&&frame.size.width>=720&&frame.size.height>=420){
|
||||
NSRect screen=(window.screen?:NSScreen.mainScreen).visibleFrame;frame.size.width=MIN(MAX(720,frame.size.width),MIN(1800,screen.size.width));frame.size.height=MIN(MAX(448,frame.size.height),MIN(1228,screen.size.height));
|
||||
frame.origin.x=MAX(NSMinX(screen),MIN(frame.origin.x,NSMaxX(screen)-frame.size.width));frame.origin.y=MAX(NSMinY(screen),MIN(frame.origin.y,NSMaxY(screen)-frame.size.height));[window setFrame:frame display:YES];
|
||||
NSScreen *target=window.screen?:NSScreen.mainScreen;CGFloat largest=0;
|
||||
for(NSScreen *candidate in NSScreen.screens){NSRect overlap=NSIntersectionRect(frame,candidate.visibleFrame);CGFloat area=overlap.size.width*overlap.size.height;if(area>largest){largest=area;target=candidate;}}
|
||||
if(target){
|
||||
NSRect screen=target.visibleFrame;NSSize available=[window contentRectForFrameRect:screen].size,minimum=self.class.minimumContentSize,maximum=self.class.maximumContentSize;
|
||||
minimum=NSMakeSize(MIN(minimum.width,available.width),MIN(minimum.height,available.height));maximum=NSMakeSize(MIN(maximum.width,available.width),MIN(maximum.height,available.height));
|
||||
window.contentMinSize=minimum;window.contentMaxSize=maximum;
|
||||
NSRect content=[window contentRectForFrameRect:frame];content.size=NSMakeSize(MIN(maximum.width,MAX(minimum.width,content.size.width)),MIN(maximum.height,MAX(minimum.height,content.size.height)));frame=[window frameRectForContentRect:content];
|
||||
frame.origin.x=MAX(NSMinX(screen),MIN(frame.origin.x,NSMaxX(screen)-frame.size.width));frame.origin.y=MAX(NSMinY(screen),MIN(frame.origin.y,NSMaxY(screen)-frame.size.height));[window setFrame:frame display:YES];
|
||||
}
|
||||
}
|
||||
[self layoutBrowser];
|
||||
}
|
||||
- (void)presentationGeometryChanged:(NSNotification *)notification{
|
||||
if(_closed||!_presentationWindow)return;NSRect frame=_presentationWindow.frame;
|
||||
if(_closed||!_presentationWindow)return;if(_remoteMode){[self fitRemoteParent];return;}NSRect frame=_presentationWindow.frame;
|
||||
if(std::isfinite(frame.size.width)&&std::isfinite(frame.size.height)&&frame.size.width>=720&&frame.size.height>=420)[NSUserDefaults.standardUserDefaults setObject:NSStringFromRect(frame) forKey:DYBrowserPreference(DYBrowserFramePreference,_library)];
|
||||
[self layoutBrowser];
|
||||
}
|
||||
@@ -272,6 +344,7 @@ static NSButton *BrowserButton(NSString *title,id target,SEL action){NSButton *b
|
||||
[NSObject cancelPreviousPerformRequestsWithTarget:self];
|
||||
_closed=YES;_visible=NO;_work.cancelled=YES;_work.owner=nil;[_libraryTask cancel];[_selectionTask cancel];[_progressTimer invalidate];[_progressTimer release];_progressTimer=nil;
|
||||
_popover.delegate=nil;if(_popover.shown)[_popover close];
|
||||
if(_remoteMode&&_root.superview)for(NSNotificationName name in @[NSViewFrameDidChangeNotification,NSViewBoundsDidChangeNotification])[[NSNotificationCenter defaultCenter]removeObserver:self name:name object:_root.superview];
|
||||
[_root removeFromSuperview];[_queuedPaths removeAllObjects];[_thumbnailCache removeAllObjects];
|
||||
[_selection release];_selection=nil;
|
||||
void (^closeAction)(void)=[_closeAction copy];[_closeAction release];_closeAction=nil;
|
||||
|
||||
+24
-1
@@ -146,6 +146,16 @@ static std::string_view DYLUTTrim(std::string_view v) {
|
||||
if(!count)break;v.remove_prefix(count);
|
||||
}return v;
|
||||
}
|
||||
static bool DYLUTTextNote(std::string_view text,locale_t numericLocale) {
|
||||
if(text.empty())return false;
|
||||
// A note must be separated from the preceding number and start with real
|
||||
// text. Do not reinterpret malformed bytes or NaN/Inf as an annotation.
|
||||
char *end=nullptr;strtof_l(text.data(),&end,numericLocale);
|
||||
if(end!=text.data())return false;
|
||||
NSString *note=[[[NSString alloc]initWithBytes:text.data() length:text.size()
|
||||
encoding:NSUTF8StringEncoding]autorelease];
|
||||
return note.length&&[NSCharacterSet.letterCharacterSet characterIsMember:[note characterAtIndex:0]];
|
||||
}
|
||||
static BOOL DYLUTParse(NSString *path,std::vector<float>& data,NSUInteger& size,NSProgress *progress,NSError **error) {
|
||||
data.clear();size=0;
|
||||
NSDictionary *attributes=[[NSFileManager defaultManager]attributesOfItemAtPath:path error:error];
|
||||
@@ -188,7 +198,20 @@ static BOOL DYLUTParse(NSString *path,std::vector<float>& data,NSUInteger& size,
|
||||
} else if(starts("TITLE")||starts("LUT_3D_INPUT_RANGE"))continue;
|
||||
else if(starts("LUT_1D_SIZE"))return DYLUTFail(error,@"请选择三维 .cube LUT");
|
||||
else {
|
||||
auto v=line;if(!number(v,r)||!number(v,g)||!number(v,b)||!trim(v).empty()||!std::isfinite(r)||!std::isfinite(g)||!std::isfinite(b))return DYLUTFail(error,[NSString stringWithFormat:@"LUT 第 %lu 行含无效数字或多余内容",(unsigned long)rows]);
|
||||
auto v=line;float rgb[3]={0,0,0};bool valid=true;
|
||||
for(int c=0;c<3;c++) {
|
||||
auto token=trim(v);
|
||||
if(!number(v,rgb[c])) {
|
||||
// Custom LUT compatibility: retain the numeric prefix,
|
||||
// zero unread channels, and keep this row's table position.
|
||||
// Never search annotations for digits or skip a table row.
|
||||
valid=c>0&&DYLUTTextNote(token,numericLocale);v={};break;
|
||||
}
|
||||
if(!std::isfinite(rgb[c])||(!v.empty()&&trim(v).size()==v.size())){valid=false;break;}
|
||||
}
|
||||
auto tail=trim(v);
|
||||
if(!valid||(!tail.empty()&&!DYLUTTextNote(tail,numericLocale)))return DYLUTFail(error,[NSString stringWithFormat:@"LUT 第 %lu 行含无效数字或多余内容",(unsigned long)rows]);
|
||||
r=rgb[0];g=rgb[1];b=rgb[2];
|
||||
data.insert(data.end(),{r,g,b,1});if(data.size()>128*128*128*4)return DYLUTFail(error,@"LUT 数据过多");
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,4 +1,5 @@
|
||||
#import "DYPlugIn.h"
|
||||
#import "../Shared/DYBetaDiagnostics.h"
|
||||
#import "DYModel.h"
|
||||
#import "DYRenderer.h"
|
||||
#import "DYInspector.h"
|
||||
@@ -15,10 +16,11 @@
|
||||
@implementation DYPlugIn {
|
||||
DYRenderer *_renderer;
|
||||
BOOL _copyAnalyzed;
|
||||
std::atomic_bool _betaFirstRenderStarted;
|
||||
#include "DYToolHostIvars.inc.h"
|
||||
}
|
||||
#include "DYToolHostMethods.inc.h"
|
||||
- (instancetype)initWithAPIManager:(id<PROAPIAccessing>)manager{if((self=[super init])){_apiManager=manager;_renderer=[DYRenderer new];[self initializeToolHost];NSNotificationCenter*n=NSNotificationCenter.defaultCenter;[n addObserver:self selector:@selector(exportRequested:) name:@"DYExportLUT" object:manager];[n addObserver:self selector:@selector(autoRequested:) name:@"DYAutoGrade" object:manager];[n addObserver:self selector:@selector(autoRequested:) name:@"DYAutoWhiteBalance" object:manager];[n addObserver:self selector:@selector(whiteBalanceRequested:) name:@"DYWhiteBalanceColor" object:manager];}return self;}
|
||||
- (instancetype)initWithAPIManager:(id<PROAPIAccessing>)manager{uint64_t beta=DYBetaSpanBegin(@"plugin_init",nil);if((self=[super init])){_betaFirstRenderStarted.store(false);_apiManager=manager;_renderer=[DYRenderer new];[self initializeToolHost];NSNotificationCenter*n=NSNotificationCenter.defaultCenter;[n addObserver:self selector:@selector(exportRequested:) name:@"DYExportLUT" object:manager];[n addObserver:self selector:@selector(autoRequested:) name:@"DYAutoGrade" object:manager];[n addObserver:self selector:@selector(autoRequested:) name:@"DYAutoWhiteBalance" object:manager];[n addObserver:self selector:@selector(whiteBalanceRequested:) name:@"DYWhiteBalanceColor" object:manager];}DYBetaSpanEnd(beta,nil);return self;}
|
||||
- (void)dealloc{[self tearDownToolHost];[NSNotificationCenter.defaultCenter removeObserver:self];[_renderer release];[super dealloc];}
|
||||
- (BOOL)properties:(NSDictionary**)p error:(NSError**)e{*p=@{kFxPropertyKey_MayRemapTime:@NO,kFxPropertyKey_PixelTransformSupport:@(kFxPixelTransform_ScaleTranslate),kFxPropertyKey_VariesWhenParamsAreStatic:@YES,kFxPropertyKey_DesiredProcessingColorInfo:@(kFxImageColorInfo_RGB_LINEAR),kFxPropertyKey_NeedsFullBuffer:@YES};return YES;}
|
||||
- (BOOL)addParametersWithError:(NSError**)e{return DYCreateParameters(_apiManager,e);}
|
||||
@@ -31,7 +33,7 @@
|
||||
- (BOOL)destinationImageRect:(FxRect*)rect sourceImages:(NSArray<FxImageTile*>*)src destinationImage:(FxImageTile*)dst pluginState:(NSData*)s atTime:(CMTime)t error:(NSError**)e{if(!src.count)return NO;*rect=src[0].imagePixelBounds;return YES;}
|
||||
- (BOOL)sourceTileRect:(FxRect*)rect sourceImageIndex:(NSUInteger)i sourceImages:(NSArray<FxImageTile*>*)src destinationTileRect:(FxRect)dstRect destinationImage:(FxImageTile*)dst pluginState:(NSData*)s atTime:(CMTime)t error:(NSError**)e{if(i>=src.count)return NO;*rect=src[i].imagePixelBounds;return YES;}
|
||||
- (BOOL)renderDestinationImage:(FxImageTile*)dst sourceImages:(NSArray<FxImageTile*>*)src pluginState:(NSData*)s atTime:(CMTime)t error:(NSError**)e{
|
||||
if(!src.count||!src[0].ioSurface||!dst.ioSurface||!s.length)return NO;NSDictionary*p=[NSPropertyListSerialization propertyListWithData:s options:NSPropertyListImmutable format:NULL error:e];if(![p isKindOfClass:NSDictionary.class])return NO;NSData*b=p[@"uniforms"];if(![@[@1,@2]containsObject:p[@"schema"]]||![b isKindOfClass:NSData.class]||b.length!=sizeof(DYUniforms)||![p[@"paths"]isKindOfClass:NSDictionary.class])return NO;DYUniforms u;[b getBytes:&u length:sizeof(u)];BOOL ok=[_renderer renderSource:src[0] destination:dst uniforms:u paths:p[@"paths"] spider:p[@"spider"] tools:p[@"tools"] error:e];if(ok){if(_toolCaptureEnabled&&!_trackingActive.load()){dy::GrayFrame frame=[self toolGrayFrame:src[0] error:nil];if(frame.valid()){@synchronized(self){_toolSourceFrame=std::move(frame);_toolSourceTime=t;}}}BOOL analyze=NO;@synchronized(self){if(![p[@"copyAuto"]boolValue])_copyAnalyzed=NO;else if(!_copyAnalyzed){_copyAnalyzed=YES;analyze=YES;}}if(analyze){NSDictionary*values=DYAutoGrade([_renderer preview]);if(values)dispatch_async(dispatch_get_main_queue(),^{[self applyValues:values];});}}return ok;
|
||||
if(!src.count||!src[0].ioSurface||!dst.ioSurface||!s.length)return NO;NSDictionary*p=[NSPropertyListSerialization propertyListWithData:s options:NSPropertyListImmutable format:NULL error:e];if(![p isKindOfClass:NSDictionary.class])return NO;NSData*b=p[@"uniforms"];if(![@[@1,@2]containsObject:p[@"schema"]]||![b isKindOfClass:NSData.class]||b.length!=sizeof(DYUniforms)||![p[@"paths"]isKindOfClass:NSDictionary.class])return NO;DYUniforms u;[b getBytes:&u length:sizeof(u)];uint64_t beta=!_betaFirstRenderStarted.exchange(true)?DYBetaSpanBegin(@"first_render",nil):0;BOOL ok=[_renderer renderSource:src[0] destination:dst uniforms:u paths:p[@"paths"] spider:p[@"spider"] tools:p[@"tools"] error:e];DYBetaSpanEnd(beta,@{@"status":ok?@"passed":@"failed"});if(!ok)DYBetaEvent(@"render_error",@{@"error_domain":(e&&*e)?(*e).domain:@"unknown",@"error_code":@((e&&*e)?(*e).code:0)});if(ok){if(_toolCaptureEnabled&&!_trackingActive.load()){dy::GrayFrame frame=[self toolGrayFrame:src[0] error:nil];if(frame.valid()){@synchronized(self){_toolSourceFrame=std::move(frame);_toolSourceTime=t;}}}BOOL analyze=NO;@synchronized(self){if(![p[@"copyAuto"]boolValue])_copyAnalyzed=NO;else if(!_copyAnalyzed){_copyAnalyzed=YES;analyze=YES;}}if(analyze){NSDictionary*values=DYAutoGrade([_renderer preview]);if(values)dispatch_async(dispatch_get_main_queue(),^{[self applyValues:values];});}}return ok;
|
||||
}
|
||||
- (void)alert:(NSString*)message{dispatch_async(dispatch_get_main_queue(),^{NSAlert*a=[NSAlert new];a.messageText=@"大鱼调色";a.informativeText=message?:@"操作未完成";[a runModal];[a release];});}
|
||||
- (void)exportRequested:(NSNotification*)n{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#import "DYRenderer.h"
|
||||
#import "../Shared/DYBetaDiagnostics.h"
|
||||
#import "DYModel.h"
|
||||
#include "DYSpiderState.h"
|
||||
#include "DYToolGPU.h"
|
||||
@@ -99,15 +100,17 @@ static void bypassIdleSkin(DYUniforms *u){
|
||||
- (NSData*)lookLUTPreview{@synchronized(_previewLock){return [[_lookLUTPreview retain]autorelease];}}
|
||||
- (NSMutableDictionary*)device:(uint64_t)registry error:(NSError**)err{
|
||||
NSNumber*k=@(registry);NSMutableDictionary*entry=_devices[k];if(entry)return entry;
|
||||
uint64_t beta=DYBetaSpanBegin(@"device_prepare",nil);@try{
|
||||
id<MTLDevice>d=nil;NSArray*all=MTLCopyAllDevices();for(id<MTLDevice>candidate in all)if(candidate.registryID==registry||!registry){d=[candidate retain];break;}[all release];if(!d){fail(err,@"宿主的 Metal 设备不可用");return nil;}
|
||||
NSURL*url=[[NSBundle bundleForClass:self.class]URLForResource:@"default" withExtension:@"metallib"];
|
||||
id<MTLLibrary>lib=[d newLibraryWithURL:url error:err];if(!lib){[d release];return nil;}
|
||||
id<MTLCommandQueue>q=[d newCommandQueue];entry=[NSMutableDictionary dictionaryWithDictionary:@{@"device":d,@"library":lib,@"queue":q,@"pipelines":[NSMutableDictionary dictionary]}];
|
||||
for(NSString*fn in @[@"dyUnpremultiply",@"dyWhitesSceneStatistics",@"dyLUTExportKernel",@"dyInputAnalysis",@"dyColorManagement",@"dyToolBlend",@"dyToolSkin",@"dyFilmPoint",@"dyFilmNoise",@"dyFilmSparseBlur",@"dyFilmBloomEdges",@"dyFilmMix",@"dyFilmPrint"]){id<MTLFunction>f=[lib newFunctionWithName:fn];if(!f){fail(err,[fn stringByAppendingString:@" 缺失"]);[lib release];[q release];[d release];return nil;}id<MTLComputePipelineState>p=[d newComputePipelineStateWithFunction:f error:err];[f release];if(!p){[lib release];[q release];[d release];return nil;}entry[fn]=p;[p release];}
|
||||
for(NSString*fn in @[@"dyUnpremultiply",@"dyWhitesSceneStatistics",@"dyLUTExportKernel",@"dyInputAnalysis",@"dyColorManagement",@"dyToolBlend",@"dyToolSkin",@"dyFilmPoint",@"dyFilmNoise",@"dyFilmSparseBlur",@"dyFilmBloomEdges",@"dyFilmMix",@"dyFilmPrint"]){id<MTLFunction>f=[lib newFunctionWithName:fn];if(!f){fail(err,[fn stringByAppendingString:@" 缺失"]);[lib release];[q release];[d release];return nil;}uint64_t pipelineSpan=DYBetaSpanBegin(@"gpu_pipeline",@{@"pipeline":fn,@"gpu":d.name?:@"unknown"});id<MTLComputePipelineState>p=[d newComputePipelineStateWithFunction:f error:err];DYBetaSpanEnd(pipelineSpan,@{@"status":p?@"passed":@"failed"});[f release];if(!p){[lib release];[q release];[d release];return nil;}entry[fn]=p;[p release];}
|
||||
float identity[32];for(int z=0;z<2;z++)for(int y=0;y<2;y++)for(int x=0;x<2;x++){int i=((z*2+y)*2+x)*4;identity[i]=x;identity[i+1]=y;identity[i+2]=z;identity[i+3]=1;}id<MTLTexture>neutral=texture3D(d,identity,2);if(!neutral){fail(err,@"无法分配中性 LUT");return nil;}entry[@"identity"]=neutral;
|
||||
// Preparing before the first frame may use registry 0. Reuse those pipelines
|
||||
// when the host subsequently supplies that device's actual registry ID.
|
||||
_devices[k]=entry;_devices[@(d.registryID)]=entry;[d release];[lib release];[q release];return entry;
|
||||
}@finally{DYBetaSpanEnd(beta,nil);}
|
||||
}
|
||||
- (id<MTLTexture>)lut:(NSString*)path entry:(NSDictionary*)e error:(NSError**)err{
|
||||
if(!path.length)return e[@"identity"];
|
||||
|
||||
+3
-3
@@ -17,9 +17,9 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XPC!</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.6.1</string>
|
||||
<string>1.7.3</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>44</string>
|
||||
<string>49</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.1</string>
|
||||
<string>1.7.3</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>className</key>
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
#import <FxPlug/FxPlugSDK.h>
|
||||
#import "DYDiagnostics.h"
|
||||
#import "../Shared/DYBetaDiagnostics.h"
|
||||
#include <string.h>
|
||||
int main(int argc,const char*argv[]){@autoreleasepool{if(argc==2&&strcmp(argv[1],"--self-test")==0)return DYRunDiagnostics();[FxPrincipal startServicePrincipal];return 0;}}
|
||||
int main(int argc,const char*argv[]){@autoreleasepool{if(argc==2&&strcmp(argv[1],"--self-test")==0)return DYRunDiagnostics();DYBetaStart();[FxPrincipal startServicePrincipal];DYBetaStop();return 0;}}
|
||||
@@ -0,0 +1,15 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
|
||||
FOUNDATION_EXPORT NSString *const DYBetaDiagnosticsChanged;
|
||||
FOUNDATION_EXPORT void DYBetaStart(void);
|
||||
FOUNDATION_EXPORT void DYBetaStop(void);
|
||||
FOUNDATION_EXPORT void DYBetaEvent(NSString *event, NSDictionary *fields);
|
||||
FOUNDATION_EXPORT uint64_t DYBetaSpanBegin(NSString *stage, NSDictionary *fields);
|
||||
FOUNDATION_EXPORT void DYBetaSpanEnd(uint64_t token, NSDictionary *fields);
|
||||
FOUNDATION_EXPORT NSDictionary *DYBetaSafeFields(NSDictionary *fields);
|
||||
FOUNDATION_EXPORT BOOL DYBetaEnabled(void);
|
||||
FOUNDATION_EXPORT void DYBetaSetEnabled(BOOL enabled);
|
||||
FOUNDATION_EXPORT NSDictionary *DYBetaStatus(void);
|
||||
FOUNDATION_EXPORT void DYBetaSendSummary(void);
|
||||
FOUNDATION_EXPORT BOOL DYBetaAllowedURL(NSURL *url, BOOL download);
|
||||
@@ -0,0 +1,233 @@
|
||||
#import "DYBetaDiagnostics.h"
|
||||
#import <AppKit/AppKit.h>
|
||||
#include <atomic>
|
||||
#include <cmath>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
NSString *const DYBetaDiagnosticsChanged = @"DYBetaDiagnosticsChanged";
|
||||
static NSString *const DYBetaPreferenceDomain = @"com.dayu.color.preferences";
|
||||
static std::atomic_bool gEnabled(true);
|
||||
static std::atomic_uint_fast64_t gSpan(0);
|
||||
static std::atomic<double> gMainReply(0);
|
||||
static NSObject *gSpanLock, *gStatusLock;
|
||||
static NSMutableDictionary *gActive;
|
||||
static NSDictionary *gStatus;
|
||||
static BOOL gProduct;
|
||||
|
||||
BOOL DYBetaAllowedURL(NSURL *url, BOOL download) {
|
||||
if (![url.scheme.lowercaseString isEqual:@"https"] || ![url.host.lowercaseString isEqual:@"dayu.media"] ||
|
||||
url.user.length || url.password.length || (url.port && url.port.integerValue!=443)) return NO;
|
||||
NSString *prefix=download?@"/wp-content/uploads/dayu-color-beta/updates/":@"/wp-json/dayu-color/v1/";
|
||||
return [url.path hasPrefix:prefix] && ![url.path.pathComponents containsObject:@".."];
|
||||
}
|
||||
NSDictionary *DYBetaSafeFields(NSDictionary *fields) {
|
||||
static NSSet *allowed; static dispatch_once_t once;
|
||||
dispatch_once(&once,^{allowed=[[NSSet alloc]initWithArray:@[@"phase",@"stage",@"pipeline",@"duration_ms",@"status",@"error_domain",@"error_code",@"exception",@"signal",@"frames",@"report_time",@"count",@"pending",@"model",@"os_version",@"fcp_version",@"cpu_cores",@"memory_gb",@"gpu",@"main_delay_ms",@"active_stages",@"source_version"]];});
|
||||
NSMutableDictionary *out=[NSMutableDictionary dictionary];
|
||||
if(![fields isKindOfClass:NSDictionary.class])return @{};
|
||||
for (NSString *key in fields) {
|
||||
if (![allowed containsObject:key]) continue;
|
||||
id value=fields[key];
|
||||
if ([value isKindOfClass:NSNumber.class]) { if (std::isfinite([value doubleValue])) out[key]=value; continue; }
|
||||
if (![value isKindOfClass:NSString.class]) continue;
|
||||
NSString *text=value;
|
||||
for (NSString *pattern in @[@"(?:https?://\\S+|(?:/Users/|/Volumes/|/private/|/var/)[^\\r\\n]*)",@"(?i)(?:bearer\\s+\\S+|(?:token|api[_-]?key|secret|password)\\s*[=:]\\s*\\S+)"])
|
||||
text=[text stringByReplacingOccurrencesOfString:pattern withString:@"[REDACTED]" options:NSRegularExpressionSearch range:NSMakeRange(0,text.length)];
|
||||
NSUInteger limit=[key isEqual:@"frames"]?6000:[key isEqual:@"active_stages"]?1000:200;
|
||||
out[key]=text.length>limit?[text substringToIndex:limit]:text;
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
@interface DYBetaTransport : NSObject <NSURLSessionTaskDelegate> {
|
||||
@public
|
||||
dispatch_queue_t queue;
|
||||
dispatch_source_t timer;
|
||||
NSMutableArray *pending;
|
||||
NSMutableSet *seenCrashes;
|
||||
NSMutableDictionary *lastEvents;
|
||||
NSURLSession *session;
|
||||
NSURLSessionDataTask *sending;
|
||||
NSString *sessionID, *installationID, *source, *version;
|
||||
NSNumber *build;
|
||||
NSURL *folder, *journal;
|
||||
NSDictionary *environment;
|
||||
NSTimeInterval nextAttempt, lastTick, lastStall;
|
||||
BOOL ready;
|
||||
}
|
||||
- (void)enqueue:(NSString *)event fields:(NSDictionary *)fields;
|
||||
- (void)drain;
|
||||
- (void)persist;
|
||||
- (void)scanCrashSummaries;
|
||||
@end
|
||||
static DYBetaTransport *transport;
|
||||
static void publishStatus(NSDictionary *values) {
|
||||
@synchronized(gStatusLock) { [gStatus release]; gStatus=[values copy]; }
|
||||
dispatch_async(dispatch_get_main_queue(),^{[NSNotificationCenter.defaultCenter postNotificationName:DYBetaDiagnosticsChanged object:nil];});
|
||||
}
|
||||
static NSDictionary *statusSnapshot(void) { @synchronized(gStatusLock) { return [[gStatus copy]autorelease]?:@{}; } }
|
||||
static NSUserDefaults *preferences(void) { return [[[NSUserDefaults alloc]initWithSuiteName:DYBetaPreferenceDomain]autorelease]; }
|
||||
static NSString *sysctlString(const char *key) {
|
||||
char buffer[256]={};size_t size=sizeof(buffer);if(sysctlbyname(key,buffer,&size,NULL,0))return @"unknown";
|
||||
return [NSString stringWithUTF8String:buffer]?:@"unknown";
|
||||
}
|
||||
@implementation DYBetaTransport
|
||||
- (instancetype)init {
|
||||
if((self=[super init])) {
|
||||
queue=dispatch_queue_create("com.dayu.color.beta-diagnostics",DISPATCH_QUEUE_SERIAL);
|
||||
pending=[NSMutableArray new];seenCrashes=[NSMutableSet new];lastEvents=[NSMutableDictionary new];sessionID=[NSUUID.UUID.UUIDString.lowercaseString copy];
|
||||
source=[([NSBundle.mainBundle.bundleIdentifier isEqual:@"com.dayu.color.XPC"]?@"plugin":@"app")copy];
|
||||
version=[[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]copy];build=@([[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]integerValue]);[build retain];
|
||||
dispatch_async(queue,^{@autoreleasepool{[self prepare];}});
|
||||
}return self;
|
||||
}
|
||||
- (void)prepare {
|
||||
NSUserDefaults *prefs=preferences();[prefs registerDefaults:@{@"betaDiagnosticsEnabled":@YES}];gEnabled.store([prefs boolForKey:@"betaDiagnosticsEnabled"]);
|
||||
folder=[[[NSFileManager.defaultManager URLsForDirectory:NSApplicationSupportDirectory inDomains:NSUserDomainMask].firstObject URLByAppendingPathComponent:@"com.dayu.color/Beta" isDirectory:YES]retain];
|
||||
[NSFileManager.defaultManager createDirectoryAtURL:folder withIntermediateDirectories:YES attributes:@{NSFilePosixPermissions:@0700} error:nil];
|
||||
// O_EXCL gives the APP and XPC one random installation ID without hardware UUIDs.
|
||||
NSURL *identity=[folder URLByAppendingPathComponent:@"installation.txt"];
|
||||
NSString *newID=NSUUID.UUID.UUIDString.lowercaseString;
|
||||
int fd=open(identity.fileSystemRepresentation,O_WRONLY|O_CREAT|O_EXCL,0600);
|
||||
if(fd>=0){NSData *data=[newID dataUsingEncoding:NSUTF8StringEncoding];write(fd,data.bytes,data.length);close(fd);}
|
||||
for(int attempt=0;attempt<20;attempt++) {
|
||||
[installationID release];installationID=[[[NSString stringWithContentsOfURL:identity encoding:NSUTF8StringEncoding error:nil]stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet]copy];
|
||||
if([[[NSUUID alloc]initWithUUIDString:installationID]autorelease])break;
|
||||
[NSThread sleepForTimeInterval:.01];
|
||||
}
|
||||
if(![[[NSUUID alloc]initWithUUIDString:installationID]autorelease]){gEnabled.store(false);return;}
|
||||
NSURLSessionConfiguration *config=NSURLSessionConfiguration.ephemeralSessionConfiguration;
|
||||
config.timeoutIntervalForRequest=8;config.timeoutIntervalForResource=12;config.HTTPShouldSetCookies=NO;config.URLCache=nil;
|
||||
session=[[NSURLSession sessionWithConfiguration:config delegate:self delegateQueue:nil]retain];
|
||||
uint64_t memory=0;size_t length=sizeof(memory);sysctlbyname("hw.memsize",&memory,&length,NULL,0);
|
||||
NSString *fcp=@"not-installed";
|
||||
for(NSString *ID in @[@"com.apple.FinalCut",@"com.apple.FinalCutApp"]){NSURL *url=[NSWorkspace.sharedWorkspace URLForApplicationWithBundleIdentifier:ID];if(url){fcp=[[NSBundle bundleWithURL:url]objectForInfoDictionaryKey:@"CFBundleShortVersionString"]?:@"unknown";break;}}
|
||||
environment=[@{@"model":sysctlString("hw.model"),@"os_version":NSProcessInfo.processInfo.operatingSystemVersionString,@"fcp_version":fcp,@"cpu_cores":@(NSProcessInfo.processInfo.processorCount),@"memory_gb":@(double(memory)/(1024*1024*1024))}copy];
|
||||
journal=[[folder URLByAppendingPathComponent:[NSString stringWithFormat:@"pending-%d-%@.json",getpid(),sessionID]]retain];
|
||||
NSArray *files=[NSFileManager.defaultManager contentsOfDirectoryAtURL:folder includingPropertiesForKeys:@[NSURLContentModificationDateKey] options:NSDirectoryEnumerationSkipsHiddenFiles error:nil];
|
||||
NSUInteger recovered=0;
|
||||
for(NSURL *url in files){if(![url.lastPathComponent hasPrefix:@"pending-"]||![url.pathExtension isEqual:@"json"])continue;
|
||||
NSNumber *bytes=nil;[url getResourceValue:&bytes forKey:NSURLFileSizeKey error:nil];if(bytes.unsignedLongLongValue>384*1024)continue;
|
||||
NSDictionary *old=[NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfURL:url]?:[NSData data] options:0 error:nil];if(![old isKindOfClass:NSDictionary.class])continue;
|
||||
if(![old[@"pid"]isKindOfClass:NSNumber.class])continue;int pid=[old[@"pid"]intValue];if(pid>0&&kill(pid,0)==0)continue;
|
||||
NSDate *date=nil;[url getResourceValue:&date forKey:NSURLContentModificationDateKey error:nil];
|
||||
if(gEnabled.load()&&date.timeIntervalSinceNow> -7*86400&&[old[@"events"]isKindOfClass:NSArray.class])for(NSDictionary *event in old[@"events"]){if(pending.count>=256)break;
|
||||
if(![event isKindOfClass:NSDictionary.class]||![event[@"event_id"]isKindOfClass:NSString.class]||![event[@"session_id"]isKindOfClass:NSString.class]||
|
||||
![[[NSUUID alloc]initWithUUIDString:event[@"event_id"]]autorelease]||![[[NSUUID alloc]initWithUUIDString:event[@"session_id"]]autorelease]||
|
||||
![event[@"version"]isKindOfClass:NSString.class]||![event[@"build"]isKindOfClass:NSNumber.class]||![event[@"event"]isKindOfClass:NSString.class]||
|
||||
![@[@"app",@"plugin"]containsObject:event[@"source"]]||![event[@"fields"]isKindOfClass:NSDictionary.class]||![event[@"occurred_at"]isKindOfClass:NSNumber.class])continue;
|
||||
NSMutableDictionary *safe=[[event mutableCopy]autorelease];safe[@"fields"]=DYBetaSafeFields(event[@"fields"]);[pending addObject:safe];recovered++;}
|
||||
[NSFileManager.defaultManager removeItemAtURL:url error:nil];
|
||||
}
|
||||
ready=YES;gMainReply.store(NSProcessInfo.processInfo.systemUptime);lastTick=gMainReply.load();
|
||||
[self enqueue:@"process_start" fields:environment];if(recovered)[self enqueue:@"previous_session_pending" fields:@{@"count":@(recovered)}];
|
||||
publishStatus(@{@"installation_id":installationID,@"enabled":@(gEnabled.load()),@"pending":@(pending.count)});
|
||||
timer=dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER,0,0,queue);
|
||||
dispatch_source_set_timer(timer,dispatch_time(DISPATCH_TIME_NOW,2*NSEC_PER_SEC),3*NSEC_PER_SEC,NSEC_PER_SEC/4);
|
||||
dispatch_source_set_event_handler(timer,^{@autoreleasepool{[self tick];}});dispatch_resume(timer);
|
||||
[NSDistributedNotificationCenter.defaultCenter addObserver:self selector:@selector(settingsChanged:) name:@"com.dayu.color.beta.preferences" object:nil];
|
||||
if([source isEqual:@"app"])[self scanCrashSummaries];
|
||||
}
|
||||
- (void)enqueue:(NSString *)event fields:(NSDictionary *)fields {
|
||||
if(!ready||!gEnabled.load())return;
|
||||
// A bad render must not turn diagnostics into per-frame disk writes.
|
||||
if([@[@"render_error",@"inspector_refresh"]containsObject:event]){
|
||||
double now=NSProcessInfo.processInfo.systemUptime;if(now-[lastEvents[event]doubleValue]<5)return;lastEvents[event]=@(now);
|
||||
}
|
||||
if(pending.count>=256)[pending removeObjectsInRange:NSMakeRange(0,32)];
|
||||
[pending addObject:@{@"event_id":NSUUID.UUID.UUIDString.lowercaseString,@"session_id":sessionID,@"source":source,@"version":version?:@"0.0",@"build":build?:@1,@"event":event,@"occurred_at":@(NSDate.date.timeIntervalSince1970),@"fields":DYBetaSafeFields(fields?:@{})}];
|
||||
[self persist];
|
||||
}
|
||||
- (void)persist {
|
||||
if(!journal)return;
|
||||
NSData *data=[NSJSONSerialization dataWithJSONObject:@{@"pid":@(getpid()),@"events":pending} options:0 error:nil];
|
||||
if(data.length>384*1024){while(pending.count>64)[pending removeObjectAtIndex:0];data=[NSJSONSerialization dataWithJSONObject:@{@"pid":@(getpid()),@"events":pending} options:0 error:nil];}
|
||||
[data writeToURL:journal options:NSDataWritingAtomic error:nil];chmod(journal.fileSystemRepresentation,0600);
|
||||
}
|
||||
- (void)drain {
|
||||
if(!ready||!gEnabled.load()||sending||!pending.count||NSDate.date.timeIntervalSince1970<nextAttempt)return;
|
||||
NSArray *batch=[[pending subarrayWithRange:NSMakeRange(0,MIN((NSUInteger)16,pending.count))]copy];
|
||||
NSData *data=[NSJSONSerialization dataWithJSONObject:@{@"bundle_id":@"com.dayu.color",@"installation_id":installationID,@"events":batch} options:0 error:nil];
|
||||
if(data.length>98304){[pending removeObjectAtIndex:0];[batch release];[self persist];return;}
|
||||
NSMutableURLRequest *request=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://dayu.media/wp-json/dayu-color/v1/diagnostics"]];request.HTTPMethod=@"POST";request.HTTPBody=data;[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
|
||||
sending=[[session dataTaskWithRequest:request completionHandler:^(NSData *body,NSURLResponse *response,NSError *error){
|
||||
dispatch_async(self->queue,^{@autoreleasepool{
|
||||
NSDictionary *reply=body?[NSJSONSerialization JSONObjectWithData:body options:0 error:nil]:nil;if(![reply isKindOfClass:NSDictionary.class])reply=nil;
|
||||
NSSet *accepted=[reply[@"event_ids"]isKindOfClass:NSArray.class]?[NSSet setWithArray:reply[@"event_ids"]]:[NSSet set];
|
||||
NSSet *expected=[NSSet setWithArray:[batch valueForKey:@"event_id"]];
|
||||
BOOL ok=!error&&[(NSHTTPURLResponse*)response statusCode]==200&&[reply[@"accepted"]isKindOfClass:NSNumber.class]&&[reply[@"accepted"]boolValue]&&[accepted isEqualToSet:expected];
|
||||
if(ok){NSIndexSet *remove=[self->pending indexesOfObjectsPassingTest:^BOOL(NSDictionary *event,NSUInteger i,BOOL *stop){return [accepted containsObject:event[@"event_id"]];}];[self->pending removeObjectsAtIndexes:remove];self->nextAttempt=0;
|
||||
publishStatus(@{@"installation_id":self->installationID,@"enabled":@(gEnabled.load()),@"pending":@(self->pending.count),@"last_upload":@([NSDate.date timeIntervalSince1970])});
|
||||
}else self->nextAttempt=NSDate.date.timeIntervalSince1970+30;
|
||||
[self->sending release];self->sending=nil;[batch release];[self persist];
|
||||
}});
|
||||
}]retain];[sending resume];
|
||||
}
|
||||
- (void)tick {
|
||||
double now=NSProcessInfo.processInfo.systemUptime;
|
||||
if(now-lastTick>15)gMainReply.store(now); // Sleep/wake and timer coalescing are not proof of a hang.
|
||||
lastTick=now;
|
||||
if(gEnabled.load()&&now-gMainReply.load()>6&&now-lastStall>30){lastStall=now;[self enqueue:@"main_thread_stall" fields:@{@"status":@"suspected",@"main_delay_ms":@((now-gMainReply.load())*1000),@"active_stages":[self activeStages:now]}];}
|
||||
else if(gEnabled.load()&&now-lastStall>30){NSString *stages=[self activeStages:now];if(stages.length){lastStall=now;[self enqueue:@"operation_stall" fields:@{@"status":@"suspected",@"active_stages":stages}];}}
|
||||
dispatch_async(dispatch_get_main_queue(),^{gMainReply.store(NSProcessInfo.processInfo.systemUptime);});
|
||||
[self drain];
|
||||
}
|
||||
- (NSString *)activeStages:(double)now {
|
||||
NSArray *values;@synchronized(gSpanLock){values=[[gActive.allValues copy]autorelease];}
|
||||
NSMutableArray *slow=[NSMutableArray array];for(NSDictionary *span in values)if(now-[span[@"start"]doubleValue]>6)[slow addObject:[NSString stringWithFormat:@"%@: %.0fms",span[@"stage"],(now-[span[@"start"]doubleValue])*1000]];
|
||||
return [slow componentsJoinedByString:@"; "];
|
||||
}
|
||||
- (void)settingsChanged:(NSNotification *)note {
|
||||
dispatch_async(queue,^{@autoreleasepool{NSUserDefaults *prefs=preferences();[prefs synchronize];gEnabled.store([prefs objectForKey:@"betaDiagnosticsEnabled"]?[prefs boolForKey:@"betaDiagnosticsEnabled"]:YES);
|
||||
if(!gEnabled.load()){[self->sending cancel];[self->pending removeAllObjects];[self persist];}
|
||||
publishStatus(@{@"installation_id":self->installationID?:@"",@"enabled":@(gEnabled.load()),@"pending":@(self->pending.count)});
|
||||
}});
|
||||
}
|
||||
- (void)URLSession:(NSURLSession *)s task:(NSURLSessionTask *)task willPerformHTTPRedirection:(NSHTTPURLResponse *)response newRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURLRequest *))completionHandler {
|
||||
completionHandler(DYBetaAllowedURL(request.URL,NO)?request:nil);
|
||||
}
|
||||
- (void)scanCrashSummaries {
|
||||
if(!gEnabled.load())return;
|
||||
NSURL *reports=[NSFileManager.defaultManager.homeDirectoryForCurrentUser URLByAppendingPathComponent:@"Library/Logs/DiagnosticReports"];
|
||||
NSArray *files=[NSFileManager.defaultManager contentsOfDirectoryAtURL:reports includingPropertiesForKeys:@[NSURLContentModificationDateKey,NSURLFileSizeKey] options:NSDirectoryEnumerationSkipsHiddenFiles error:nil];
|
||||
NSUInteger count=0;
|
||||
for(NSURL *url in files){if(count>=12)break;if(![url.pathExtension isEqual:@"ips"])continue;
|
||||
NSNumber *size=nil;[url getResourceValue:&size forKey:NSURLFileSizeKey error:nil];if(size.unsignedLongLongValue>8*1024*1024)continue;
|
||||
NSDate *date=nil;[url getResourceValue:&date forKey:NSURLContentModificationDateKey error:nil];if(date.timeIntervalSinceNow< -7*86400)continue;
|
||||
NSFileHandle *handle=[NSFileHandle fileHandleForReadingFromURL:url error:nil];NSData *head=[handle readDataUpToLength:8192 error:nil];[handle closeFile];
|
||||
if(!head.length)continue;NSString *prefix=[[[NSString alloc]initWithData:head encoding:NSUTF8StringEncoding]autorelease];NSRange first=[prefix rangeOfString:@"\n"];if(!prefix||first.location==NSNotFound)continue;
|
||||
NSDictionary *header=[NSJSONSerialization JSONObjectWithData:[[prefix substringToIndex:first.location]dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];if(![header isKindOfClass:NSDictionary.class]||![header[@"bundleID"]isEqual:@"com.dayu.color.XPC"])continue;
|
||||
NSData *data=[NSData dataWithContentsOfURL:url options:NSDataReadingMappedIfSafe error:nil];if(!data.length)continue;NSString *text=[[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding]autorelease];NSRange newline=[text rangeOfString:@"\n"];if(!text||newline.location==NSNotFound)continue;
|
||||
NSString *key=header[@"incident_id"];if(![key isKindOfClass:NSString.class]||![[[NSUUID alloc]initWithUUIDString:key]autorelease])continue;if([seenCrashes containsObject:key])continue;[seenCrashes addObject:key];
|
||||
NSDictionary *body=[NSJSONSerialization JSONObjectWithData:[[text substringFromIndex:newline.location+1]dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];
|
||||
if(![body isKindOfClass:NSDictionary.class])continue;NSDictionary *exception=[body[@"exception"]isKindOfClass:NSDictionary.class]?body[@"exception"]:@{};
|
||||
NSInteger fault=[body[@"faultingThread"]isKindOfClass:NSNumber.class]?[body[@"faultingThread"]integerValue]:-1;NSArray *threads=body[@"threads"];NSMutableArray *frames=[NSMutableArray array];
|
||||
if([threads isKindOfClass:NSArray.class]&&fault>=0&&fault<threads.count&&[threads[fault]isKindOfClass:NSDictionary.class]&&[threads[fault][@"frames"]isKindOfClass:NSArray.class])for(NSDictionary *frame in threads[fault][@"frames"]){if(frames.count>=30)break;if(![frame isKindOfClass:NSDictionary.class])continue;NSString *symbol=frame[@"symbol"];if([symbol isKindOfClass:NSString.class]&&![symbol containsString:@"/"])[frames addObject:symbol];}
|
||||
[self enqueue:@"crash_summary" fields:@{@"source_version":header[@"app_version"]?:@"unknown",@"report_time":header[@"timestamp"]?:@"unknown",@"exception":exception[@"type"]?:@"unknown",@"signal":exception[@"signal"]?:@"unknown",@"frames":[frames componentsJoinedByString:@"\n"]}];
|
||||
if(pending.count){NSMutableDictionary *event=[[pending.lastObject mutableCopy]autorelease];event[@"event_id"]=key.lowercaseString;[pending replaceObjectAtIndex:pending.count-1 withObject:event];[self persist];}count++;
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
||||
void DYBetaStart(void) {
|
||||
static dispatch_once_t once;dispatch_once(&once,^{
|
||||
NSString *ID=NSBundle.mainBundle.bundleIdentifier;
|
||||
gProduct=([ID isEqual:@"com.dayu.color"]||[ID isEqual:@"com.dayu.color.XPC"])&&![NSProcessInfo.processInfo.arguments containsObject:@"--self-test"];
|
||||
gSpanLock=[NSObject new];gStatusLock=[NSObject new];gActive=[NSMutableDictionary new];
|
||||
if(gProduct)transport=[DYBetaTransport new];
|
||||
});
|
||||
}
|
||||
BOOL DYBetaEnabled(void){DYBetaStart();return gEnabled.load();}
|
||||
void DYBetaSetEnabled(BOOL enabled){DYBetaStart();gEnabled.store(enabled);NSUserDefaults *prefs=preferences();[prefs setBool:enabled forKey:@"betaDiagnosticsEnabled"];[prefs synchronize];[NSDistributedNotificationCenter.defaultCenter postNotificationName:@"com.dayu.color.beta.preferences" object:nil userInfo:nil deliverImmediately:YES];}
|
||||
NSDictionary *DYBetaStatus(void){DYBetaStart();return statusSnapshot();}
|
||||
void DYBetaEvent(NSString *event,NSDictionary *fields){DYBetaStart();if(!gProduct||!gEnabled.load())return;NSDictionary *safe=DYBetaSafeFields(fields?:@{});dispatch_async(transport->queue,^{@autoreleasepool{[transport enqueue:event fields:safe];}});}
|
||||
uint64_t DYBetaSpanBegin(NSString *stage,NSDictionary *fields){DYBetaStart();if(!gProduct||!gEnabled.load())return 0;uint64_t token=++gSpan;NSDictionary *value=@{@"stage":stage,@"start":@(NSProcessInfo.processInfo.systemUptime),@"fields":DYBetaSafeFields(fields?:@{})};@synchronized(gSpanLock){if(gActive.count>=128)return 0;gActive[@(token)]=value;}
|
||||
if(![stage isEqual:@"inspector_refresh"]){NSMutableDictionary *begin=[[value[@"fields"]mutableCopy]autorelease];begin[@"phase"]=@"begin";DYBetaEvent(stage,begin);}return token;
|
||||
}
|
||||
void DYBetaSpanEnd(uint64_t token,NSDictionary *fields){if(!token)return;NSDictionary *span;@synchronized(gSpanLock){span=[[gActive[@(token)]retain]autorelease];[gActive removeObjectForKey:@(token)];}if(!span)return;double elapsed=(NSProcessInfo.processInfo.systemUptime-[span[@"start"]doubleValue])*1000;if([span[@"stage"]isEqual:@"inspector_refresh"]&&elapsed<100)return;NSMutableDictionary *result=[[span[@"fields"]mutableCopy]autorelease];[result addEntriesFromDictionary:fields?:@{}];result[@"duration_ms"]=@(elapsed);result[@"phase"]=@"end";DYBetaEvent(span[@"stage"],result);}
|
||||
void DYBetaStop(void){DYBetaEvent(@"process_exit",@{@"status":@"normal"});}
|
||||
void DYBetaSendSummary(void){DYBetaStart();if(!gProduct)return;dispatch_async(transport->queue,^{@autoreleasepool{[transport enqueue:@"diagnostic_summary" fields:transport->environment];[transport scanCrashSummaries];[transport drain];}});}
|
||||
@@ -1,4 +1,6 @@
|
||||
#import "AppDelegate.h"
|
||||
#import "DYBetaUpdater.h"
|
||||
#import "../Shared/DYBetaDiagnostics.h"
|
||||
|
||||
static NSString *const DYPluginID = @"com.dayu.color.XPC";
|
||||
static NSString *const DYReleaseAddress = @"https://dayu.media";
|
||||
@@ -116,6 +118,13 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
@property NSInteger secondsRemaining;
|
||||
@property(retain) NSTimer *exitTimer;
|
||||
@property(retain) NSMutableDictionary *diagnostics;
|
||||
@property(retain) DYBetaUpdater *updater;
|
||||
@property(assign) NSTextField *updateTitle, *updateDetail, *diagnosticDetail, *reportID;
|
||||
@property(assign) DYActionButton *updateCheckButton, *updateInstallButton, *updateCancelButton, *sendSummaryButton;
|
||||
@property(assign) NSButton *diagnosticToggle;
|
||||
@property(assign) NSProgressIndicator *updateProgress;
|
||||
@property(retain) NSTimer *updateProgressTimer;
|
||||
@property BOOL updateCheckDone;
|
||||
@end
|
||||
|
||||
@implementation AppDelegate
|
||||
@@ -125,10 +134,21 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
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];
|
||||
DYBetaStart();
|
||||
[self buildInterface]; [self buildMenu];
|
||||
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(refreshDiagnostics:) name:DYBetaDiagnosticsChanged object:nil];
|
||||
self.updater = [[[DYBetaUpdater alloc] init] autorelease];
|
||||
__block AppDelegate *owner = self;
|
||||
self.updater.changed = ^(NSDictionary *state) { [owner updateChanged:state]; };
|
||||
self.updateProgressTimer = [NSTimer scheduledTimerWithTimeInterval:.2 target:self selector:@selector(refreshUpdateProgress:) userInfo:nil repeats:YES];
|
||||
NSInteger expected=[NSUserDefaults.standardUserDefaults integerForKey:@"betaPendingUpdateBuild"];
|
||||
if(expected>0 && [NSBundle.mainBundle.infoDictionary[@"CFBundleVersion"]integerValue]>=expected){
|
||||
DYBetaEvent(@"update_installer",@{@"status":@"completed",@"count":@(expected)});
|
||||
[NSUserDefaults.standardUserDefaults removeObjectForKey:@"betaPendingUpdateBuild"];
|
||||
}
|
||||
[NSWorkspace.sharedWorkspace.notificationCenter addObserver:self selector:@selector(accessibilityChanged:)
|
||||
name:NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification object:nil];
|
||||
[self.window makeKeyAndOrderFront:nil]; [self checkRegistration:nil];
|
||||
[self.window makeKeyAndOrderFront:nil]; [self refreshDiagnostics:nil]; [self checkRegistration:nil]; [self.updater check];
|
||||
}
|
||||
- (void)buildMenu {
|
||||
NSMenu *menu = [[[NSMenu alloc] initWithTitle:@"大鱼调色"] autorelease];
|
||||
@@ -137,6 +157,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
for (NSArray *entry in @[@[@"关于大鱼调色",NSStringFromSelector(@selector(orderFrontStandardAboutPanel:)),@""],
|
||||
@[@"查看功能介绍",NSStringFromSelector(@selector(keepIntroduction:)),@"i"],
|
||||
@[@"重新检查插件",NSStringFromSelector(@selector(checkRegistration:)),@"r"],
|
||||
@[@"检查公测更新",NSStringFromSelector(@selector(checkUpdate:)),@"u"],
|
||||
@[@"访问发布地址",NSStringFromSelector(@selector(openWebsite:)),@""],
|
||||
@[@"关闭窗口",NSStringFromSelector(@selector(closeWindow:)),@"w"],
|
||||
@[@"退出大鱼调色",NSStringFromSelector(@selector(terminate:)),@"q"]]) {
|
||||
@@ -190,6 +211,28 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
DYSurface *hostCard = DYCard(DYGreen(),host);
|
||||
NSStackView *top = DYStack(@[self.registrationCard,hostCard],NSUserInterfaceLayoutOrientationHorizontal,14);
|
||||
[self.registrationCard.heightAnchor constraintEqualToAnchor:hostCard.heightAnchor].active = YES;
|
||||
self.updateTitle = DYLabel(@"公测更新",20,NSFontWeightSemibold,NSColor.whiteColor);
|
||||
self.updateDetail = DYLabel(@"启动时自动检查,新版本由你确认安装。",13,NSFontWeightRegular,DYSecondary());
|
||||
[self.updateDetail.heightAnchor constraintGreaterThanOrEqualToConstant:42].active = YES;
|
||||
self.updateProgress = [[[NSProgressIndicator alloc] initWithFrame:NSZeroRect] autorelease];
|
||||
self.updateProgress.style=NSProgressIndicatorStyleBar; self.updateProgress.indeterminate=NO;
|
||||
self.updateProgress.minValue=0; self.updateProgress.maxValue=1; self.updateProgress.translatesAutoresizingMaskIntoConstraints=NO;
|
||||
self.updateCheckButton=DYButton(@"检查更新",DYBlue(),NO,self,@selector(checkUpdate:));
|
||||
self.updateInstallButton=DYButton(@"下载更新",DYColor(.20,.46,.94),YES,self,@selector(installUpdate:));
|
||||
self.updateInstallButton.enabled=NO;
|
||||
self.updateCancelButton=DYButton(@"取消下载",DYBlue(),NO,self,@selector(cancelUpdate:)); self.updateCancelButton.hidden=YES;
|
||||
DYSurface *updateCard=DYCard(DYBlue(),DYStack(@[DYHeading(@"arrow.triangle.2.circlepath",@"持续改进,及时更新",DYBlue()),self.updateTitle,self.updateDetail,self.updateProgress,
|
||||
DYStack(@[self.updateCheckButton,self.updateInstallButton],NSUserInterfaceLayoutOrientationHorizontal,8),self.updateCancelButton],NSUserInterfaceLayoutOrientationVertical,10));
|
||||
self.diagnosticToggle=[NSButton checkboxWithTitle:@"参与公测诊断" target:self action:@selector(toggleDiagnostics:)];
|
||||
self.diagnosticToggle.font=[NSFont systemFontOfSize:16 weight:NSFontWeightSemibold]; self.diagnosticToggle.state=DYBetaEnabled()?NSControlStateValueOn:NSControlStateValueOff;
|
||||
self.diagnosticDetail=DYLabel(@"诊断准备中…",12,NSFontWeightRegular,DYSecondary());
|
||||
self.reportID=DYLabel(@"报告标识准备中…",10,NSFontWeightRegular,DYSecondary());self.reportID.selectable=YES;
|
||||
self.sendSummaryButton=DYButton(@"发送诊断摘要",DYColor(.67,.59,1),NO,self,@selector(sendSummary:));
|
||||
DYSurface *diagnosticCard=DYCard(DYColor(.67,.59,1),DYStack(@[DYHeading(@"waveform.path.ecg",@"一起完善大鱼调色",DYColor(.67,.59,1)),self.diagnosticToggle,
|
||||
DYLabel(@"仅发送版本、系统环境、加载耗时和本插件错误摘要;不发送素材、预设或账号。可随时关闭,诊断保留 30 天。",12,NSFontWeightRegular,DYSecondary()),
|
||||
self.reportID,self.diagnosticDetail,self.sendSummaryButton],NSUserInterfaceLayoutOrientationVertical,10));
|
||||
NSStackView *beta=DYStack(@[updateCard,diagnosticCard],NSUserInterfaceLayoutOrientationHorizontal,14);
|
||||
[updateCard.heightAnchor constraintEqualToAnchor:diagnosticCard.heightAnchor].active=YES;
|
||||
NSArray *features = @[
|
||||
@[@"slider.horizontal.3",@"完整调色",@"精准还原,自由塑造",@"CST 色彩管理、光影与曲线\nHSL、色轮、蜘蛛盘与白平衡",DYBlue()],
|
||||
@[@"square.grid.2x2",@"LUT 与风格",@"灵感,所见即所得",@"LUT 缩略图浏览与实时预览\n快速收藏,管理常用风格",DYColor(.67,.59,1)],
|
||||
@@ -202,7 +245,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
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);
|
||||
NSStackView *content = DYStack(@[website,hero,top,beta,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;
|
||||
@@ -294,11 +337,56 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
[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 ? @"插件已就绪。关闭此窗口后,可继续在宿主中使用。" : @"注册尚未完成,应用会保留此窗口以便重试。";
|
||||
DYBetaEvent(@"registration",@{@"status":success?@"registered":@"failed"});
|
||||
if(success)[self maybeStartCountdown];
|
||||
else self.exitDetail.stringValue=@"注册尚未完成,应用会保留此窗口以便重试。";
|
||||
}
|
||||
- (void)maybeStartCountdown {
|
||||
if(self.terminating || self.registrationState!=DYReady)return;
|
||||
if(self.keepOpen){self.exitDetail.stringValue=@"插件已就绪。关闭此窗口后,可继续在宿主中使用。";return;}
|
||||
if(!self.updateCheckDone){self.exitDetail.stringValue=@"注册成功,正在检查公测更新…";return;}
|
||||
if(self.exitTimer)return;
|
||||
self.secondsRemaining=3;[self updateCountdown];
|
||||
self.exitTimer=[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(exitTick:) userInfo:nil repeats:YES];
|
||||
}
|
||||
- (void)updateChanged:(NSDictionary *)state {
|
||||
if(self.terminating)return;
|
||||
NSString *phase=state[@"phase"];
|
||||
BOOL busy=[@[@"checking",@"downloading",@"validating"]containsObject:phase];
|
||||
BOOL available=[@[@"available",@"ready",@"host_wait",@"installer"]containsObject:phase];
|
||||
if(![phase isEqual:@"checking"]){self.updateCheckDone=YES;if(available)[self keepIntroduction:nil];}
|
||||
self.updateTitle.stringValue=[phase isEqual:@"available"]?state[@"message"]:@"公测更新";
|
||||
self.updateDetail.stringValue=state[@"message"]?:@"";
|
||||
self.updateCheckButton.enabled=!busy;
|
||||
self.updateInstallButton.enabled=[@[@"available",@"ready",@"host_wait",@"installer"]containsObject:phase];
|
||||
self.updateInstallButton.title=[phase isEqual:@"available"]?@"下载更新":@"安装更新";
|
||||
self.updateCancelButton.hidden=![phase isEqual:@"downloading"];
|
||||
self.updateProgress.indeterminate=[@[@"checking",@"validating"]containsObject:phase];
|
||||
if(self.updateProgress.indeterminate)[self.updateProgress startAnimation:nil];else [self.updateProgress stopAnimation:nil];
|
||||
self.updateProgress.doubleValue=[@[@"ready",@"host_wait",@"installer"]containsObject:phase]?1:0;
|
||||
[self maybeStartCountdown];
|
||||
}
|
||||
- (void)refreshUpdateProgress:(NSTimer *)timer {
|
||||
if([self.updater.state[@"phase"]isEqual:@"downloading"])self.updateProgress.doubleValue=self.updater.downloadFraction;
|
||||
}
|
||||
- (void)checkUpdate:(id)sender { [self keepIntroduction:nil]; [self.updater check]; }
|
||||
- (void)installUpdate:(id)sender {
|
||||
[self keepIntroduction:nil];NSString *phase=self.updater.state[@"phase"];
|
||||
if([phase isEqual:@"available"])[self.updater download];else [self.updater install];
|
||||
}
|
||||
- (void)cancelUpdate:(id)sender { [self keepIntroduction:nil];[self.updater cancel]; }
|
||||
- (void)refreshDiagnostics:(NSNotification *)note {
|
||||
NSDictionary *state=DYBetaStatus();BOOL enabled=DYBetaEnabled();self.diagnosticToggle.state=enabled?NSControlStateValueOn:NSControlStateValueOff;
|
||||
self.sendSummaryButton.enabled=enabled;
|
||||
self.reportID.stringValue=[NSString stringWithFormat:@"报告标识:%@",state[@"installation_id"]?:@"准备中…"];
|
||||
NSNumber *uploaded=state[@"last_upload"];
|
||||
if(!enabled)self.diagnosticDetail.stringValue=@"诊断已关闭。不会继续上传,待发送摘要已清除。";
|
||||
else if(uploaded){NSDateFormatter *format=[[[NSDateFormatter alloc]init]autorelease];format.dateFormat=@"HH:mm:ss";
|
||||
self.diagnosticDetail.stringValue=[NSString stringWithFormat:@"最近送达 %@ · 待发送 %@ 条",[format stringFromDate:[NSDate dateWithTimeIntervalSince1970:uploaded.doubleValue]],state[@"pending"]?:@0];}
|
||||
else self.diagnosticDetail.stringValue=@"诊断将在后台发送,离线时暂存并稍后重试。";
|
||||
}
|
||||
- (void)toggleDiagnostics:(id)sender { [self keepIntroduction:nil];DYBetaSetEnabled(self.diagnosticToggle.state==NSControlStateValueOn);[self refreshDiagnostics:nil]; }
|
||||
- (void)sendSummary:(id)sender { [self keepIntroduction:nil];DYBetaSendSummary();self.diagnosticDetail.stringValue=@"已加入后台发送队列,送达后会显示时间。"; }
|
||||
- (void)updateCountdown { self.exitDetail.stringValue = [NSString stringWithFormat:@"%ld 秒后自动退出\n点击“查看功能介绍”可保留窗口",(long)self.secondsRemaining]; }
|
||||
- (void)exitTick:(NSTimer *)timer {
|
||||
if (--self.secondsRemaining <= 0) {
|
||||
@@ -312,6 +400,7 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
}
|
||||
- (void)confirmHost:(id)sender {
|
||||
if (self.registrationState != DYReady) return;
|
||||
DYBetaEvent(@"host_confirmed",@{@"status":@"user_confirmed"});
|
||||
self.diagnostics[@"hostVerification"] = @"user-confirmed";
|
||||
self.diagnostics[@"terminationReason"] = @"user-confirmed-host";
|
||||
[self writeDiagnostics]; [NSApp terminate:nil];
|
||||
@@ -343,7 +432,10 @@ typedef NS_ENUM(NSInteger,DYRegistrationState) { DYChecking, DYRegistering, DYRe
|
||||
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)app { return YES; }
|
||||
- (void)applicationWillTerminate:(NSNotification *)note {
|
||||
self.terminating = YES; [self.exitTimer invalidate]; self.exitTimer = nil;
|
||||
self.updater.changed=nil; [self.updater cancel];DYBetaStop();
|
||||
[self.updateProgressTimer invalidate];self.updateProgressTimer=nil;
|
||||
[NSNotificationCenter.defaultCenter removeObserver:self];
|
||||
[NSWorkspace.sharedWorkspace.notificationCenter removeObserver:self];
|
||||
}
|
||||
- (void)dealloc { [_exitTimer invalidate]; [_exitTimer release]; [_diagnostics release]; [super dealloc]; }
|
||||
- (void)dealloc { [_exitTimer invalidate]; [_exitTimer release]; [_diagnostics release]; [_updater release]; [_updateProgressTimer invalidate]; [_updateProgressTimer release]; [super dealloc]; }
|
||||
@end
|
||||
@@ -0,0 +1,12 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
@interface DYBetaUpdater : NSObject <NSURLSessionTaskDelegate>
|
||||
@property(copy) void (^changed)(NSDictionary *state);
|
||||
@property(readonly,copy) NSDictionary *state;
|
||||
@property(readonly) double downloadFraction;
|
||||
- (void)check;
|
||||
- (void)download;
|
||||
- (void)install;
|
||||
- (void)cancel;
|
||||
+ (BOOL)validateManifest:(NSDictionary *)manifest error:(NSError **)error;
|
||||
+ (BOOL)validatePackage:(NSURL *)package manifest:(NSDictionary *)manifest error:(NSError **)error;
|
||||
@end
|
||||
@@ -0,0 +1,178 @@
|
||||
#import "DYBetaUpdater.h"
|
||||
#import "../Shared/DYBetaDiagnostics.h"
|
||||
#import <AppKit/AppKit.h>
|
||||
#import <CommonCrypto/CommonDigest.h>
|
||||
#include <atomic>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
|
||||
static NSError *DYUpdateError(NSString *message) { return [NSError errorWithDomain:@"com.dayu.color.update" code:1 userInfo:@{NSLocalizedDescriptionKey:message}]; }
|
||||
static NSURL *updateFolder(void) {
|
||||
NSURL *folder=[[NSFileManager.defaultManager URLsForDirectory:NSCachesDirectory inDomains:NSUserDomainMask].firstObject URLByAppendingPathComponent:@"com.dayu.color/Updates" isDirectory:YES];
|
||||
[NSFileManager.defaultManager createDirectoryAtURL:folder withIntermediateDirectories:YES attributes:@{NSFilePosixPermissions:@0700} error:nil];return folder;
|
||||
}
|
||||
static NSString *digest(NSURL *url) {
|
||||
NSFileHandle *file=[NSFileHandle fileHandleForReadingFromURL:url error:nil];if(!file)return nil;
|
||||
CC_SHA256_CTX context;CC_SHA256_Init(&context);for(;;){NSData *data=[file readDataUpToLength:1024*1024 error:nil];if(!data.length)break;CC_SHA256_Update(&context,data.bytes,(CC_LONG)data.length);}[file closeFile];
|
||||
unsigned char bytes[CC_SHA256_DIGEST_LENGTH];CC_SHA256_Final(bytes,&context);NSMutableString *text=[NSMutableString string];for(int i=0;i<CC_SHA256_DIGEST_LENGTH;i++)[text appendFormat:@"%02x",bytes[i]];return text;
|
||||
}
|
||||
static NSString *command(NSString *path,NSArray *arguments,NSError **error) {
|
||||
NSTask *task=[[[NSTask alloc]init]autorelease];task.executableURL=[NSURL fileURLWithPath:path];task.arguments=arguments;
|
||||
NSPipe *output=[NSPipe pipe];task.standardOutput=output;task.standardError=output;
|
||||
if(![task launchAndReturnError:error])return nil;NSDate *deadline=[NSDate dateWithTimeIntervalSinceNow:40];
|
||||
while(task.running&&deadline.timeIntervalSinceNow>0)[NSThread sleepForTimeInterval:.05];
|
||||
if(task.running){[task terminate];if(error)*error=DYUpdateError(@"更新包验证超时,请稍后重试。");return nil;}
|
||||
NSData *data=[output.fileHandleForReading readDataToEndOfFile];NSString *value=[[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding]autorelease]?:@"";
|
||||
if(task.terminationStatus!=0){if(error)*error=DYUpdateError(@"更新包未通过系统签名或完整性验证。");return nil;}return value;
|
||||
}
|
||||
@interface DYBetaUpdater () {
|
||||
NSURLSession *_session;
|
||||
NSURLSessionTask *_task;
|
||||
NSURL *_package;
|
||||
NSDictionary *_state,*_manifest;
|
||||
std::atomic_uint _generation;
|
||||
}
|
||||
- (void)emit:(NSString *)phase message:(NSString *)message;
|
||||
@end
|
||||
@implementation DYBetaUpdater
|
||||
- (instancetype)init {
|
||||
if((self=[super init])){_generation.store(0);NSURLSessionConfiguration *config=NSURLSessionConfiguration.ephemeralSessionConfiguration;
|
||||
config.timeoutIntervalForRequest=6;config.timeoutIntervalForResource=300;config.HTTPShouldSetCookies=NO;config.URLCache=nil;
|
||||
_session=[[NSURLSession sessionWithConfiguration:config delegate:self delegateQueue:nil]retain];_state=[@{@"phase":@"idle",@"message":@"启动时自动检查公测更新。"}copy];
|
||||
// Reclaim only abandoned validation folders, never another running updater's work.
|
||||
dispatch_async(dispatch_get_global_queue(QOS_CLASS_UTILITY,0),^{
|
||||
for(NSURL *url in [NSFileManager.defaultManager contentsOfDirectoryAtURL:updateFolder() includingPropertiesForKeys:@[NSURLContentModificationDateKey] options:0 error:nil]){
|
||||
NSArray *parts=[url.lastPathComponent componentsSeparatedByString:@"-"];
|
||||
if(parts.count<3||![parts[0]isEqual:@"inspection"]||[parts[1]rangeOfString:@"^[0-9]+$" options:NSRegularExpressionSearch].location==NSNotFound)continue;
|
||||
int pid=[parts[1]intValue];NSDate *date=nil;[url getResourceValue:&date forKey:NSURLContentModificationDateKey error:nil];
|
||||
if(pid>0&&kill(pid,0)!=0&&errno==ESRCH&&date&&date.timeIntervalSinceNow< -600)[NSFileManager.defaultManager removeItemAtURL:url error:nil];
|
||||
}
|
||||
});
|
||||
}return self;
|
||||
}
|
||||
- (void)dealloc {[_session invalidateAndCancel];[_session release];[_task release];[_package release];[_state release];[_manifest release];[_changed release];[super dealloc];}
|
||||
- (NSDictionary *)state { return [[_state copy]autorelease]; }
|
||||
- (double)downloadFraction {int64_t expected=[_manifest[@"size"]longLongValue];return expected>0?MIN(1.,double(_task.countOfBytesReceived)/expected):0;}
|
||||
- (void)emit:(NSString *)phase message:(NSString *)message {
|
||||
if(!NSThread.isMainThread){dispatch_async(dispatch_get_main_queue(),^{[self emit:phase message:message];});return;}
|
||||
[_state release];_state=[@{@"phase":phase,@"message":message?:@"",@"version":_manifest[@"version"]?:@""}copy];if(self.changed)self.changed(_state);
|
||||
}
|
||||
+ (BOOL)validateManifest:(NSDictionary *)manifest error:(NSError **)error {
|
||||
if(![manifest isKindOfClass:NSDictionary.class]){if(error)*error=DYUpdateError(@"公测更新清单格式错误。");return NO;}
|
||||
id build=manifest[@"build"],size=manifest[@"size"];
|
||||
BOOL numbers=[build isKindOfClass:NSNumber.class]&&[size isKindOfClass:NSNumber.class]&&
|
||||
CFGetTypeID((CFTypeRef)build)!=CFBooleanGetTypeID()&&CFGetTypeID((CFTypeRef)size)!=CFBooleanGetTypeID();
|
||||
BOOL valid=numbers&&[manifest[@"bundle_id"]isEqual:@"com.dayu.color"]&&[manifest[@"channel"]isEqual:@"beta"]&&
|
||||
[manifest[@"version"]isKindOfClass:NSString.class]&&[manifest[@"version"]length]>0&&[manifest[@"version"]length]<33&&
|
||||
[build doubleValue]==[build longLongValue]&&[build longLongValue]>0&&[build longLongValue]<1000000000&&
|
||||
[manifest[@"package_type"]isEqual:@"pkg"]&&[manifest[@"install_mode"]isEqual:@"pkg_installer"]&&
|
||||
[size doubleValue]==[size longLongValue]&&[size longLongValue]>0&&[size longLongValue]<=1024LL*1024*1024;
|
||||
NSString *hash=[manifest[@"sha256"]isKindOfClass:NSString.class]?manifest[@"sha256"]:@"";
|
||||
valid=valid&&hash.length==64&&[hash rangeOfString:@"^[a-f0-9]{64}$" options:NSRegularExpressionSearch].location!=NSNotFound;
|
||||
NSURL *url=[manifest[@"download_url"]isKindOfClass:NSString.class]?[NSURL URLWithString:manifest[@"download_url"]]:nil;
|
||||
valid=valid&&DYBetaAllowedURL(url,YES)&&[url.pathExtension.lowercaseString isEqual:@"pkg"];
|
||||
if(!valid&&error)*error=DYUpdateError(@"公测更新清单不完整或不属于大鱼调色。");return valid;
|
||||
}
|
||||
+ (BOOL)validatePackage:(NSURL *)package manifest:(NSDictionary *)manifest error:(NSError **)error {
|
||||
if(![self validateManifest:manifest error:error])return NO;
|
||||
NSDictionary *attributes=[NSFileManager.defaultManager attributesOfItemAtPath:package.path error:error];
|
||||
if(!attributes||[attributes[NSFileSize]longLongValue]!=[manifest[@"size"]longLongValue]||![[digest(package)lowercaseString]isEqual:manifest[@"sha256"]]){if(error)*error=DYUpdateError(@"更新包大小或 SHA-256 不匹配,未打开安装程序。");return NO;}
|
||||
NSString *signature=command(@"/usr/sbin/pkgutil",@[@"--check-signature",package.path],error);
|
||||
if(!signature||![signature containsString:@"Developer ID Installer:"]||![signature containsString:@"(B3W25FX5H5)"]){if(error)*error=DYUpdateError(@"更新包签名团队不匹配。");return NO;}
|
||||
if(!command(@"/usr/sbin/spctl",@[@"--assess",@"--type",@"install",@"--verbose=2",package.path],error))return NO;
|
||||
NSURL *inspection=[updateFolder() URLByAppendingPathComponent:[NSString stringWithFormat:@"inspection-%d-%@",getpid(),NSUUID.UUID.UUIDString]];
|
||||
@try {
|
||||
if(!command(@"/usr/sbin/pkgutil",@[@"--expand-full",package.path,inspection.path],error))return NO;
|
||||
NSMutableArray *apps=[NSMutableArray array];NSUInteger entries=0;
|
||||
NSDirectoryEnumerator *iterator=[NSFileManager.defaultManager enumeratorAtURL:inspection includingPropertiesForKeys:@[NSURLIsSymbolicLinkKey] options:0 errorHandler:nil];
|
||||
for(NSURL *url in iterator){if(++entries>50000){if(error)*error=DYUpdateError(@"更新包文件数量异常。");return NO;}
|
||||
if([url.pathExtension isEqual:@"app"]){[apps addObject:url];[iterator skipDescendants];}
|
||||
}
|
||||
if(apps.count!=1){if(error)*error=DYUpdateError(@"更新包必须包含一个完整的大鱼调色 APP。");return NO;}
|
||||
NSURL *app=apps.firstObject;NSDictionary *info=[NSDictionary dictionaryWithContentsOfURL:[app URLByAppendingPathComponent:@"Contents/Info.plist"]];
|
||||
NSDictionary *plugin=[NSDictionary dictionaryWithContentsOfURL:[app URLByAppendingPathComponent:@"Contents/PlugIns/大鱼调色 XPC Service.pluginkit/Contents/Info.plist"]];
|
||||
if(![info[@"CFBundleIdentifier"]isEqual:@"com.dayu.color"]||![plugin[@"CFBundleIdentifier"]isEqual:@"com.dayu.color.XPC"]||
|
||||
[info[@"CFBundleVersion"]integerValue]!=[manifest[@"build"]integerValue]||[plugin[@"CFBundleVersion"]integerValue]!=[manifest[@"build"]integerValue]||
|
||||
![info[@"CFBundleShortVersionString"]isEqual:manifest[@"version"]]){if(error)*error=DYUpdateError(@"更新包产品或版本与清单不一致。");return NO;}
|
||||
if(!command(@"/usr/bin/codesign",@[@"--verify",@"--deep",@"--strict",app.path],error))return NO;
|
||||
NSString *identity=command(@"/usr/bin/codesign",@[@"-dvvv",app.path],error);
|
||||
if(![identity containsString:@"TeamIdentifier=B3W25FX5H5"]){if(error)*error=DYUpdateError(@"包内 APP 签名团队不匹配。");return NO;}
|
||||
// Product PKGs install the wrapper at its fixed FxPlug location and carry templates.
|
||||
BOOL appTarget=NO,templates=NO;
|
||||
for(NSURL *url in [NSFileManager.defaultManager enumeratorAtURL:inspection includingPropertiesForKeys:nil options:0 errorHandler:nil]){
|
||||
if([url.lastPathComponent isEqual:@"PackageInfo"]){NSString *xml=[NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:nil];
|
||||
NSXMLDocument *document=[[[NSXMLDocument alloc]initWithXMLString:xml options:0 error:nil]autorelease];
|
||||
NSXMLElement *root=document.rootElement;NSString *identifier=[[root attributeForName:@"identifier"]stringValue];
|
||||
NSString *location=[[root attributeForName:@"install-location"]stringValue]?:@"/";
|
||||
NSString *relative=[location isEqual:@"/"]?@"Payload/Library/Plug-Ins/FxPlug/大鱼调色.app":([location isEqual:@"/Library/Plug-Ins/FxPlug"]?@"Payload/大鱼调色.app":nil);
|
||||
if(relative&&[[[[url.URLByDeletingLastPathComponent URLByAppendingPathComponent:relative]path]stringByStandardizingPath]isEqual:app.path.stringByStandardizingPath])appTarget=YES;
|
||||
if(![identifier hasPrefix:@"com.dayu.color.installer."]){if(error)*error=DYUpdateError(@"更新包含不属于本产品的安装组件。");return NO;}
|
||||
}
|
||||
if([url.lastPathComponent isEqual:@"大鱼调色.moef"])templates=YES;
|
||||
}
|
||||
if(!appTarget||!templates){if(error)*error=DYUpdateError(@"更新包缺少正确的插件安装位置或 FCP 模板。");return NO;}
|
||||
return YES;
|
||||
} @finally {[NSFileManager.defaultManager removeItemAtURL:inspection error:nil];}
|
||||
}
|
||||
- (void)check {
|
||||
NSString *phase=_state[@"phase"];if([@[@"checking",@"downloading",@"validating"]containsObject:phase])return;
|
||||
unsigned generation=++_generation;[self emit:@"checking" message:@"正在检查公测更新…"];
|
||||
NSString *url=[NSString stringWithFormat:@"https://dayu.media/wp-json/dayu-color/v1/update?bundle_id=com.dayu.color&channel=beta¤t_build=%@",([NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]?:@"0")];
|
||||
NSMutableURLRequest *request=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:url] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:6];
|
||||
[_task release];_task=[[_session dataTaskWithRequest:request completionHandler:^(NSData *data,NSURLResponse *response,NSError *error){@autoreleasepool{
|
||||
NSDictionary *value=data.length<=32768?[NSJSONSerialization JSONObjectWithData:data?:[NSData data] options:0 error:nil]:nil;
|
||||
if(![value isKindOfClass:NSDictionary.class])value=nil;
|
||||
BOOL ok=!error&&[(NSHTTPURLResponse*)response statusCode]==200&&[value[@"bundle_id"]isEqual:@"com.dayu.color"]&&[value[@"channel"]isEqual:@"beta"]&&[value[@"update_available"]isKindOfClass:NSNumber.class]&&CFGetTypeID((CFTypeRef)value[@"update_available"])==CFBooleanGetTypeID();
|
||||
if(ok&&[value[@"update_available"]boolValue])ok=[DYBetaUpdater validateManifest:value error:&error];
|
||||
NSDictionary *result=[[value copy]autorelease];
|
||||
dispatch_async(dispatch_get_main_queue(),^{if(generation!=self->_generation.load())return;
|
||||
if(!ok){[self emit:@"failed" message:@"暂时无法检查更新,不影响插件使用。"];
|
||||
DYBetaEvent(@"update_check",@{@"status":@"failed",@"error_code":@(error.code)});return;}
|
||||
[self->_manifest release];self->_manifest=[result copy];
|
||||
BOOL newer=[result[@"update_available"]boolValue]&&[result[@"build"]integerValue]>[[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]integerValue];
|
||||
[self emit:newer?@"available":@"latest" message:newer?[NSString stringWithFormat:@"发现公测版 %@(%@)",result[@"version"],result[@"build"]]:@"当前已是最新公测版。"];
|
||||
DYBetaEvent(@"update_check",@{@"status":newer?@"available":@"latest"});
|
||||
});
|
||||
}}]retain];[_task resume];
|
||||
}
|
||||
- (void)download {
|
||||
if(![_state[@"phase"]isEqual:@"available"])return;NSError *error=nil;
|
||||
if(![DYBetaUpdater validateManifest:_manifest error:&error]){[self emit:@"failed" message:error.localizedDescription];return;}
|
||||
if([_manifest[@"build"]integerValue]<=[[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]integerValue])return;
|
||||
unsigned generation=++_generation;NSDictionary *manifest=[[_manifest copy]autorelease];[self emit:@"downloading" message:@"正在下载公测更新,可随时取消。"];
|
||||
NSMutableURLRequest *request=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:manifest[@"download_url"]]];request.timeoutInterval=30;
|
||||
[_task release];_task=[[_session downloadTaskWithRequest:request completionHandler:^(NSURL *temporary,NSURLResponse *response,NSError *failure){@autoreleasepool{
|
||||
if(generation!=self->_generation.load())return;
|
||||
NSError *error=failure;NSURL *destination=[updateFolder() URLByAppendingPathComponent:[NSString stringWithFormat:@"dayu-color-update-%@.pkg",manifest[@"build"]]];
|
||||
if(!error&&[(NSHTTPURLResponse*)response statusCode]==200&&DYBetaAllowedURL(response.URL,YES)){
|
||||
[NSFileManager.defaultManager removeItemAtURL:destination error:nil];
|
||||
if([NSFileManager.defaultManager moveItemAtURL:temporary toURL:destination error:&error]){
|
||||
[self emit:@"validating" message:@"正在验证完整性、签名、公证和插件版本…"];
|
||||
BOOL valid=[DYBetaUpdater validatePackage:destination manifest:manifest error:&error];
|
||||
if(!valid&&!error)error=DYUpdateError(@"更新包未通过验证。");
|
||||
}
|
||||
}else if(!error)error=DYUpdateError(@"更新包下载失败。");
|
||||
if(generation!=self->_generation.load()){[NSFileManager.defaultManager removeItemAtURL:destination error:nil];return;}
|
||||
if(error)[NSFileManager.defaultManager removeItemAtURL:destination error:nil];
|
||||
dispatch_async(dispatch_get_main_queue(),^{if(generation!=self->_generation.load())return;
|
||||
if(error){[self emit:@"available" message:error.localizedDescription];DYBetaEvent(@"update_download",@{@"status":@"failed",@"error_code":@(error.code)});}
|
||||
else{[self->_package release];self->_package=[destination retain];[self emit:@"ready" message:@"更新包已通过校验。保存并退出 FCP / Motion 后可安装。"];
|
||||
DYBetaEvent(@"update_validation",@{@"status":@"passed"});}
|
||||
});
|
||||
}}]retain];[_task resume];
|
||||
}
|
||||
- (void)install {
|
||||
if(![@[@"ready",@"host_wait",@"installer"]containsObject:_state[@"phase"]])return;
|
||||
for(NSString *ID in @[@"com.apple.FinalCut",@"com.apple.FinalCutApp",@"com.apple.motionapp",@"com.apple.motionappApp"])
|
||||
if([NSRunningApplication runningApplicationsWithBundleIdentifier:ID].count){[self emit:@"host_wait" message:@"请先保存并正常退出 FCP / Motion,再点击安装更新。不会强制退出宿主。"];
|
||||
DYBetaEvent(@"update_installer",@{@"status":@"waiting_for_host"});return;}
|
||||
if(_package&&[NSWorkspace.sharedWorkspace openURL:_package]){
|
||||
[NSUserDefaults.standardUserDefaults setObject:_manifest[@"build"] forKey:@"betaPendingUpdateBuild"];[self emit:@"installer" message:@"已打开系统安装程序,请按提示授权并完成安装。"];
|
||||
DYBetaEvent(@"update_installer",@{@"status":@"system_installer_opened"});}
|
||||
else [self emit:@"failed" message:@"无法打开系统安装程序,请重试。"];
|
||||
}
|
||||
- (void)cancel {++_generation;[_task cancel];BOOL newer=[_manifest[@"build"]integerValue]>[[NSBundle.mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]integerValue];[self emit:newer?@"available":@"idle" message:@"已取消,不影响当前插件。"];}
|
||||
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task willPerformHTTPRedirection:(NSHTTPURLResponse *)response newRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURLRequest *))completion {
|
||||
BOOL download=[task isKindOfClass:NSURLSessionDownloadTask.class];completion(DYBetaAllowedURL(request.URL,download)?request:nil);
|
||||
}
|
||||
@end
|
||||
@@ -17,9 +17,9 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.6.1</string>
|
||||
<string>1.7.3</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>44</string>
|
||||
<string>49</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
||||
+5
-1
@@ -1,6 +1,10 @@
|
||||
# 大鱼调色 FxPlug4 交接
|
||||
|
||||
后续主 APP 优化入口:[大鱼调色主APP开发交接.md](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色主APP开发交接.md),包含自动更新、登录验证、生产接口只读盘点与待定产品规则;这些新功能尚未实施。
|
||||
2026-11-02 当前正式安装为 **1.7.3(49)**。本机已复现“更多空间”灰色区域并定位到SDK提供的外层contentView原点偏移;新增坐标对齐修正,首次打开无需绿色按钮。411项原生、27项几何、23项浏览库检查及本机FCP12.4热/冷重开和缩放通过,目标MacBook/FCP12.3仍待使用者复测。详见[修复与边界](research/BrowserMoreSpace1.7.3.md)、[RECOVERY.md](RECOVERY.md)及 `verification/Delivery.json` / `Package.json` / `Release.json`。保留1.7.1 Cube文字行兼容及1.7.0更新/公测诊断。以下保留1.6.0交接历史。
|
||||
|
||||
## 1.6.0交接历史
|
||||
|
||||
后续主 APP 优化入口:[大鱼调色主APP开发交接.md](/Volumes/备份/大鱼调色/大鱼调色/大鱼调色主APP开发交接.md),包含自动更新、登录验证、生产接口只读盘点与待定产品规则;其中自动更新与公测诊断已在1.7.0完成,登录与授权仍未实施。
|
||||
|
||||
2026-11-02,最终正式版 **1.6.0(39)**。本次完成Color Finale本机胶片五组、通道混合器及用户补充的全部八种印片;去掉MOEF作者/网站两行、降低模板格式,并追加一级自动映射默认开启和主标题链接。
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
> 2026-11-02 更新:主 APP 已交付 1.7.0(45)公测。自动更新和云端诊断已经接入,当前实现与部署/隐私/回滚说明见 [Backend/README.md](Backend/README.md),发行与验证见 [Packaging/Release-1.7.0.md](Packaging/Release-1.7.0.md) 和 [verification/BetaClientQA.json](verification/BetaClientQA.json)。下方原始交接保留作背景;登录、授权和业务加密仍未实施,不能把原规划当成已完成状态。
|
||||
|
||||
# 大鱼调色主 APP 开发交接
|
||||
|
||||
> 2026-11-02接续:主APP UI与自动注册已在1.6.1(44)实现,发布地址置顶、注册成功3秒倒计时、FCP由用户确认,外层沙盒按用户明确要求关闭。登录/授权/加密/更新及后端未实现;本文原接口盘点仍作为后续参考。最新行为见[本轮说明](research/MainApp1.6.1.md),交付状态见verification/Delivery.json与MainApp1.6.1.json。
|
||||
|
||||
在新工单中引用
屏蔽一个用户