Skip to content

Commit

Permalink
upgrade Nerd-Font to 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 committed Dec 4, 2024
1 parent ce68266 commit fdced27
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions build_base_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@


def update_config_json(config_path: str, version: str):
with open(config_path, 'r', encoding='utf-8') as file:
with open(config_path, "r+", encoding="utf-8") as file:
data = json.load(file)
data["nerd_font"]["version"] = version
with open(config_path, "w") as f:
json.dump(data, f, ensure_ascii=False, indent=2)

if "nerd_font" in data:
data["nerd_font"]["version"] = version

file.seek(0)
json.dump(data, file, ensure_ascii=False, indent=2)
file.truncate()

def check_update():
current_version = None
Expand All @@ -36,6 +39,7 @@ def check_update():
current_version = data["nerd_font"]["version"]

latest_version = current_version
print("Getting latest version from remote...")
with urlopen(
"https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest"
) as response:
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"nerd_font": {
"enable": true,
"version": "3.2.1",
"version": "3.3.0",
"mono": false,
"use_font_patcher": false,
"glyphs": [
Expand Down
Binary file modified source/MapleMono-NF-Base-Mono.ttf
Binary file not shown.
Binary file modified source/MapleMono-NF-Base.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion source/preset-normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"nerd_font": {
"enable": true,
"version": "3.2.1",
"version": "3.3.0",
"mono": false,
"use_font_patcher": false,
"glyphs": [
Expand Down

0 comments on commit fdced27

Please sign in to comment.