mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-25 08:39:06 +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
|
fi
|
||||||
|
|
||||||
sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./../../pubspec.yaml
|
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
|
#!/bin/sh
|
||||||
ICON_PATH=""
|
APP_LOGO=""
|
||||||
DEST_PATH=`pwd`/../../assets/images/app_logo.png
|
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
|
case $APP_ANDROID_TYPE in
|
||||||
"monero.com")
|
"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")
|
"cakewallet")
|
||||||
ICON_PATH=`pwd`/../../assets/images/cakewallet_logo.png;;
|
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
|
||||||
|
ANDROID_ICON=$CAKEWALLET_PATH
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
rm $DEST_PATH
|
rm $APP_LOGO_DEST_PATH
|
||||||
ln -s $ICON_PATH $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