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():
14
14
version = args ["tag" ].lstrip ("v" )
15
15
16
16
validate_changelog (version )
17
- validate_tooth_json (version )
18
17
validate_tooth_template_json (version , "quickjs" )
19
18
validate_tooth_template_json (version , "nodejs" )
20
19
validate_tooth_template_json (version , "lua" )
@@ -50,34 +49,6 @@ def validate_changelog(version: str):
50
49
raise Exception ("CHANGELOG.md lacks version {}" .format (version ))
51
50
52
51
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
-
81
52
def validate_tooth_template_json (version : str , engine : str ):
82
53
with open ("tooth." + engine + ".json" , "r" , encoding = "utf-8" ) as f :
83
54
content = f .read ()
You can’t perform that action at this time.
0 commit comments