This commit is contained in:
Bastien COIGNOUX
2026-05-04 08:28:32 +02:00
parent 7f94f83940
commit 695d4e76d0
46 changed files with 13390 additions and 251 deletions

View File

@ -0,0 +1,26 @@
/**
* Postinstall : vérifie que les icônes Expo existent (déjà dans le repo).
*/
const fs = require('fs');
const path = require('path');
const required = [
'assets/images/icon.png',
'assets/images/splash-icon.png',
'assets/images/adaptive-icon.png',
'assets/images/favicon.png',
];
const root = path.join(__dirname, '..');
let ok = true;
for (const rel of required) {
const p = path.join(root, rel);
if (!fs.existsSync(p)) {
console.warn('[ensure-assets] missing:', rel);
ok = false;
}
}
if (!ok) {
console.warn('[ensure-assets] add missing images under assets/images/');
}
process.exit(0);