npm install cordova-gen -g
$ cd YOUR_PROJECT_FOLER
$ cp config.xml www/config.xml
$ cordova-gen www/img/all.png "#000"
- cordova-gen read app name from
www/config.xml
. for example , config.xml has<name>Tidean</name>
. thenCordova build ios
will build a folder likeplatforms/ios/Tidean/Resources/
www/img/all.png
is a 2048x2048 image file , which will convert to many sizes includes icon & land screen"#000"
is the background color of generated land screen image files , it should be double quotedcordova-gen
must be executed in YOUR_PROJECT_ROOT- now only suport iOS and Android