lukin/Justfile

18 lines
561 B
Makefile

build:
#!/bin/bash
set -e
if ! command -v inkscape &> /dev/null; then
echo "inkscape not installed. aborting"
exit 1
fi
widths=(64 128 256 512 1024)
mkdir -p pngs
for svg in src/logo*.svg; do
for width in "${widths[@]}"; do
filename=$(basename -- "$svg")
filename="${filename%.*}"
inkscape "$svg" --export-type=png --export-filename="pngs/$filename-w$width.png" --export-width="$width"
done
done
inkscape "src/social-card.svg" --export-type=png --export-filename="pngs/social-card.png" --export-width="1920"