Skip to content

Commit

Permalink
chore: fix validate_release.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 15, 2025
1 parent c5ceb09 commit 0688e41
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions scripts/validate_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def main():
version = args["tag"].lstrip("v")

validate_changelog(version)
validate_tooth_json(version)
validate_tooth_template_json(version, "quickjs")
validate_tooth_template_json(version, "nodejs")
validate_tooth_template_json(version, "lua")
Expand Down Expand Up @@ -50,34 +49,6 @@ def validate_changelog(version: str):
raise Exception("CHANGELOG.md lacks version {}".format(version))


def validate_tooth_json(version: str):
with open("tooth.json", "r", encoding="utf-8") as f:
content = f.read()

if not re.search(r"\"version\": \"{}\"".format(version), content):
raise Exception("tooth.json has wrong version")

if not re.search(
r"\"gitea.litebds.com/LiteLDev/legacy-script-engine-lua\": \"{}\"".format(
version
),
content,
):
raise Exception(
"tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-lua"
)

if not re.search(
r"\"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs\": \"{}\"".format(
version
),
content,
):
raise Exception(
"tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs"
)


def validate_tooth_template_json(version: str, engine: str):
with open("tooth." + engine + ".json", "r", encoding="utf-8") as f:
content = f.read()
Expand Down

0 comments on commit 0688e41

Please sign in to comment.