Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 3ce2c98

Browse files
committed
bin: Add asserts for create-icons dependencies
1 parent 880b042 commit 3ce2c98

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/create-icons.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
#!/usr/bin/env bash
22

3+
if ! command -v magick &> /dev/null; then
4+
echo "This tool requires ImageMagick to be installed in order to create the icons."
5+
exit 1
6+
fi
7+
8+
if ! command -v icnsutil &> /dev/null; then
9+
echo "This tool requires icnsutil to be installed in order to generate macOS icons."
10+
exit 1
11+
fi
12+
313
script_dir=$(realpath $(dirname $0))
414
cd "${script_dir}/../images/app-icons"
515
magick -background none "../icon-color.svg" -resize 180x180 "./ios/apple-touch-icon.png"

0 commit comments

Comments
 (0)