0.2.0-dev Download ZIP
26 lines ·703 B Raw
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # Generate .ico, .icns and .zip set of icons for Steam |
| 4 | |
| 5 | # Make icons with transparent backgrounds and all sizes |
| 6 | for s in 16 24 32 48 64 128 256 512 1024; do |
| 7 | convert -resize ${s}x$s -antialias \ |
| 8 | -background transparent \ |
| 9 | ../../misc/logo/icon.svg icon$s.png |
| 10 | done |
| 11 | |
| 12 | # 16px tga file for library |
| 13 | convert icon16.png icon16.tga |
| 14 | |
| 15 | # zip for Linux |
| 16 | zip godot-icons.zip icon*.png |
| 17 | |
| 18 | # ico for Windows |
| 19 | # Not including biggest ones or it blows up in size |
| 20 | icotool -c -o godot-icon.ico icon{16,24,32,48,64,128,256}.png |
| 21 | |
| 22 | # icns for macOS |
| 23 | # Only some sizes: https://iconhandbook.co.uk/reference/chart/osx/ |
| 24 | png2icns godot-icon.icns icon{16,32,128,256,512,1024}.png |
| 25 | |
| 26 | rm -f icon*.png |