diff --git a/art/generate-big-icon.sh b/art/generate-big-icon.sh new file mode 100755 index 00000000..553f3aac --- /dev/null +++ b/art/generate-big-icon.sh @@ -0,0 +1,23 @@ +#!/bin/sh +set -e -u + +echo "Generating ~/termux-icons/ic_launcher.png..." +mkdir -p ~/termux-icons/ + +vector2svg ../app/src/main/res/drawable/ic_launcher.xml ~/termux-icons/ic_launcher.svg + +sed -i "" 's/viewBox="0 0 108 108"/viewBox="18 18 72 72"/' ~/termux-icons/ic_launcher.svg + +SIZE=512 +rsvg-convert \ + -w $SIZE \ + -h $SIZE \ + -o ~/termux-icons/ic_launcher.png \ + ~/termux-icons/ic_launcher.svg + +rsvg-convert \ + -b black \ + -w $SIZE \ + -h $SIZE \ + -o ~/termux-icons/ic_launcher_square.png \ + ~/termux-icons/ic_launcher.svg