mastodon-customizations/custom-favicon.sh
Mastodon Service Account 13422ca3bb initial commit
2023-08-08 13:45:26 +02:00

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"