framework7-cli
framework7-cli copied to clipboard
Generate cordova adaptives icons
Could 'generate-assets' generate also cordova adaptives icons? The user sends the background and the foreground, so it generates the necessary densities.
@isaacbatst for now you can use the cordova-res package to generate adaptive icons
npm install -g cordova-res
cd cordova
cordova-res android --icon-foreground-source=res/icon-foreground.png --icon-background-source=res/icon-background.png
it will generate adaptive icons and also modify the config.xml in cordova folder. Review and update the config as desired.
To regenerate icons again, you can avoid config changes by using
cordova-res android --skip-config --icon-foreground-source=res/icon-foreground.png --icon-background-source=res/icon-background.png