diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f2062e8..3aae0b22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/manifest.json b/manifest.json index 494599a4..ea5f57ae 100644 --- a/manifest.json +++ b/manifest.json @@ -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" diff --git a/scripts/validate_release.py b/scripts/validate_release.py index 1aac25ad..0dd1e741 100644 --- a/scripts/validate_release.py +++ b/scripts/validate_release.py @@ -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: @@ -60,7 +63,9 @@ 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( @@ -68,14 +73,18 @@ def validate_tooth_json(version: str): ), 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() diff --git a/tooth.json b/tooth.json index e9e19219..715cda79 100644 --- a/tooth.json +++ b/tooth.json @@ -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", @@ -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" } } diff --git a/tooth.lua.json b/tooth.lua.json index 8f466f61..78359997 100644 --- a/tooth.lua.json +++ b/tooth.lua.json @@ -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": [ @@ -15,7 +15,7 @@ "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" @@ -23,8 +23,8 @@ "files": { "place": [ { - "src": "legacy-script-engine-quickjs/*", - "dest": "plugins/legacy-script-engine-quickjs/" + "src": "legacy-script-engine-lua/*", + "dest": "plugins/legacy-script-engine-lua/" } ] } diff --git a/tooth.nodejs.json b/tooth.nodejs.json index a2294c3b..8e912587 100644 --- a/tooth.nodejs.json +++ b/tooth.nodejs.json @@ -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", diff --git a/tooth.python.json b/tooth.python.json index 8467b488..8923766d 100644 --- a/tooth.python.json +++ b/tooth.python.json @@ -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", diff --git a/tooth.quickjs.json b/tooth.quickjs.json index 8467b488..80ee6584 100644 --- a/tooth.quickjs.json +++ b/tooth.quickjs.json @@ -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": [ @@ -15,7 +15,7 @@ "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" @@ -23,8 +23,8 @@ "files": { "place": [ { - "src": "legacy-script-engine-python/*", - "dest": "plugins/legacy-script-engine-python/" + "src": "legacy-script-engine-quickjs/*", + "dest": "plugins/legacy-script-engine-quickjs/" } ] } diff --git a/tooth.template.json b/tooth.template.json deleted file mode 100644 index d32c9495..00000000 --- a/tooth.template.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "format_version": 2, - "tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-${engine}", - "version": "0.4.4", - "info": { - "name": "LegacyScriptEngine with ${engine} backend", - "description": "A plugin engine for running LLSE plugins on LeviLamina", - "author": "LiteLDev", - "tags": [ - "levilamina", - "plugin-engine" - ] - }, - "dependencies": { - "github.com/LiteLDev/LegacyRemoteCall": "0.4.x", - "github.com/LiteLDev/LegacyParticleAPI": "0.4.x", - "github.com/LiteLDev/LegacyMoney": "0.4.x" - }, - "prerequisites": { - "github.com/LiteLDev/LeviLamina": "0.9.x" - }, - "files": { - "place": [ - { - "src": "legacy-script-engine-${engine}/*", - "dest": "plugins/legacy-script-engine-${engine}/" - } - ] - } -}