This commit is contained in:
Michael Telatynski 2024-12-05 18:10:07 +01:00 committed by GitHub
commit 375164adc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 0 deletions

23
scripts/update-twemoji.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
set -ex
tmpdir=$(mktemp -d)
scriptdir=$(dirname "$(realpath "$0")")
git clone --depth 1 https://github.com/win98se/twemoji-colr.git "$tmpdir"
pushd "$tmpdir"
# Install dependencies
npm i
# Build fonts
make
woff2_compress "build/Twemoji Mozilla.ttf"
# Move into the right place
mv "build/Twemoji Mozilla.woff2" "$scriptdir/../res/fonts/Twemoji_Mozilla/TwemojiMozilla-colr.woff2"
# cleanup
popd
rm -Rf "$tmpdir"