mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
Fixes for android app icons
This commit is contained in:
parent
1afd00fa3e
commit
96d4b90ad3
4 changed files with 21 additions and 9 deletions
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
BIN
assets/images/monero.com_android_icon.png
Normal file
BIN
assets/images/monero.com_android_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
|
@ -6,4 +6,5 @@ if [ -z "$APP_ANDROID_TYPE" ]; then
|
|||
fi
|
||||
|
||||
sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./../../pubspec.yaml
|
||||
sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./../../android/app/src/main/AndroidManifest.xml
|
||||
sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./../../android/app/src/main/AndroidManifest.xml
|
||||
./app_icon.sh
|
|
@ -1,15 +1,26 @@
|
|||
#!/bin/sh
|
||||
ICON_PATH=""
|
||||
DEST_PATH=`pwd`/../../assets/images/app_logo.png
|
||||
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")
|
||||
ICON_PATH=`pwd`/../../assets/images/monero.com_logo.png;;
|
||||
APP_LOGO=$ASSETS_DIR/images/monero.com_logo.png
|
||||
ANDROID_ICON=$MONERO_COM_PATH
|
||||
;;
|
||||
"cakewallet")
|
||||
ICON_PATH=`pwd`/../../assets/images/cakewallet_logo.png;;
|
||||
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
|
||||
ANDROID_ICON=$CAKEWALLET_PATH
|
||||
;;
|
||||
esac
|
||||
|
||||
rm $DEST_PATH
|
||||
ln -s $ICON_PATH $DEST_PATH
|
||||
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue