make_icons.sh 693 B

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