diff --git a/README.md b/README.md index 4f5dd62..5284bd8 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,12 @@ You can change build config in `config.json` 2. put them into `./source/cn` 3. run `build.py` and **BE PATIENT**, instantiation will take about 30 minutes +### Release Build + +```sh +python build.py --release +``` + ## credit - [Jetbrains Mono](https://github.com/JetBrains/JetBrainsMono) diff --git a/build.py b/build.py index f7dbb7f..33e72bf 100644 --- a/build.py +++ b/build.py @@ -675,6 +675,8 @@ def main(): shutil.copytree(output_woff2, "woff2") print("copy woff2 to root") + run(f"ftcli converter ft2wf -out woff2/var -f woff2 {output_variable}") + print(f"=== [Build Success ({time.time() - start_time:.2f} s)] ===") diff --git a/release.py b/release.py deleted file mode 100644 index 3859543..0000000 --- a/release.py +++ /dev/null @@ -1,15 +0,0 @@ -import subprocess - -subprocess.run(["python", "build.py", "--release"]) -subprocess.run( - [ - "ftcli", - "converter", - "ft2wf", - "-out", - "./website/public/fonts/", - "-f", - "woff2", - "./fonts/variable/", - ] -) diff --git a/woff2/var/MapleMono-Italic[wght]-VF.woff2 b/woff2/var/MapleMono-Italic[wght]-VF.woff2 new file mode 100644 index 0000000..5b4185d Binary files /dev/null and b/woff2/var/MapleMono-Italic[wght]-VF.woff2 differ diff --git a/woff2/var/MapleMono[wght]-VF.woff2 b/woff2/var/MapleMono[wght]-VF.woff2 new file mode 100644 index 0000000..8438545 Binary files /dev/null and b/woff2/var/MapleMono[wght]-VF.woff2 differ