Skip to content

Commit 598a06b

Browse files
committed
chore: fix wrong tooth.json
1 parent 289d3ce commit 598a06b

9 files changed

+35
-55
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.4.4] - 2024-03-09
8+
## [0.4.5] - 2024-03-09
99

1010
### Added
1111

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

146+
[0.4.5]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.3...v0.4.5
146147
[0.4.3]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.2...v0.4.3
147148
[0.4.2]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.1...v0.4.2
148149
[0.4.1]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.4.0...v0.4.1

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "native",
55
"description": "A plugin engine for running LLSE plugins on LeviLamina",
66
"author": "LiteLDev",
7-
"version": "0.4.4",
7+
"version": "0.4.5",
88
"dependencies": [
99
{
1010
"name": "LegacyMoney"

scripts/validate_release.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ def main():
1515

1616
validate_changelog(version)
1717
validate_tooth_json(version)
18-
validate_tooth_template_json(version)
18+
validate_tooth_template_json(version, "quickjs")
19+
validate_tooth_template_json(version, "nodejs")
20+
validate_tooth_template_json(version, "lua")
21+
validate_tooth_template_json(version, "python")
1922

2023

2124
def get_args() -> Args:
@@ -60,22 +63,28 @@ def validate_tooth_json(version: str):
6063
),
6164
content,
6265
):
63-
raise Exception("tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-lua")
66+
raise Exception(
67+
"tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-lua"
68+
)
6469

6570
if not re.search(
6671
r"\"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs\": \"{}\"".format(
6772
version
6873
),
6974
content,
7075
):
71-
raise Exception("tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs")
76+
raise Exception(
77+
"tooth.json has wrong version in gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs"
78+
)
7279

73-
def validate_tooth_template_json(version: str):
74-
with open("tooth.template.json", "r", encoding="utf-8") as f:
80+
81+
def validate_tooth_template_json(version: str, engine: str):
82+
with open("tooth." + engine + ".json", "r", encoding="utf-8") as f:
7583
content = f.read()
7684

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

8089
if __name__ == "__main__":
8190
main()

tooth.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "github.com/LiteLDev/LegacyScriptEngine",
4-
"version": "0.4.4",
4+
"version": "0.4.5",
55
"info": {
66
"name": "LegacyScriptEngine",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",
@@ -12,7 +12,7 @@
1212
]
1313
},
1414
"dependencies": {
15-
"gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.4.4",
16-
"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.4.4"
15+
"gitea.litebds.com/LiteLDev/legacy-script-engine-lua": "0.4.5",
16+
"gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs": "0.4.5"
1717
}
1818
}

tooth.lua.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"format_version": 2,
3-
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs",
4-
"version": "0.4.4",
3+
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-lua",
4+
"version": "0.4.5",
55
"info": {
6-
"name": "LegacyScriptEngine with QuickJs backend",
6+
"name": "LegacyScriptEngine with Lua backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",
88
"author": "LiteLDev",
99
"tags": [
@@ -15,16 +15,16 @@
1515
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
1616
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
1717
"github.com/LiteLDev/LegacyMoney": "0.4.x",
18-
"gitea.litebds.com/LiteLDev/quickjs-binaries": "3.10.11"
18+
"gitea.litebds.com/LiteLDev/lua-binaries": "3.10.11"
1919
},
2020
"prerequisites": {
2121
"github.com/LiteLDev/LeviLamina": "0.9.x"
2222
},
2323
"files": {
2424
"place": [
2525
{
26-
"src": "legacy-script-engine-quickjs/*",
27-
"dest": "plugins/legacy-script-engine-quickjs/"
26+
"src": "legacy-script-engine-lua/*",
27+
"dest": "plugins/legacy-script-engine-lua/"
2828
}
2929
]
3030
}

tooth.nodejs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs",
4-
"version": "0.4.4",
4+
"version": "0.4.5",
55
"info": {
66
"name": "LegacyScriptEngine with NodeJs backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",

tooth.python.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 2,
33
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
4-
"version": "0.4.4",
4+
"version": "0.4.5",
55
"info": {
66
"name": "LegacyScriptEngine with Python backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",

tooth.quickjs.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"format_version": 2,
3-
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
4-
"version": "0.4.4",
3+
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs",
4+
"version": "0.4.5",
55
"info": {
6-
"name": "LegacyScriptEngine with Python backend",
6+
"name": "LegacyScriptEngine with QuickJs backend",
77
"description": "A plugin engine for running LLSE plugins on LeviLamina",
88
"author": "LiteLDev",
99
"tags": [
@@ -15,16 +15,16 @@
1515
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
1616
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
1717
"github.com/LiteLDev/LegacyMoney": "0.4.x",
18-
"gitea.litebds.com/LiteLDev/python-binaries": "3.10.11"
18+
"gitea.litebds.com/LiteLDev/quickjs-binaries": "3.10.11"
1919
},
2020
"prerequisites": {
2121
"github.com/LiteLDev/LeviLamina": "0.9.x"
2222
},
2323
"files": {
2424
"place": [
2525
{
26-
"src": "legacy-script-engine-python/*",
27-
"dest": "plugins/legacy-script-engine-python/"
26+
"src": "legacy-script-engine-quickjs/*",
27+
"dest": "plugins/legacy-script-engine-quickjs/"
2828
}
2929
]
3030
}

tooth.template.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)