forked from macvim-dev/macvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_icns
More file actions
executable file
·29 lines (21 loc) · 774 Bytes
/
create_icns
File metadata and controls
executable file
·29 lines (21 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# Utility script to create an icns file from an iconset folder. It will handle
# duplicating the necessary images for 1x/2x use so we don't have to commit
# identical images to the repository.
if [[ $# == 0 || $# == 1 || $# == 2 ]]; then
echo "Usage: create_icns <folder> <output_folder> <icns_name>"
exit -1
fi
set -e
icons_folder=$1
output_folder=$2
output_name=$3
cp -R "$icons_folder" "$output_folder/$output_name.iconset"
cd "$output_folder/$output_name.iconset"
cd ..
iconutil --convert icns $output_name.iconset --out $output_name.icns