From 3ce2c9831751cf5ee7ed565022abce36e23fd34d Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 4 Aug 2024 14:26:10 +0300 Subject: [PATCH] bin: Add asserts for create-icons dependencies --- bin/create-icons.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/create-icons.sh b/bin/create-icons.sh index 55e835783..bb21dc97b 100755 --- a/bin/create-icons.sh +++ b/bin/create-icons.sh @@ -1,5 +1,15 @@ #!/usr/bin/env bash +if ! command -v magick &> /dev/null; then + echo "This tool requires ImageMagick to be installed in order to create the icons." + exit 1 +fi + +if ! command -v icnsutil &> /dev/null; then + echo "This tool requires icnsutil to be installed in order to generate macOS icons." + exit 1 +fi + script_dir=$(realpath $(dirname $0)) cd "${script_dir}/../images/app-icons" magick -background none "../icon-color.svg" -resize 180x180 "./ios/apple-touch-icon.png"