Blame view

generateAndroidIcon.sh 434 Bytes
0730f2b3   Geoffrey PREUD'HOMME   Ajout d'une icone
1
2
3
4
5
6
7
8
9
10
11
12
13
  #!/usr/bin/env bash
  
  DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  
  for density in l-36 m-48 h-72 xh-96 xxh-144 xxxh-192
  do
      drawdir="${DIR}/app/src/main/res/drawable-$(echo "$density" | cut -d '-' -f 1)dpi"
      mkdir -p "$drawdir"
      outfile="${drawdir}/etunicorn.png"
      size="$(echo "$density" | cut -d '-' -f 2)"
      inkscape -z -e "$outfile" -w "$size" -h "$size" "${DIR}/logo.svg"
      optipng -o9 "$outfile"
  done