Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
termux
GitHub Repository: termux/termux-app
Path: blob/master/art/generate-launcher-images.sh
1635 views
1
#!/bin/sh
2
3
for DENSITY in mdpi hdpi xhdpi xxhdpi xxxhdpi; do
4
case $DENSITY in
5
mdpi) SIZE=48;;
6
hdpi) SIZE=72;;
7
xhdpi) SIZE=96;;
8
xxhdpi) SIZE=144;;
9
xxxhdpi) SIZE=192;;
10
esac
11
12
FOLDER=../app/src/main/res/mipmap-$DENSITY
13
mkdir -p $FOLDER
14
15
for FILE in ic_launcher ic_launcher_round; do
16
PNG=$FOLDER/$FILE.png
17
rsvg-convert -w $SIZE -h $SIZE $FILE.svg > $PNG
18
zopflipng -y $PNG $PNG
19
done
20
done
21
22