2022-01-04 18:33:57 +00:00
|
|
|
#!/bin/sh
|
2022-01-05 17:49:13 +00:00
|
|
|
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
|
|
|
|
|
2022-01-04 18:33:57 +00:00
|
|
|
|
2022-01-04 18:35:04 +00:00
|
|
|
case $APP_ANDROID_TYPE in
|
2022-01-04 18:33:57 +00:00
|
|
|
"monero.com")
|
2022-01-05 17:49:13 +00:00
|
|
|
APP_LOGO=$ASSETS_DIR/images/monero.com_logo.png
|
|
|
|
ANDROID_ICON=$MONERO_COM_PATH
|
|
|
|
;;
|
2022-01-04 18:33:57 +00:00
|
|
|
"cakewallet")
|
2022-01-05 17:49:13 +00:00
|
|
|
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
|
|
|
|
ANDROID_ICON=$CAKEWALLET_PATH
|
|
|
|
;;
|
2022-01-04 18:33:57 +00:00
|
|
|
esac
|
|
|
|
|
2022-01-05 17:49:13 +00:00
|
|
|
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
|