miapp-resources
v0.1.9
Published
Generate resources (icons, splash, marketing) for your miapp
Downloads
2
Maintainers
Readme
miapp-resources
Resources generator for your miapp's (based on Cordova).
Create a splash screen (2732x2732 png) and an icon (1024x1024 png) once in the resources folder of your Cordova project and use miapp-resources to automatically crop and copy it for all the platforms your project supports (currenty works with iOS, Android and Windows 10).
Create one marketing json file to generate all your required marketing stuff in /resources/marketing directory.
Installation
$ sudo npm install miapp-resources -g
Requirements
- GraphicsMagick installed (Mac:
brew install graphicsmagick
, Debian/Ubuntu:sudo apt-get install graphicsmagick
, Windows: See here) - ghostscript installed (Mac:
brew install ghostscript
, ...)
Usage
For your app platform (like android, ios ...), create a splash.png
and a icon.png
files in the /resources
folder of your cordova project and run:
$ miapp-resources --android --ios
For your marketing, create a marketing.json
as
{
"marketing": [
{
"text": "My app is doing this",
"landscape": "resources/marketing-01-ipad.png",
"portrait": "resources/marketing-01-iphone.png"
},
{
"text": "and doing that !",
"landscape": "resources/marketing-02-iphone.png",
"portrait": "resources/marketing-02-ipad.png"
}
]
}
and run
$ miapp-resources --marketing
or
$ miapp-resources --android --ios --marketing
License
MIT
Fork from (and thanks to) https://github.com/helixhuang/cordova-resources