Skip to content

Instantly share code, notes, and snippets.

@purcell
Last active June 13, 2020 16:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purcell/da212af783564f852a1a7cedfc9884c9 to your computer and use it in GitHub Desktop.
Save purcell/da212af783564f852a1a7cedfc9884c9 to your computer and use it in GitHub Desktop.
Mac custom-build of Iosevka with Pragmata-like features
#!/bin/sh -e
# https://github.com/be5invis/Iosevka#build-your-own-style
DIR=~/Projects/External/iosevka
if [ -d "$DIR" ]; then
(cd $DIR && git pull)
else
git clone --depth 1 https://github.com/be5invis/Iosevka $DIR
fi
cd "$DIR"
cat <<EOF > Brewfile
brew "npm"
brew "ttfautohint"
tap "caryll/tap"
brew "otfcc-mac64"
EOF
brew bundle install
brew bundle exec -- npm install
brew bundle exec -- make custom-config design='term ss08 ligset-haskell'
brew bundle exec -- make custom
cp dist/iosevka-custom/ttf/*.ttf ~/Library/Fonts/
@shanbhardwaj
Copy link

brew bundle exec -- make custom-config design='ss08 ligset-haskell' is throwing the following error

node maker.js --custom custom --design 'ss08 ligset-haskell' --upright 'normal' --italic 'normal' --oblique 'normal' --pre
style 'nothing' > build/targets-custom.mk                                                                                
module.js:487
    throw err;
    ^

Error: Cannot find module 'yargs'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/shan/projects/External/iosevka/maker.js:3:14)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
make: *** [custom-config] Error 1

@purcell
Copy link
Author

purcell commented Jul 26, 2017

Ugh, no idea about that, sorry @shanbhardwaj. I ran this script on a fresh machine earlier this week with no problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment