Skip to content

Commit

Permalink
chore: fix wrong tooth.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Mar 9, 2024
1 parent 289d3ce commit 598a06b
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 55 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.4] - 2024-03-09
## [0.4.5] - 2024-03-09

### Added

Expand Down Expand Up @@ -143,6 +143,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#53]: https://github.com/LiteLDev/LegacyScriptEngine/issues/53
[#54]: https://github.com/LiteLDev/LegacyScriptEngine/issues/54

[0.4.5]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.3...v0.4.5
[0.4.3]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.2...v0.4.3
[0.4.2]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.1...v0.4.2
[0.4.1]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.0...v0.4.1
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "native",
"description": "A plugin engine for running LLSE plugins on LeviLamina",
"author": "LiteLDev",
"version": "0.4.4",
"version": "0.4.5",
"dependencies": [
{
"name": "LegacyMoney"
Expand Down
21 changes: 15 additions & 6 deletions scripts/validate_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ def main():

validate_changelog(version)
validate_tooth_json(version)
validate_tooth_template_json(version)
validate_tooth_template_json(version, "quickjs")
validate_tooth_template_json(version, "nodejs")
validate_tooth_template_json(version, "lua")
validate_tooth_template_json(version, "python")


def get_args() -> Args:
Expand Down Expand Up @@ -60,22 +63,28 @@ def validate_tooth_json(version: str):
),
content,
):
raise Exception("tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-lua")
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")
raise Exception(
"tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs"
)

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

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

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


if __name__ == "__main__":
main()
6 changes: 3 additions & 3 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "github.com/LiteLDev/LegacyScriptEngine",
"version": "0.4.4",
"version": "0.4.5",
"info": {
"name": "LegacyScriptEngine",
"description": "A plugin engine for running LLSE plugins on LeviLamina",
Expand All @@ -12,7 +12,7 @@
]
},
"dependencies": {
"gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.4.4",
"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.4.4"
"gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.4.5",
"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.4.5"
}
}
12 changes: 6 additions & 6 deletions tooth.lua.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs",
"version": "0.4.4",
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-lua",
"version": "0.4.5",
"info": {
"name": "LegacyScriptEngine with QuickJs backend",
"name": "LegacyScriptEngine with Lua backend",
"description": "A plugin engine for running LLSE plugins on LeviLamina",
"author": "LiteLDev",
"tags": [
Expand All @@ -15,16 +15,16 @@
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
"github.com/LiteLDev/LegacyMoney": "0.4.x",
"gitea.litebds.com/LiteLDev/quickjs-binaries": "3.10.11"
"gitea.litebds.com/LiteLDev/lua-binaries": "3.10.11"
},
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.9.x"
},
"files": {
"place": [
{
"src": "legacy-script-engine-quickjs/*",
"dest": "plugins/legacy-script-engine-quickjs/"
"src": "legacy-script-engine-lua/*",
"dest": "plugins/legacy-script-engine-lua/"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion tooth.nodejs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs",
"version": "0.4.4",
"version": "0.4.5",
"info": {
"name": "LegacyScriptEngine with NodeJs backend",
"description": "A plugin engine for running LLSE plugins on LeviLamina",
Expand Down
2 changes: 1 addition & 1 deletion tooth.python.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
"version": "0.4.4",
"version": "0.4.5",
"info": {
"name": "LegacyScriptEngine with Python backend",
"description": "A plugin engine for running LLSE plugins on LeviLamina",
Expand Down
12 changes: 6 additions & 6 deletions tooth.quickjs.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
"version": "0.4.4",
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs",
"version": "0.4.5",
"info": {
"name": "LegacyScriptEngine with Python backend",
"name": "LegacyScriptEngine with QuickJs backend",
"description": "A plugin engine for running LLSE plugins on LeviLamina",
"author": "LiteLDev",
"tags": [
Expand All @@ -15,16 +15,16 @@
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
"github.com/LiteLDev/LegacyMoney": "0.4.x",
"gitea.litebds.com/LiteLDev/python-binaries": "3.10.11"
"gitea.litebds.com/LiteLDev/quickjs-binaries": "3.10.11"
},
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.9.x"
},
"files": {
"place": [
{
"src": "legacy-script-engine-python/*",
"dest": "plugins/legacy-script-engine-python/"
"src": "legacy-script-engine-quickjs/*",
"dest": "plugins/legacy-script-engine-quickjs/"
}
]
}
Expand Down
30 changes: 0 additions & 30 deletions tooth.template.json

This file was deleted.

0 comments on commit 598a06b

Please sign in to comment.