完成P7验收修复与CI稳定性加固
修正工作台前端 lint 与正式测试切片初始化依赖 补齐可调参数完成态测试夹具并稳定生成恢复 HTTP 读取 修正 macOS Mach-O release 产物识别与原生壳门禁 同步阶段七验收文档与长期排障记忆
This commit is contained in:
@@ -733,7 +733,10 @@ for (const snippet of [
|
||||
'header[3] === 0x46',
|
||||
'(stat.mode & 0o111) === 0',
|
||||
'header.readUInt32BE(0)',
|
||||
'machMagic === 0xcafebabf',
|
||||
'machMagic === 0xbfbafeca',
|
||||
'machMagic === 0xfeedfacf',
|
||||
'machMagic === 0xcffaedfe',
|
||||
'header[0] !== 0x4d',
|
||||
'header[1] !== 0x5a',
|
||||
"console.log('[check:native-shells] desktop-release-binary-artifact')",
|
||||
|
||||
@@ -49,9 +49,13 @@ function assertExecutable(filePath, label) {
|
||||
const machMagic = header.readUInt32BE(0);
|
||||
const isMachO =
|
||||
machMagic === 0xcafebabe ||
|
||||
machMagic === 0xcafed00d ||
|
||||
machMagic === 0xcafebabf ||
|
||||
machMagic === 0xbebafeca ||
|
||||
machMagic === 0xbfbafeca ||
|
||||
machMagic === 0xfeedface ||
|
||||
machMagic === 0xfeedfacf;
|
||||
machMagic === 0xfeedfacf ||
|
||||
machMagic === 0xcefaedfe ||
|
||||
machMagic === 0xcffaedfe;
|
||||
if (!isMachO || (stat.mode & 0o111) === 0) {
|
||||
throw new Error(`${label} must be an executable Mach-O file`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user