mirror of
https://gitlab.com/octtspacc/browserocto
synced 2025-06-05 21:49:19 +02:00
Update build scripts; Add revised icon
This commit is contained in:
@ -7,5 +7,7 @@ mv ./java ./src
|
||||
cp -r ../tools/tiny-android-template/* ./
|
||||
echo "${SecEncodedKeystore}" | base64 --decode > ./Keystore.jks
|
||||
|
||||
sh ../tools/BuildAssets.sh
|
||||
|
||||
perl ./link.pl
|
||||
bash ./make.sh
|
||||
|
22
tools/BuildAssets.sh
Executable file
22
tools/BuildAssets.sh
Executable 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 ..
|
Reference in New Issue
Block a user