File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff 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-
8152def validate_tooth_template_json (version : str , engine : str ):
8253 with open ("tooth." + engine + ".json" , "r" , encoding = "utf-8" ) as f :
8354 content = f .read ()
You can’t perform that action at this time.
0 commit comments