From 6fcd396876dd1d088776b80f223377ee5d01211b Mon Sep 17 00:00:00 2001 From: Simon C Date: Sun, 7 Feb 2021 01:18:16 +0100 Subject: [PATCH] feat: Add command to generate favicons --- scripts/run | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/run b/scripts/run index 54ea98e..ad00ca1 100755 --- a/scripts/run +++ b/scripts/run @@ -71,6 +71,13 @@ staging() { docker-compose --context $DOCKER_CONTEXT -f docker-compose.staging.yml up -d --build --force-recreate } +favicons() { + echo + echo "🔍 Génération des favicons à partir d'une image 512px" + echo + convert static/logo.png -resize 32x32 -colors 16 \( -clone 0 -resize 16x16 -extent 16x16 \) \( -clone 0 -resize 32x32 -extent 32x32 \) -delete 0 static/favicon.ico +} + help_generic() { echo echo "💡 Aide 💡" @@ -85,6 +92,7 @@ help_generic() { echo "- ./run logs_backup 📥 Sauvegarde les logs" echo "- ./run logs_restore 📤 Restaure les logs" echo "- ./run stats 🌠 Mise à jour de GoAccess" + echo "- ./run favicons 🔍 Génération des favicons à partir d'une image 512px" } end() {