in lib/prepare.js [141:154]
function updatePathToSplashScreen (config, locations, resourceMap) {
const elementKeys = Object.keys(resourceMap[0]);
const splashScreenPath = resourceMap[0][elementKeys];
const splash = config.doc.find('splash');
const preferences = config.doc.findall('preference');
splash.attrib.src = path.relative(locations.www, splashScreenPath);
for (const preference of preferences) {
if (preference.attrib.name === 'SplashScreen') {
preference.attrib.value = splash.attrib.src;
}
}
config.write();
}