1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-08-16 16:30:25 +03:00
FiraCode/script/build_woff2
2020-10-08 13:55:10 +02:00

17 lines
369 B
Bash
Executable File

#!/bin/bash -euo pipefail
# requires woff2_compress (get from https://github.com/bramstein/homebrew-webfonttools)
cd "`dirname $0`/.."
[ -d venv ] && source venv/bin/activate
rm -rf distr/*/*.woff2
ttfs=$(ls distr/*/*.ttf)
for ttf in $ttfs; do
woff2_compress $ttf
done
mkdir -p distr/woff2
mv distr/*/*.woff2 distr/woff2
rm -f distr/woff2/FiraCode-Retina.woff2