feat: Add command to generate favicons
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user