macOS icns setup

Hello readers and followers,

Today we are going to learn how to build an icns icon file.

First:

Let’s create an iconset folder:

Now, let’s use a code script to work on, it’s a gist that I found:

mkdir icon.iconset

output_path=~/Projects/ringsce/icon.iconset

# the convert command comes from imagemagick
for size in 16 32 64 128 256; do
half=”$(($size / 2))”
convert RINGSCE_V2.png -resize x$size $output_path/icon_${size}x${size}.png
convert RINGSCE_V2.png -resize x$size $output_path/icon_${half}x${half}@2x.png
done

iconutil -c icns $output_path

Now, we are going to run this script. We are going to improve that.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

3 + 9 =

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.