From 28a5bfe379dbe43af1e2240efba92e2664a31559 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 2 Jul 2024 19:42:31 +0530 Subject: [PATCH] Make NERD font available in CI --- .github/workflows/ci.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index 50234c96c..67abad6a0 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -15,6 +15,7 @@ BUNDLE_URL = 'https://download.calibre-ebook.com/ci/kitty/{}-64.tar.xz' FONTS_URL = 'https://download.calibre-ebook.com/ci/fonts.tar.xz' +NERD_URL = 'https://github.com/ryanoasis/nerd-fonts/releases/latest/download/NerdFontsSymbolsOnly.tar.xz' is_bundle = os.environ.get('KITTY_BUNDLE') == '1' is_macos = 'darwin' in sys.platform.lower() SW = '' @@ -67,6 +68,10 @@ def install_fonts() -> None: os.makedirs(fonts_dir, exist_ok=True) with tarfile.open(fileobj=io.BytesIO(data), mode='r:xz') as tf: tf.extractall(fonts_dir) + with urlopen(NERD_URL) as f: + data = f.read() + with tarfile.open(fileobj=io.BytesIO(data), mode='r:xz') as tf: + tf.extractall(fonts_dir) def install_deps() -> None: