完成素材无限画布阶段四资源总览实时闭环
同步资源总览稳定基线并接入新增与精修入口 实现 revision 单调合并、事件去重和旧 scope 隔离 补齐依赖图、双布局协调和三阶段一次性聚焦 覆盖保存、项目切换、搜索隐藏及异步竞态测试 同步阶段四技术方案、决策记录和排障经验
This commit is contained in:
@@ -733,7 +733,14 @@ for (const snippet of [
|
||||
'header[3] === 0x46',
|
||||
'(stat.mode & 0o111) === 0',
|
||||
'header.readUInt32BE(0)',
|
||||
'machMagic === 0xcafebabe',
|
||||
'machMagic === 0xbebafeca',
|
||||
'machMagic === 0xcafebabf',
|
||||
'machMagic === 0xbfbafeca',
|
||||
'machMagic === 0xfeedface',
|
||||
'machMagic === 0xcefaedfe',
|
||||
'machMagic === 0xfeedfacf',
|
||||
'machMagic === 0xcffaedfe',
|
||||
'header[0] !== 0x4d',
|
||||
'header[1] !== 0x5a',
|
||||
"console.log('[check:native-shells] desktop-release-binary-artifact')",
|
||||
@@ -755,6 +762,15 @@ for (const snippet of [
|
||||
"'desktop'",
|
||||
'fs.copyFileSync(sourcePath, stagedPath)',
|
||||
'fs.chmodSync(stagedPath, sourceMode & 0o777)',
|
||||
'header.readUInt32BE(0)',
|
||||
'machMagic === 0xcafebabe',
|
||||
'machMagic === 0xbebafeca',
|
||||
'machMagic === 0xcafebabf',
|
||||
'machMagic === 0xbfbafeca',
|
||||
'machMagic === 0xfeedface',
|
||||
'machMagic === 0xcefaedfe',
|
||||
'machMagic === 0xfeedfacf',
|
||||
'machMagic === 0xcffaedfe',
|
||||
"console.log(`[desktop-shell:stage-release-binary] ${stagedPath}`)",
|
||||
]) {
|
||||
if (!stageReleaseBinarySource.includes(snippet)) {
|
||||
|
||||
@@ -49,9 +49,13 @@ function assertExecutable(filePath, label) {
|
||||
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(`${label} must be an executable Mach-O file`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user