#!/usr/bin/env bash # Redesenha as 17 imagens do Flutter que traziam texto na fonte "Mechfire" (freeware, sem termos de redistribuicao) com a # Press Start 2P (SIL OFL 1.1) do google/fonts (commit e sha256 abaixo) e grava em flutter/gfx/. Precisa de Python 3 com # Pillow e do zip original em artifacts/build/cache (rodar antes o build-flutter.sh, que baixa o zip). So e preciso para # refazer as imagens; o build normal usa os PNG ja gravados em gfx/. # # src/FredGames.Bundler/Builds/flutter/regen-art.sh [python-com-pillow] set -euo pipefail PY="${1:-python3}" GF=9862abc066c9b83bf84c3e8ed1fc2d8d48f9bbf0 here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" root="$(git -C "$here" rev-parse --show-toplevel)" tmp="$root/artifacts/build/flutter-art" rm -rf "$tmp"; mkdir -p "$tmp/orig" curl -fsSL "https://raw.githubusercontent.com/google/fonts/$GF/ofl/pressstart2p/PressStart2P-Regular.ttf" -o "$tmp/PressStart2P-Regular.ttf" echo "034c77f1f05ec89421e4a63f0e3a4ca1ecf852cc6d2bf611f126f275728e017d $tmp/PressStart2P-Regular.ttf" | shasum -a 256 -c - unzip -q -o "$root/artifacts/build/cache/flutter_pyweek29.zip" 'flutter_pyweek29/data/gfx/*' -d "$tmp/orig" "$PY" "$here/fl_art.py" "$tmp/orig/flutter_pyweek29/data/gfx" "$tmp/PressStart2P-Regular.ttf" "$here/gfx"