Added Makefile

master
Qwreey 2023-01-20 04:39:30 +09:00
parent 1f20683a5c
commit bdd455b5f2
4 changed files with 15 additions and 8 deletions

5
.gitignore vendored
View File

@ -1,7 +1,4 @@
assets/
**/__pycache__/
KawaiiMonoRegularPatched.ttf
KawaiiMonoRegularPatched.otf
KawaiiMonoRegularPatched.woff
KawaiiMonoRegularPatched.eot
out/
src/wget/__pycache__/

6
Makefile Normal file
View File

@ -0,0 +1,6 @@
build:
python3 build.py
py3clean .
install: build
cp out/KawaiiMonoRegularPatched.ttf ~/.local/share/fonts/KawaiiMonoRegular.ttf

View File

@ -1,3 +0,0 @@
#!/usr/bin/bash
python3 build.py
cp kawaiiPatched.ttf ~/.local/share/fonts/KawaiiMonoRegular.ttf

View File

@ -1,4 +1,5 @@
import fontforge
import os
from . import NanumSquareNeo as NanumSquareNeoLoader
from . import NotoMono as NotoMonoLoader
@ -37,7 +38,13 @@ def build(config=None):
notoMono.close()
# 생성
kawaii.generate("kawaiiPatched.ttf")
if not os.path.exists("out"): os.mkdir("out")
kawaii.generate("out/"+"KawaiiMonoRegularPatched.ttf")
# KawaiiMonoRegularPatched.ttf
# KawaiiMonoRegularPatched.otf
# KawaiiMonoRegularPatched.woff
# KawaiiMonoRegularPatched.eot
# 파일 닫기
kawaii.close()