No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

make-icns.sh 710B

1234567891011121314
  1. #!/bin/sh
  2. mkdir /tmp/icon.iconset
  3. sips -z 16 16 $1 --out /tmp/icon.iconset/icon_16x16.png
  4. sips -z 32 32 $1 --out /tmp/icon.iconset/icon_16x16@2x.png
  5. sips -z 32 32 $1 --out /tmp/icon.iconset/icon_32x32.png
  6. sips -z 64 64 $1 --out /tmp/icon.iconset/icon_32x32@2x.png
  7. sips -z 128 128 $1 --out /tmp/icon.iconset/icon_128x128.png
  8. sips -z 256 256 $1 --out /tmp/icon.iconset/icon_128x128@2x.png
  9. sips -z 256 256 $1 --out /tmp/icon.iconset/icon_256x256.png
  10. sips -z 512 512 $1 --out /tmp/icon.iconset/icon_256x256@2x.png
  11. sips -z 512 512 $1 --out /tmp/icon.iconset/icon_512x512.png
  12. cp $1 /tmp/icon.iconset/icon_512x512@2x.png
  13. iconutil -c icns --output $2 /tmp/icon.iconset
  14. rm -R /tmp/icon.iconset