Update art/copy-to-other-apps.sh

This commit is contained in:
Fredrik Fornwall 2019-01-10 23:58:18 +01:00
parent e2bda2bb52
commit 8e0b8623bc
1 changed files with 8 additions and 15 deletions

View File

@ -1,20 +1,13 @@
#!/bin/sh
set -e -u
for DENSITY in mdpi hdpi xhdpi xxhdpi xxxhdpi; do
FOLDER=../app/src/main/res/mipmap-$DENSITY
for FILE in ic_launcher ic_launcher_round; do
PNG=$FOLDER/$FILE.png
# Update other apps:
for APP in api boot styling tasker widget; do
APPDIR=../../termux-$APP
if [ -d $APPDIR ]; then
APP_FOLDER=$APPDIR/app/src/main/res/mipmap-$DENSITY
mkdir -p $APP_FOLDER
cp $PNG $APP_FOLDER/$FILE.png
fi
done
for APP in api boot styling tasker widget; do
APPDIR=../../termux-$APP
for file in ic_foreground ic_launcher; do
cp ../app/src/main/res/drawable/$file.xml \
$APPDIR/app/src/main/res/drawable/$file.xml
done
cp ../app/src/main/res/drawable-anydpi-v26/ic_launcher.xml \
$APPDIR/app/src/main/res/drawable-anydpi-v26/$file.xml
done