mastodon-customizations/custom-favicon.sh
Mastodon Service Account 1ad8a4fc94 update customizations path
2023-09-22 20:07:47 +02:00

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"