实现项目真机预览与待审版本扫码验收

需求:接管客户端未提交 WIP,保留真机预览,移除旧登录原型并维持 2.0.0。

实现:由 Main 核对项目与精确 Release,签发短时 Owner preview;补充一键提交映射能力及 Windows ZIP 预检兼容。
This commit is contained in:
2026-08-08 17:57:36 +08:00
parent 7b23cce67a
commit 1a19ad9808
20 changed files with 1890 additions and 12 deletions

View File

@@ -393,7 +393,10 @@ async function readArchiveData(archivePath: string, entry: ArchiveEntry): Promis
const data = entry.getData();
if (data.byteLength > 0 || entry.header.size === 0) return data;
try {
const result = await execFileAsync('unzip', ['-p', archivePath, entry.entryName], { maxBuffer: MAX_SCANNED_TEXT_BYTES });
const command = process.platform === 'win32'
? { file: 'tar', args: ['-xOf', archivePath, entry.entryName] }
: { file: 'unzip', args: ['-p', archivePath, entry.entryName] };
const result = await execFileAsync(command.file, command.args, { maxBuffer: MAX_SCANNED_TEXT_BYTES });
return Buffer.from(result.stdout);
} catch (error) {
throw new Error(