add woff format conversion to build script
This commit is contained in:
parent
c8955c4a16
commit
d27737bbf4
|
@ -42,4 +42,22 @@ mkdir -p distr/woff2
|
||||||
woff2s=$(ls distr/*/*.woff2)
|
woff2s=$(ls distr/*/*.woff2)
|
||||||
for woff2 in $woff2s; do
|
for woff2 in $woff2s; do
|
||||||
mv $woff2 distr/woff2/$(basename $woff2)
|
mv $woff2 distr/woff2/$(basename $woff2)
|
||||||
|
done
|
||||||
|
|
||||||
|
# ============================================================================
|
||||||
|
# Build woff fonts ===========================================================
|
||||||
|
|
||||||
|
# requires sfnt2woff-zopfli (https://github.com/bramstein/homebrew-webfonttools)
|
||||||
|
|
||||||
|
rm -rf distr/woff
|
||||||
|
|
||||||
|
ttfs=$(ls distr/*/*.ttf)
|
||||||
|
for ttf in $ttfs; do
|
||||||
|
sfnt2woff-zopfli $ttf
|
||||||
|
done
|
||||||
|
|
||||||
|
mkdir -p distr/woff
|
||||||
|
woffs=$(ls distr/*/*.woff)
|
||||||
|
for woff in $woffs; do
|
||||||
|
mv $woff distr/woff/$(basename $woff)
|
||||||
done
|
done
|
Loading…
Reference in a new issue