From 6c5787cc32a34ee30099ffc3686ebc1066e91c61 Mon Sep 17 00:00:00 2001 From: marsqing Date: Thu, 17 Aug 2017 10:07:23 +0800 Subject: [PATCH] add build script for Linux/Mac --- README.md | 8 ++++++++ build.sh | 15 +++++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 build.sh diff --git a/README.md b/README.md index 36bc658..418db80 100644 --- a/README.md +++ b/README.md @@ -34,10 +34,18 @@ Copy your *Operator Mono* OpenType files into the `original` folder. From the command line, run: +### Windows + ``` build ``` +### Linux/Mac + +``` +build.sh +``` + This will generate the new font files in the `build` folder. You can now install these fonts on your system. --- diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..06fcc93 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +rm original/*.ttx +ttx original/OperatorMono-Medium.otf +ttx original/OperatorMono-MediumItalic.otf + +mkdir -p build + +node index.js OperatorMono-Medium +node index.js OperatorMono-MediumItalic + +rm -rf build/*.otf + +ttx build/OperatorMonoLig-Medium.ttx +ttx build/OperatorMonoLig-MediumItalic.ttx