Verified Commit eb54a191 authored by Linus Jahn's avatar Linus Jahn

Remove duplicate of render-logos.sh

parent 7b6dc09c
Pipeline #16783 canceled with stages
......@@ -2,25 +2,27 @@
KAIDAN_SOURCES=$(dirname "$(readlink -f "${0}")")/..
if [ ! -d "$KAIDAN_SOURCES/misc/android/res/mipmap-xxxhdpi" ]; then
echo "*****************************************"
echo "Rendering logos"
echo "*****************************************"
rendersvg() {
inkscape -z -e $2 -w $3 -h $3 $1
optipng -quiet $2
}
echo "*****************************************"
echo "Rendering logos"
echo "*****************************************"
androidlogo() {
mkdir $KAIDAN_SOURCES/misc/android/res/mipmap-$1
rendersvg $KAIDAN_SOURCES/data/images/kaidan.svg "$KAIDAN_SOURCES/misc/android/res/mipmap-$1/icon.png" $2
rendersvg $KAIDAN_SOURCES/data/images/kaidan.svg "$KAIDAN_SOURCES/misc/android/res/mipmap-$1/logo.png" $(( $2 * 4 ))
}
rendersvg() {
inkscape -z -e $2 -w $3 -h $3 $1 >/dev/null
optipng -quiet -o7 $2 >/dev/null
advpng -z4 $2 >/dev/null
}
androidlogo() {
echo "Rendering $KAIDAN_SOURCES/misc/android/res/mipmap-$1..."
mkdir -p $KAIDAN_SOURCES/misc/android/res/mipmap-$1
rendersvg $KAIDAN_SOURCES/data/images/kaidan.svg "$KAIDAN_SOURCES/misc/android/res/mipmap-$1/icon.png" $2
rendersvg $KAIDAN_SOURCES/data/images/kaidan.svg "$KAIDAN_SOURCES/misc/android/res/mipmap-$1/logo.png" $(( $2 * 4 ))
}
androidlogo ldpi 36
androidlogo mdpi 48
androidlogo hdpi 72
androidlogo xhdpi 96
androidlogo xxhdpi 144
androidlogo xxxhdpi 192
androidlogo ldpi 36
androidlogo mdpi 48
androidlogo hdpi 72
androidlogo xhdpi 96
androidlogo xxhdpi 144
androidlogo xxxhdpi 192
fi
#!/bin/bash
KAIDAN_SOURCES=$(dirname "$(readlink -f "${0}")")/..
echo "*****************************************"
echo "Rendering logos"
echo "*****************************************"
rendersvg() {
inkscape -z -e $2 -w $3 -h $3 $1 >/dev/null
optipng -quiet -o7 $2 >/dev/null
advpng -z4 $2 >/dev/null
}
androidlogo() {
echo "Rendering $KAIDAN_SOURCES/misc/android/res/mipmap-$1..."
mkdir -p $KAIDAN_SOURCES/misc/android/res/mipmap-$1
rendersvg $KAIDAN_SOURCES/data/images/kaidan.svg "$KAIDAN_SOURCES/misc/android/res/mipmap-$1/icon.png" $2
rendersvg $KAIDAN_SOURCES/data/images/kaidan.svg "$KAIDAN_SOURCES/misc/android/res/mipmap-$1/logo.png" $(( $2 * 4 ))
}
androidlogo ldpi 36
androidlogo mdpi 48
androidlogo hdpi 72
androidlogo xhdpi 96
androidlogo xxhdpi 144
androidlogo xxxhdpi 192
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment