Folio/build/generate-icons.sh

11 lines
No EOL
409 B
Bash

#!/usr/bin/env sh
# Regenerate all app-icon derivatives from the master artwork (FolioAppIcon.png).
# Requires ImageMagick. The master file is never modified.
set -e
cd "$(dirname "$0")/.."
SIZES="16 24 32 48 64 128 256 512 1024"
mkdir -p build/icons
for s in $SIZES; do
convert FolioAppIcon.png -resize "${s}x${s}" -strip "build/icons/${s}x${s}.png"
done
echo "Generated build/icons/{${SIZES// /,}}x{}.png"