From 54114a199b9ead9e7f1087832e691e4a2f9928f4 Mon Sep 17 00:00:00 2001 From: itepechi <72330683+itepechi@users.noreply.github.com> Date: Tue, 26 Sep 2023 08:57:07 +0900 Subject: [PATCH] Add cool scripts to work with app icons requires imagemagick and oxipng --- scripts/minify_icon_png.sh | 3 +++ scripts/pack_favicon_ico.sh | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100755 scripts/minify_icon_png.sh create mode 100755 scripts/pack_favicon_ico.sh diff --git a/scripts/minify_icon_png.sh b/scripts/minify_icon_png.sh new file mode 100755 index 000000000..770fd6910 --- /dev/null +++ b/scripts/minify_icon_png.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh +echo oxipng -v -o 3 -a -s -Z ./priv/static/icon-*.png ./priv/static/apple-touch-icon.png +oxipng -v -o 3 -a -s -Z ./priv/static/icon-*.png ./priv/static/apple-touch-icon.png diff --git a/scripts/pack_favicon_ico.sh b/scripts/pack_favicon_ico.sh new file mode 100755 index 000000000..8090f16c5 --- /dev/null +++ b/scripts/pack_favicon_ico.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +echo "convert ./priv/static/favicon-16.png ./priv/static/favicon-32.png ./priv/static/favicon.ico \ + && rm ./priv/static/favicon-16.png ./priv/static/favicon-32.png" + +convert ./priv/static/favicon-16.png ./priv/static/favicon-32.png ./priv/static/favicon.ico \ + && rm ./priv/static/favicon-16.png ./priv/static/favicon-32.png