修复跨平台原生壳产物校验
Project CI / Repository checks (pull_request) Successful in 59s
Project CI / Backend tests (pull_request) Successful in 3m30s
Project CI / Native shell tests (pull_request) Successful in 11m15s
Project CI / Frontend tests (pull_request) Successful in 2m30s

统一使用规范化临时目录规避 macOS 符号链接祖先误判
放宽生成恢复 HTTP 夹具的有界读取时间
补全 Mach-O 正反字节序及 fat 文件头白名单
同步桌面壳架构说明与项目排障记忆
This commit is contained in:
2026-08-05 14:02:17 +08:00
parent 600ce4a2e0
commit b42a83260c
9 changed files with 53 additions and 14 deletions
+6 -2
View File
@@ -4915,9 +4915,13 @@ function assertDesktopReleaseBinaryArtifact() {
const machMagic = header.readUInt32BE(0);
const isMachO =
machMagic === 0xcafebabe ||
machMagic === 0xcafed00d ||
machMagic === 0xbebafeca ||
machMagic === 0xcafebabf ||
machMagic === 0xbfbafeca ||
machMagic === 0xfeedface ||
machMagic === 0xfeedfacf;
machMagic === 0xcefaedfe ||
machMagic === 0xfeedfacf ||
machMagic === 0xcffaedfe;
if (!isMachO || (stat.mode & 0o111) === 0) {
throw new Error(
'desktop macOS release binary must be an executable Mach-O file',