cake_wallet/scripts/android/app_icon.sh
2022-01-05 19:49:13 +02:00

26 lines
743 B
Bash
Executable file

#!/bin/sh
APP_LOGO=""
APP_LOGO_DEST_PATH=`pwd`/../../assets/images/app_logo.png
ASSETS_DIR=`pwd`/../../assets
ANDROID_ICON_DIR=`pwd`/../../android/app/src/main/res/drawable
MONERO_COM_PATH=$ASSETS_DIR/images/monero.com_android_icon.png
CAKEWALLET_PATH=$ASSETS_DIR/images/cakewallet_android_icon.png
ANDROID_ICON=""
ANDROID_ICON_DEST_PATH=$ANDROID_ICON_DIR/ic_launcher.png
case $APP_ANDROID_TYPE in
"monero.com")
APP_LOGO=$ASSETS_DIR/images/monero.com_logo.png
ANDROID_ICON=$MONERO_COM_PATH
;;
"cakewallet")
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
ANDROID_ICON=$CAKEWALLET_PATH
;;
esac
rm $APP_LOGO_DEST_PATH
rm $ANDROID_ICON_DEST_PATH
ln -s $APP_LOGO $APP_LOGO_DEST_PATH
ln -s $ANDROID_ICON $ANDROID_ICON_DEST_PATH