Update build scripts; Add revised icon

This commit is contained in:
2023-03-02 16:54:42 +01:00
parent 1f0ab640ba
commit a002b787d0
9 changed files with 26 additions and 3 deletions

22
tools/BuildAssets.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
Img=ic_launcher.png
cd ./res
for Dpi in m h xh xxh xxxh
do
mkdir -p ./drawable-${Dpi}dpi
done
convert ./drawable/$Img -resize 48x48 ./drawable-mdpi/$Img
convert ./drawable/$Img -resize 72x72 ./drawable-hdpi/$Img
convert ./drawable/$Img -resize 96x96 ./drawable-xhdpi/$Img
convert ./drawable/$Img -resize 144x144 ./drawable-xxhdpi/$Img
convert ./drawable/$Img -resize 192x192 ./drawable-xxxhdpi/$Img
for Dpi in m h xh xxh xxxh
do
pngquant -v --strip --speed=1 --force -o ./drawable-${Dpi}dpi/$Img ./drawable-${Dpi}dpi/$Img
done
cd ..