cake_wallet/scripts/android/app_icon.sh

38 lines
1.2 KiB
Bash
Raw Permalink Normal View History

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
2022-01-14 18:35:29 +00:00
MONEROCOM_ICON_SET_PATH=$ASSETS_DIR/images/monerocom_android_icon
2022-01-05 17:49:13 +00:00
CAKEWALLET_PATH=$ASSETS_DIR/images/cakewallet_android_icon.png
2022-01-14 18:35:29 +00:00
CAKEWALLET_ICON_SET_PATH=$ASSETS_DIR/images/cakewallet_android_icon
2022-01-05 17:49:13 +00:00
ANDROID_ICON=""
ANDROID_ICON_DEST_PATH=$ANDROID_ICON_DIR/ic_launcher.png
2022-01-14 18:35:29 +00:00
ANDROID_ICON_SET=""
ANDROID_ICON_SET_DEST_PATH=`pwd`/../../android/app/src/main/res
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-03-30 15:57:04 +00:00
APP_LOGO=$ASSETS_DIR/images/monero.com_logo.png
ANDROID_ICON=$MONERO_COM_PATH
ANDROID_ICON_SET=$MONEROCOM_ICON_SET_PATH
2022-01-05 17:49:13 +00:00
;;
2022-01-04 18:33:57 +00:00
"cakewallet")
2022-01-14 18:35:29 +00:00
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
ANDROID_ICON=$CAKEWALLET_PATH
ANDROID_ICON_SET=$CAKEWALLET_ICON_SET_PATH
;;
2022-03-30 15:57:04 +00:00
"haven")
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
ANDROID_ICON=$CAKEWALLET_PATH
ANDROID_ICON_SET=$CAKEWALLET_ICON_SET_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
2022-01-14 18:35:29 +00:00
cp -a $ANDROID_ICON_SET/. $ANDROID_ICON_SET_DEST_PATH/