diff --git a/src/blobs/copy.ts b/src/blobs/copy.ts index c3daa1c..8365181 100644 --- a/src/blobs/copy.ts +++ b/src/blobs/copy.ts @@ -25,9 +25,27 @@ export async function copyBlobs(entries: Iterable, srcDir: string, de // Some files need patching if (entry.path.endsWith('.xml')) { let xml = await readFile(srcPath) - // Fix Qualcomm "version 2.0" XMLs + // Fix Qualcomm XMLs + let patched if (xml.startsWith(' { + switch (line) { + case '/*': + return '' + default: + return line + } + }) + .join('\n') + } + + if (patched !== undefined) { await fs.writeFile(outPath, patched) continue }