Skip to content

Instantly share code, notes, and snippets.

@sen0rxol0
Created June 20, 2022 13:52
Show Gist options
  • Select an option

  • Save sen0rxol0/346096c0f93d8c291944332a8170e33c to your computer and use it in GitHub Desktop.

Select an option

Save sen0rxol0/346096c0f93d8c291944332a8170e33c to your computer and use it in GitHub Desktop.
create icns files using iconutil
#!/usr/bin/env bash
mkdir Icon.iconset
sips -z 16 16 icon1024@1x.png --out Icon.iconset/icon_16x16.png
sips -z 32 32 icon1024@1x.png --out Icon.iconset/icon_16x16@2x.png
sips -z 32 32 icon1024@1x.png --out Icon.iconset/icon_32x32.png
sips -z 64 64 icon1024@1x.png --out Icon.iconset/icon_32x32@2x.png
sips -z 128 128 icon1024@1x.png --out Icon.iconset/icon_128x128.png
sips -z 256 256 icon1024@1x.png --out Icon.iconset/icon_128x128@2x.png
sips -z 256 256 icon1024@1x.png --out Icon.iconset/icon_256x256.png
sips -z 512 512 icon1024@1x.png --out Icon.iconset/icon_256x256@2x.png
sips -z 512 512 icon1024@1x.png --out Icon.iconset/icon_512x512.png
sips -z 1024 1024 icon1024@1x.png --out Icon.iconset/icon_512x512@2x.png
iconutil -c icns Icon.iconset
@sen0rxol0
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment