Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
termux
GitHub Repository: termux/termux-app
Path: blob/master/art/generate-big-icon.sh
1635 views
1
#!/bin/sh
2
set -e -u
3
4
echo "Generating ~/termux-icons/ic_launcher.png..."
5
mkdir -p ~/termux-icons/
6
7
vector2svg ../app/src/main/res/drawable/ic_launcher.xml ~/termux-icons/ic_launcher.svg
8
9
sed -i "" 's/viewBox="0 0 108 108"/viewBox="18 18 72 72"/' ~/termux-icons/ic_launcher.svg
10
11
SIZE=512
12
rsvg-convert \
13
-w $SIZE \
14
-h $SIZE \
15
-o ~/termux-icons/ic_launcher_$SIZE.png \
16
~/termux-icons/ic_launcher.svg
17
18
rsvg-convert \
19
-b black \
20
-w $SIZE \
21
-h $SIZE \
22
-o ~/termux-icons/ic_launcher_square_$SIZE.png \
23
~/termux-icons/ic_launcher.svg
24
25