1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
export PROJECT=android-file-transfer
export ICONDIR=./$PROJECT.iconset
export ORIGICON=./android-file-transfer.png
mkdir $ICONDIR
# Normal screen icons
for SIZE in 16 32 64 128 256 512; do
sips -z $SIZE $SIZE $ORIGICON --out $ICONDIR/icon_${SIZE}x${SIZE}.png ;
done
# Retina display icons
for SIZE in 32 64 256 512 1024; do
sips -z $SIZE $SIZE $ORIGICON --out $ICONDIR/icon_$(expr $SIZE / 2)x$(expr $SIZE / 2)@2x.png ;
done
# Make a multi-resolution Icon
iconutil -c icns -o ./$PROJECT.icns $ICONDIR
rm -rf $ICONDIR #it is useless now
|