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 = (