Skip to content

Instantly share code, notes, and snippets.

@balcsida
Created February 27, 2022 17:56
Show Gist options
  • Save balcsida/9541de5f76b90ab86bf6a4a22ea82585 to your computer and use it in GitHub Desktop.
Save balcsida/9541de5f76b90ab86bf6a4a22ea82585 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Required tools:
# - curl
# - 7z (for extracting dmg)
# - docker
curl -LO https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg
7z e SF-Mono.dmg 'SFMonoFonts/SF Mono Fonts.pkg'
7z e 'SF Mono Fonts.pkg'
7z e 'Payload~' -oinput
mkdir output
docker run -v "$(pwd)"/input:/in -v "$(pwd)"/output:/out nerdfonts/patcher -c --careful
rm -rf input 'SF Mono Fonts.pkg' 'Payload~' SF-Mono.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment