2021-03-20 19:08:15 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-04-20 01:11:28 +00:00
|
|
|
svg=icon2
|
2021-03-20 19:08:15 +00:00
|
|
|
|
|
|
|
size=(16 24 32 64)
|
|
|
|
out=""
|
|
|
|
for i in ${size[@]}; do
|
2021-04-20 01:11:28 +00:00
|
|
|
inkscape --export-filename="./icon-$i.png" $svg.svg -w $i -h $i
|
|
|
|
out+="icon-$i.png "
|
2021-03-20 19:08:15 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
size=(192 512)
|
|
|
|
for i in ${size[@]}; do
|
2021-04-20 01:11:28 +00:00
|
|
|
inkscape --export-filename="./icon-$i.png" $svg.svg -w $i -h $i
|
2021-03-20 19:08:15 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
convert $out favicon.ico
|
|
|
|
|
2021-04-23 10:54:55 +00:00
|
|
|
mv favicon.ico icon-192.png icon-512.png ../static
|