From 7c2ad751a617ff6d25ae53392706d704985cdb16 Mon Sep 17 00:00:00 2001 From: subframe7536 <1667077010@qq.com> Date: Fri, 8 Mar 2024 14:44:57 +0800 Subject: [PATCH] test gitattributes --- .gitattributes | 3 +++ build.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..deba518 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +*.ttf binary +*.vfc binary +*.woff2 binary \ No newline at end of file diff --git a/build.py b/build.py index d037875..a76a119 100644 --- a/build.py +++ b/build.py @@ -164,13 +164,14 @@ if build_nerd_font: check_font_patcher() # get fontforge python executable path + ffpy = "" if "Windows" in system: ffpy = path.join( environ.get("ProgramFiles(x86)"), "FontForgeBuilds\\bin\\ffpython.exe" ) elif "Darwin" in system: ffpy = "/Applications/FontForge.app/Contents/MacOS/FFPython" - if not path.exists(ffpy): + if ffpy == "" or not path.exists(ffpy): ffpy = sys.executable font_dir = (