chore(mobile-app): align native build metadata

This commit is contained in:
2026-07-23 21:18:51 +08:00
parent 927458b9e0
commit dfaa198ac8
4 changed files with 300 additions and 241 deletions
+5 -2
View File
@@ -13,8 +13,11 @@ const readPng = (relativePath) => {
fail('manifest is missing an App asset path');
return undefined;
}
const path = resolve(projectRoot, 'src', relativePath);
if (!existsSync(path)) {
const path = [
resolve(projectRoot, 'src', relativePath),
resolve(projectRoot, relativePath)
].find(existsSync);
if (!path) {
fail(`missing asset: ${relativePath}`);
return undefined;
}