in lib/prepare.js [118:136]
function prepareSplashScreens (splashScreens) {
let splashScreen;
// choose one icon for a target
const chooseOne = (defaultSplash, splash) => {
events.emit('verbose', `Found extra splash screen image: ${defaultSplash.src} and ignoring in favor of ${splash.src}.`);
defaultSplash = splash;
return defaultSplash;
};
// iterate over remaining icon elements to find the icons for the app and installer
for (const image of splashScreens) {
image.extension = path.extname(image.src);
splashScreen = splashScreen ? chooseOne(splashScreen, image) : image;
}
return { splashScreen };
}