appicon.sh 413 B

12345678910111213141516
  1. #!/bin/bash -e
  2. # Generates different AppIcon images with correct dimensions
  3. # (brew package: imagemagick)
  4. # (install: brew install imagemagick)
  5. SIZES="76 120 152 167 180"
  6. SRCFILE=icon.png
  7. DSTDIR=BlockColor/BlockColor/Assets.xcassets/AppIcon.appiconset
  8. for sz in $SIZES; do
  9. echo "Creating ${sz}x${sz} icon"
  10. convert -resize ${sz}x${sz} $SRCFILE $DSTDIR/AppIcon-${sz}.png
  11. done
  12. echo "App Icon create successful"