[tauri] TauriPlatforms: Read the built APK's own values, carry Rosea's launcher icon into gen/android, survive a dropped USB link

This commit is contained in:
2026-11-17 18:57:14 +01:00
parent a93ef09956
commit 9e3d389f82
7 changed files with 208 additions and 39 deletions
+6
View File
@@ -36,6 +36,12 @@ function problems(): string[] {
if (!existsSync(at)) found.push(`res/xml/${f} is missing`);
else if (readFileSync(at, 'utf8') !== readFileSync(join(RES_FROM, f), 'utf8')) found.push(`res/xml/${f} differs from android/res/xml/${f}`);
}
// The launcher icon is Rosea's, not the Tauri logo `init` put there (scripts/icons.ts).
const ours = join(SRC_TAURI, 'icons', 'android', 'mipmap-mdpi', 'ic_launcher.png');
const there = join(MAIN, 'res', 'mipmap-mdpi', 'ic_launcher.png');
if (!existsSync(ours) || !existsSync(there) || !readFileSync(ours).equals(readFileSync(there))) {
found.push("the launcher icon is not Rosea's (run 'tsx scripts/icons.ts')");
}
return found;
}