pfetch-rs/tools/render_all.sh
Adrian Groh b5e3947913
Some checks failed
CI / ${{ matrix.name }} (${{ matrix.target }}) (true, Android, ubuntu-latest, true, aarch64-linux-android) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (true, FreeBSD, ubuntu-latest, true, x86_64-unknown-freebsd) (push) Has been cancelled
CI / render (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, Linux x86_64, ubuntu-latest, true, x86_64-unknown-linux-gnu) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, Windows x86_64, windows-latest, true, x86_64-pc-windows-gnu) (push) Has been cancelled
CI / ${{ matrix.name }} (${{ matrix.target }}) (false, macOS x86_64, macos-latest, true, x86_64-apple-darwin) (push) Has been cancelled
Add typst reference
2024-02-03 20:28:37 +01:00

15 lines
535 B
Bash
Executable File

#!/bin/bash
echo "# List Of All Logos" > ../all_logos.md
echo "Generated using \`./tools/render_all.sh\`, powered by [typst](https://typst.app)" >> ../all_logos.md
while read -r logo; do
echo "$logo"
PF_ASCII=$logo "$@" > ./tmp || exit 1
mkdir -p ../assets/logos
typst compile -f svg renderer.typ ../assets/logos/"$logo".svg || exit 1
echo "## $logo" >> ../all_logos.md
echo "<img src=\"./assets/logos/$logo.svg\" width=\"230\">" >> ../all_logos.md
echo "" >> ../all_logos.md
done < ./all_logos.txt
rm tmp