Skip to content

Commit

Permalink
chore: cut tooth.template.json into separate files
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Mar 9, 2024
1 parent 48d40ee commit 0f5b9d4
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ jobs:
strategy:
matrix:
backend:
# - libnode
- nodejs
- lua
# - python310
- python
- quickjs
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -100,8 +100,7 @@ jobs:
cd legacy-script-engine-${{ matrix.backend }}
rm -rf legacy-script-engine-${{ matrix.backend }}
mv ../release/legacy-script-engine-${{ matrix.backend }} .
cp ../tooth.template.json tooth.json
sed -i "s/\${engine}/${{ matrix.backend }}/g" tooth.json
cp ../tooth.${{ matrix.backend }}.json tooth.json
git add .
git commit -m "Release ${{ github.event.release.tag_name }}"
git tag ${{ github.event.release.tag_name }}
Expand All @@ -118,9 +117,9 @@ jobs:
strategy:
matrix:
backend:
# - libnode
- nodejs
- lua
# - python310
- python
- quickjs
steps:
- uses: actions/checkout@v4
Expand Down
31 changes: 31 additions & 0 deletions tooth.lua.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs",
"version": "0.4.3",
"info": {
"name": "LegacyScriptEngine with QuickJs 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",
"gitea.litebds.com/LiteLDev/quickjs-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/"
}
]
}
}
32 changes: 32 additions & 0 deletions tooth.nodejs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs",
"version": "0.4.3",
"info": {
"name": "LegacyScriptEngine with NodeJs 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",
"gitea.litebds.com/ShrBox/7-zip": "23.x",
"gitea.litebds.com/LiteLDev/node-binaries": "16.16.0"
},
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.9.x"
},
"files": {
"place": [
{
"src": "legacy-script-engine-nodejs/*",
"dest": "plugins/legacy-script-engine-nodejs/"
}
]
}
}
31 changes: 31 additions & 0 deletions tooth.python.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
"version": "0.4.3",
"info": {
"name": "LegacyScriptEngine with Python 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",
"gitea.litebds.com/LiteLDev/python-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/"
}
]
}
}
31 changes: 31 additions & 0 deletions tooth.quickjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"format_version": 2,
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
"version": "0.4.3",
"info": {
"name": "LegacyScriptEngine with Python 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",
"gitea.litebds.com/LiteLDev/python-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/"
}
]
}
}
12 changes: 6 additions & 6 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ target("legacy-script-engine")
"/utf-8"
)
add_defines(
"_HAS_CXX23=1", -- To enable C++23 features.
"CPPHTTPLIB_OPENSSL_SUPPORT", -- To enable SSL support for cpp-httplib.
"NOMINMAX", -- To avoid conflicts with std::min and std::max.
"UNICODE", -- To enable Unicode support.
"_HAS_CXX23=1",
"CPPHTTPLIB_OPENSSL_SUPPORT",
"NOMINMAX",
"UNICODE",
"_AMD64_"
)
add_files(
Expand Down Expand Up @@ -91,9 +91,9 @@ target("legacy-script-engine")
"toml++"
)
add_shflags(
"/DELAYLOAD:bedrock_server.dll" -- To use forged symbols of SymbolProvider.
"/DELAYLOAD:bedrock_server.dll"
)
set_exceptions("none") -- To avoid conflicts with /EHa.
set_exceptions("none")
set_kind("shared")
set_languages("cxx20")
set_symbols("debug")
Expand Down

0 comments on commit 0f5b9d4

Please sign in to comment.