Skip to content

Instantly share code, notes, and snippets.

@chinloongtan
Created September 20, 2017 17:23
Show Gist options
  • Save chinloongtan/050d4271a364435f55e402b37270fbeb to your computer and use it in GitHub Desktop.
Save chinloongtan/050d4271a364435f55e402b37270fbeb to your computer and use it in GitHub Desktop.
#!/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