Merge 5b5453794f
into dbdb23f6bc
This commit is contained in:
commit
375164adc9
2 changed files with 23 additions and 0 deletions
Binary file not shown.
23
scripts/update-twemoji.sh
Executable file
23
scripts/update-twemoji.sh
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue