18 lines
417 B
Bash
Executable file
18 lines
417 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SOURCE="/home/mastodon/custom_mastodon/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"
|