18 lines
416 B
Bash
Executable file
18 lines
416 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SOURCE="/home/mastodon/customizations/favicon.png"
|
|
|
|
cd /home/mastodon/live/app/javascript/icons
|
|
|
|
for prefix in android-chrome apple-touch-icon favicon
|
|
do
|
|
for icon in $prefix-*
|
|
do
|
|
suffix=${icon#$prefix-}
|
|
resolution=${suffix%.png}
|
|
echo -n "."
|
|
convert -scale $resolution ${SOURCE} "${icon}"
|
|
done
|
|
done
|
|
convert -scale 48x48 ${SOURCE} /home/mastodon/live/public/favicon.ico
|
|
echo " done"
|