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