Created
June 20, 2022 13:52
-
-
Save sen0rxol0/346096c0f93d8c291944332a8170e33c to your computer and use it in GitHub Desktop.
create icns files using iconutil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
resources: https://newbedev.com/how-to-manually-create-icns-files-using-iconutil