mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-07 03:05:18 +08:00
Update art/copy-to-other-apps.sh
This commit is contained in:
@@ -1,20 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
set -e -u
|
||||||
|
|
||||||
for DENSITY in mdpi hdpi xhdpi xxhdpi xxxhdpi; do
|
for APP in api boot styling tasker widget; do
|
||||||
FOLDER=../app/src/main/res/mipmap-$DENSITY
|
APPDIR=../../termux-$APP
|
||||||
|
for file in ic_foreground ic_launcher; do
|
||||||
for FILE in ic_launcher ic_launcher_round; do
|
cp ../app/src/main/res/drawable/$file.xml \
|
||||||
PNG=$FOLDER/$FILE.png
|
$APPDIR/app/src/main/res/drawable/$file.xml
|
||||||
|
|
||||||
# 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
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cp ../app/src/main/res/drawable-anydpi-v26/ic_launcher.xml \
|
||||||
|
$APPDIR/app/src/main/res/drawable-anydpi-v26/$file.xml
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user