Skip to content

Commit 0688e41

Browse files
committed
chore: fix validate_release.py
1 parent c5ceb09 commit 0688e41

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

scripts/validate_release.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def main():
1414
version = args["tag"].lstrip("v")
1515

1616
validate_changelog(version)
17-
validate_tooth_json(version)
1817
validate_tooth_template_json(version, "quickjs")
1918
validate_tooth_template_json(version, "nodejs")
2019
validate_tooth_template_json(version, "lua")
@@ -50,34 +49,6 @@ def validate_changelog(version: str):
5049
raise Exception("CHANGELOG.md lacks version {}".format(version))
5150

5251

53-
def validate_tooth_json(version: str):
54-
with open("tooth.json", "r", encoding="utf-8") as f:
55-
content = f.read()
56-
57-
if not re.search(r"\"version\": \"{}\"".format(version), content):
58-
raise Exception("tooth.json has wrong version")
59-
60-
if not re.search(
61-
r"\"gitea.litebds.com/LiteLDev/legacy-script-engine-lua\": \"{}\"".format(
62-
version
63-
),
64-
content,
65-
):
66-
raise Exception(
67-
"tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-lua"
68-
)
69-
70-
if not re.search(
71-
r"\"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs\": \"{}\"".format(
72-
version
73-
),
74-
content,
75-
):
76-
raise Exception(
77-
"tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs"
78-
)
79-
80-
8152
def validate_tooth_template_json(version: str, engine: str):
8253
with open("tooth." + engine + ".json", "r", encoding="utf-8") as f:
8354
content = f.read()

0 commit comments

Comments
 (0)