2016-11-14 18:31:22 +02:00

13 lines
340 B
Bash
Executable File

#!/bin/bash -e
# Generates different AppIcon images with correct dimensions
# (brew package: imagemagick)
SIZES="76 120 152 167 180"
SRCFILE=icon.png
DSTDIR=MultiCraft/MultiCraft/Assets.xcassets/AppIcon.appiconset
for sz in $SIZES; do
echo "Creating ${sz}x${sz} icon"
convert -resize ${sz}x${sz} $SRCFILE $DSTDIR/AppIcon-${sz}.png
done