From 8e0b8623bcf1d58482b739e6636bb34e22950d2b Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 10 Jan 2019 23:58:18 +0100 Subject: [PATCH] Update art/copy-to-other-apps.sh --- art/copy-to-other-apps.sh | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/art/copy-to-other-apps.sh b/art/copy-to-other-apps.sh index 499351fc..cb5ed133 100755 --- a/art/copy-to-other-apps.sh +++ b/art/copy-to-other-apps.sh @@ -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