sector-f-linux

Sector F Linux
git clone https://git.sectorflabs.com/sector-f-linux.git
Log | Files | Refs | README | LICENSE

make-gif.sh (674B)


      1 #!/bin/sh
      2 # Regenerates docs/flask.gif: the install screen's flask, one screenshot per frame of its loop.
      3 set -e
      4 cd "$(dirname "$0")/.."
      5 tmp=$(mktemp -d)
      6 cargo build -q
      7 i=0
      8 while [ $i -lt 72 ]; do
      9   PATINA_INSTALLER_MOCK=1 PATINA_INSTALLER_SIZE=1280x800 PATINA_INSTALLER_DEMO=installing \
     10     PATINA_INSTALLER_AT=$(awk "BEGIN{print $i/24}") PATINA_INSTALLER_SCREENSHOT=$tmp/f$(printf %03d $i).png \
     11     ./target/debug/patina-installer >/dev/null 2>&1
     12   i=$((i + 2))
     13 done
     14 ffmpeg -y -loglevel error -framerate 12 -pattern_type glob -i "$tmp/f*.png" \
     15   -vf "crop=520:560:380:40,split[a][b];[a]palettegen=max_colors=64[p];[b][p]paletteuse" -loop 0 docs/flask.gif
     16 rm -rf "$tmp"