Created
September 20, 2017 17:23
-
-
Save chinloongtan/050d4271a364435f55e402b37270fbeb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ionic cordova resources android --icon --force | |
APP_DIR="dir/to/your/app" | |
# mdpi | |
cp -rf android/icon/drawable-mdpi-icon.png "$APP_DIR/android/app/src/main/res/mipmap-mdpi/ic_launcher.png" | |
# hdpi | |
cp android/icon/drawable-hdpi-icon.png "$APP_DIR/android/app/src/main/res/mipmap-hdpi/ic_launcher.png" | |
# xhdpi | |
cp android/icon/drawable-xhdpi-icon.png "$APP_DIR/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png" | |
# xxhdpi | |
cp android/icon/drawable-xxhdpi-icon.png "$APP_DIR/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png" | |
# xxxhdpi | |
cp android/icon/drawable-xxxhdpi-icon.png "$APP_DIR/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment