Skip to content

Instantly share code, notes, and snippets.

@sen0rxol0
Created June 20, 2022 13:52
Show Gist options
  • Save sen0rxol0/346096c0f93d8c291944332a8170e33c to your computer and use it in GitHub Desktop.
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 [email protected] --out Icon.iconset/icon_16x16.png
sips -z 32 32 [email protected] --out Icon.iconset/[email protected]
sips -z 32 32 [email protected] --out Icon.iconset/icon_32x32.png
sips -z 64 64 [email protected] --out Icon.iconset/[email protected]
sips -z 128 128 [email protected] --out Icon.iconset/icon_128x128.png
sips -z 256 256 [email protected] --out Icon.iconset/[email protected]
sips -z 256 256 [email protected] --out Icon.iconset/icon_256x256.png
sips -z 512 512 [email protected] --out Icon.iconset/[email protected]
sips -z 512 512 [email protected] --out Icon.iconset/icon_512x512.png
sips -z 1024 1024 [email protected] --out Icon.iconset/[email protected]
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