2023-08-08 13:45:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-09-22 20:07:47 +02:00
|
|
|
SOURCE="/home/mastodon/customizations/favicon.png"
|
2023-08-08 13:45:26 +02:00
|
|
|
|
|
|
|
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"
|