Update build scripts; Add revised icon
@ -2,13 +2,13 @@ image: openjdk:18-jdk-bullseye
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt --quiet update --yes
|
- 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:
|
BleedingEdge:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
stage: build
|
stage: build
|
||||||
script: |
|
script: |
|
||||||
StartDir="$(pwd)"
|
StartDir="$(pwd)"
|
||||||
mkdir -p ../AndroidSdk
|
mkdir -p ../AndroidSdk
|
||||||
cd ../AndroidSdk
|
cd ../AndroidSdk
|
||||||
wget -O BuildTools.zip https://dl.google.com/android/repository/build-tools_r30.0.3-linux.zip
|
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 BuildTools.zip || true
|
||||||
yes A | unzip Platform.zip || true
|
yes A | unzip Platform.zip || true
|
||||||
cd "$StartDir"
|
cd "$StartDir"
|
||||||
|
|
||||||
sh ./tools/Build.sh
|
sh ./tools/Build.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
Before Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 169 KiB |
@ -7,5 +7,7 @@ mv ./java ./src
|
|||||||
cp -r ../tools/tiny-android-template/* ./
|
cp -r ../tools/tiny-android-template/* ./
|
||||||
echo "${SecEncodedKeystore}" | base64 --decode > ./Keystore.jks
|
echo "${SecEncodedKeystore}" | base64 --decode > ./Keystore.jks
|
||||||
|
|
||||||
|
sh ../tools/BuildAssets.sh
|
||||||
|
|
||||||
perl ./link.pl
|
perl ./link.pl
|
||||||
bash ./make.sh
|
bash ./make.sh
|
||||||
|
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 ..
|