render_appicons.sh 537 B

12345678910111213141516
  1. #!/bin/sh
  2. # Regenerate the committed 96 px PNGs in this directory from the upstream
  3. # GNOME app icon SVGs. This step is only run when an icon source changes;
  4. # the normal build consumes the PNGs and needs no SVG rasterizer.
  5. #
  6. # assets/icons/apps/render_appicons.sh
  7. #
  8. # Requires rsvg-convert. Keep the SVGs and PNGs in sync and update README
  9. # with the upstream commit when refreshing an icon.
  10. set -eu
  11. cd "$(dirname "$0")"
  12. for svg in *.svg; do
  13. out=${svg%.svg}.png
  14. echo "$svg -> $out"
  15. rsvg-convert -w 96 -h 96 "$svg" -o "$out"
  16. done