in lib/prepare.js [159:179]
function updateIcons (cordovaProject, locations) {
const icons = cordovaProject.projectConfig.getIcons('electron');
// Skip if there are no app defined icons in config.xml
if (!icons.length) {
events.emit('verbose', 'This app does not have icons defined');
return;
}
const filteredIcons = icons.filter(icon => checkIconsAttributes(icon));
if (!filteredIcons.length) {
throw new CordovaError('No icon match the required size. Please ensure that ".png" icon is at least 512x512 and has a src attribute.');
}
const chosenIcons = prepareIcons(filteredIcons);
const resourceMap = createResourceMap(cordovaProject, locations, chosenIcons);
events.emit('verbose', 'Updating icons');
copyResources(cordovaProject.root, resourceMap);
}