cake_wallet/scripts/macos/app_icon.sh
Omar Hatem d8f1cdc7ef
v4.13.0 and v1.10.0 (#1265)
* New versions

* Minor fix [skip ci]

* Minor UI enhancement for balance card

* Minor UI enhancement

* Add Monero build configs for MacOS [skip ci]

* Add rest of Macos Configs [skip ci]

* Delete empty file
Save and report restore from backup exceptions [skip ci]

* Minor fixes
2024-01-16 02:02:10 +02:00

44 lines
No EOL
2.2 KiB
Bash
Executable file

#!/bin/sh
ICON_16_PATH=""
ICON_32_PATH=""
ICON_64_PATH=""
ICON_128_PATH=""
ICON_256_PATH=""
ICON_1024_PATH=""
DEST_DIR_PATH=`pwd`/../../macos/Runner/Assets.xcassets/AppIcon.appiconset
case $APP_MACOS_TYPE in
"monero.com")
ICON_16_PATH=`pwd`/../../assets/images/macos_icons/monero_macos_icons/monero_macos_16.png
ICON_32_PATH=`pwd`/../../assets/images/macos_icons/monero_macos_icons/monero_macos_32.png
ICON_64_PATH=`pwd`/../../assets/images/macos_icons/monero_macos_icons/monero_macos_64.png
ICON_128_PATH=`pwd`/../../assets/images/macos_icons/monero_macos_icons/monero_macos_128.png
ICON_256_PATH=`pwd`/../../assets/images/macos_icons/monero_macos_icons/monero_macos_256.png
ICON_512_PATH=`pwd`/../../assets/images/macos_icons/monero_macos_icons/monero_macos_512.png
ICON_1024_PATH=`pwd`/../../assets/images/macos_icons/monero_macos_icons/monero_macos_1024.png;;
"cakewallet")
ICON_16_PATH=`pwd`/../../assets/images/macos_icons/cakewallet_macos_icons/cakewallet_macos_16.png
ICON_32_PATH=`pwd`/../../assets/images/macos_icons/cakewallet_macos_icons/cakewallet_macos_32.png
ICON_64_PATH=`pwd`/../../assets/images/macos_icons/cakewallet_macos_icons/cakewallet_macos_64.png
ICON_128_PATH=`pwd`/../../assets/images/macos_icons/cakewallet_macos_icons/cakewallet_macos_128.png
ICON_256_PATH=`pwd`/../../assets/images/macos_icons/cakewallet_macos_icons/cakewallet_macos_256.png
ICON_512_PATH=`pwd`/../../assets/images/macos_icons/cakewallet_macos_icons/cakewallet_macos_512.png
ICON_1024_PATH=`pwd`/../../assets/images/macos_icons/cakewallet_macos_icons/cakewallet_macos_1024.png;;
esac
rm $DEST_DIR_PATH/app_icon_16.png
rm $DEST_DIR_PATH/app_icon_32.png
rm $DEST_DIR_PATH/app_icon_64.png
rm $DEST_DIR_PATH/app_icon_128.png
rm $DEST_DIR_PATH/app_icon_256.png
rm $DEST_DIR_PATH/app_icon_512.png
rm $DEST_DIR_PATH/app_icon_1024.png
ln -s $ICON_16_PATH $DEST_DIR_PATH/app_icon_16.png
ln -s $ICON_32_PATH $DEST_DIR_PATH/app_icon_32.png
ln -s $ICON_64_PATH $DEST_DIR_PATH/app_icon_64.png
ln -s $ICON_128_PATH $DEST_DIR_PATH/app_icon_128.png
ln -s $ICON_256_PATH $DEST_DIR_PATH/app_icon_256.png
ln -s $ICON_512_PATH $DEST_DIR_PATH/app_icon_512.png
ln -s $ICON_1024_PATH $DEST_DIR_PATH/app_icon_1024.png