TextSweep

Artifact Content
Login

Artifact d3cbdda541c704c0fd72960f41c6c75f642da053:


#!/bin/sh

#$1=filename
#$2=icon name

ICONDIR="$2.iconset"

if [ -a $ICONDIR ]
	then
	rm -rf $ICONDIR
fi

mkdir $ICONDIR 

convert $1 -resize 1024 $ICONDIR/icon_512x512@2x.png 
convert $1 -resize 512 $ICONDIR/icon_512x512.png
convert $1 -resize 512 $ICONDIR/icon_256x256@2x.png
convert $1 -resize 256 $ICONDIR/icon_256x256.png
convert $1 -resize 256 $ICONDIR/icon_128x128@2x.png
convert $1 -resize 128 $ICONDIR/icon_128x128@.png
convert $1 -resize 64 $ICONDIR/icon_32x32@2x.png
convert $1 -resize 32 $ICONDIR/icon_32x32.png
convert $1 -resize 32 $ICONDIR/icon_16x16@2x.png
convert $1 -resize 16 $ICONDIR/icon_16x16.png

iconutil -c icns $ICONDIR