Skip to navigation
Create app icons for a cordova app
19.09.18
1. apt-get install imagemagick 2. install npm install -g cordova-icon 3. usage: cordova-icon 4. hook to the build process Creating a cordova-cli hook Since the execution of cordova-icon is pretty fast, you can add it as a cordova-cli hook to execute before every build. To create a new hook, go to your cordova project and run: $ mkdir hooks/after_prepare $ vi hooks/after_prepare/cordova-icon.sh Paste the following into the hook script: #!/bin/bash cordova-icon Then give the script +x permission: $ chmod +x hooks/after_prepare/cordova-icon.sh That's it. Now every time you cordova build, the icons will be auto generated.
https://github.com/AlexDisler/cordova-icon
Reply
Anonymous
Information Epoch 1746075528
You can always add complexity.
Home
Notebook
Contact us