framework7-cli icon indicating copy to clipboard operation
framework7-cli copied to clipboard

Generate cordova adaptives icons

Open isaacbatst opened this issue 6 years ago • 1 comments

Could 'generate-assets' generate also cordova adaptives icons? The user sends the background and the foreground, so it generates the necessary densities.

isaacbatst avatar Aug 22 '19 23:08 isaacbatst

@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

Samnan avatar Nov 10 '20 17:11 Samnan