Update build scripts; Add revised icon

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

View File

@ -2,13 +2,13 @@ image: openjdk:18-jdk-bullseye
before_script:
- apt --quiet update --yes
- apt --quiet install --yes wget tar unzip perl p7zip-full
- apt --quiet install --yes wget tar unzip perl p7zip-full imagemagick pngquant
BleedingEdge:
interruptible: true
stage: build
script: |
StartDir="$(pwd)"
StartDir="$(pwd)"
mkdir -p ../AndroidSdk
cd ../AndroidSdk
wget -O BuildTools.zip https://dl.google.com/android/repository/build-tools_r30.0.3-linux.zip
@ -16,7 +16,6 @@ BleedingEdge:
yes A | unzip BuildTools.zip || true
yes A | unzip Platform.zip || true
cd "$StartDir"
sh ./tools/Build.sh
artifacts:
paths:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 169 KiB

View File

@ -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
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 ..