(archivePath: string)
| 75 | } |
| 76 | |
| 77 | export async function readZipEntries(archivePath: string): Promise<string[] | null> { |
| 78 | const result = await runCmd('unzip', ['-Z1', archivePath], { allowFailure: true }); |
| 79 | if (result.exitCode !== 0) return null; |
| 80 | return result.stdout |
| 81 | .split(/\r?\n/) |
| 82 | .map((entry) => entry.trim()) |
| 83 | .filter(Boolean); |
| 84 | } |
| 85 | |
| 86 | function resolveArchiveRootName(entries: string[], platform: 'ios' | 'android'): string { |
| 87 | const roots = new Set<string>(); |
no test coverage detected
searching dependent graphs…