#!/bin/sh # Renders the app icon PNGs from summit.svg (needs rsvg-convert, from librsvg). Run from anywhere; the PNGs are # committed, so a build does not need this. set -eu here="$(cd "$(dirname "$0")" && pwd)" root="$here/../.." for n in 16 24 32 48 64 128 256 512; do rsvg-convert -w "$n" -h "$n" "$here/summit.svg" -o "$here/summit-$n.png" done cp "$here/summit-256.png" "$here/summit.png" # the engine's window icon (engine/framegen/io.py _set_icon) for n in 16 24 32 48 64; do cp "$here/summit-$n.png" "$root/engine/framegen/assets/icon_$n.png"; done