Skip to content

Commit 0f5b9d4

Browse files
committed
chore: cut tooth.template.json into separate files
1 parent 48d40ee commit 0f5b9d4

File tree

6 files changed

+136
-12
lines changed

6 files changed

+136
-12
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
strategy:
7070
matrix:
7171
backend:
72-
# - libnode
72+
- nodejs
7373
- lua
74-
# - python310
74+
- python
7575
- quickjs
7676
steps:
7777
- uses: actions/checkout@v4
@@ -100,8 +100,7 @@ jobs:
100100
cd legacy-script-engine-${{ matrix.backend }}
101101
rm -rf legacy-script-engine-${{ matrix.backend }}
102102
mv ../release/legacy-script-engine-${{ matrix.backend }} .
103-
cp ../tooth.template.json tooth.json
104-
sed -i "s/\${engine}/${{ matrix.backend }}/g" tooth.json
103+
cp ../tooth.${{ matrix.backend }}.json tooth.json
105104
git add .
106105
git commit -m "Release ${{ github.event.release.tag_name }}"
107106
git tag ${{ github.event.release.tag_name }}
@@ -118,9 +117,9 @@ jobs:
118117
strategy:
119118
matrix:
120119
backend:
121-
# - libnode
120+
- nodejs
122121
- lua
123-
# - python310
122+
- python
124123
- quickjs
125124
steps:
126125
- uses: actions/checkout@v4

tooth.lua.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"format_version": 2,
3+
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-quickjs",
4+
"version": "0.4.3",
5+
"info": {
6+
"name": "LegacyScriptEngine with QuickJs backend",
7+
"description": "A plugin engine for running LLSE plugins on LeviLamina",
8+
"author": "LiteLDev",
9+
"tags": [
10+
"levilamina",
11+
"plugin-engine"
12+
]
13+
},
14+
"dependencies": {
15+
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
16+
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
17+
"github.com/LiteLDev/LegacyMoney": "0.4.x",
18+
"gitea.litebds.com/LiteLDev/quickjs-binaries": "3.10.11"
19+
},
20+
"prerequisites": {
21+
"github.com/LiteLDev/LeviLamina": "0.9.x"
22+
},
23+
"files": {
24+
"place": [
25+
{
26+
"src": "legacy-script-engine-quickjs/*",
27+
"dest": "plugins/legacy-script-engine-quickjs/"
28+
}
29+
]
30+
}
31+
}

tooth.nodejs.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"format_version": 2,
3+
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-nodejs",
4+
"version": "0.4.3",
5+
"info": {
6+
"name": "LegacyScriptEngine with NodeJs backend",
7+
"description": "A plugin engine for running LLSE plugins on LeviLamina",
8+
"author": "LiteLDev",
9+
"tags": [
10+
"levilamina",
11+
"plugin-engine"
12+
]
13+
},
14+
"dependencies": {
15+
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
16+
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
17+
"github.com/LiteLDev/LegacyMoney": "0.4.x",
18+
"gitea.litebds.com/ShrBox/7-zip": "23.x",
19+
"gitea.litebds.com/LiteLDev/node-binaries": "16.16.0"
20+
},
21+
"prerequisites": {
22+
"github.com/LiteLDev/LeviLamina": "0.9.x"
23+
},
24+
"files": {
25+
"place": [
26+
{
27+
"src": "legacy-script-engine-nodejs/*",
28+
"dest": "plugins/legacy-script-engine-nodejs/"
29+
}
30+
]
31+
}
32+
}

tooth.python.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"format_version": 2,
3+
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
4+
"version": "0.4.3",
5+
"info": {
6+
"name": "LegacyScriptEngine with Python backend",
7+
"description": "A plugin engine for running LLSE plugins on LeviLamina",
8+
"author": "LiteLDev",
9+
"tags": [
10+
"levilamina",
11+
"plugin-engine"
12+
]
13+
},
14+
"dependencies": {
15+
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
16+
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
17+
"github.com/LiteLDev/LegacyMoney": "0.4.x",
18+
"gitea.litebds.com/LiteLDev/python-binaries": "3.10.11"
19+
},
20+
"prerequisites": {
21+
"github.com/LiteLDev/LeviLamina": "0.9.x"
22+
},
23+
"files": {
24+
"place": [
25+
{
26+
"src": "legacy-script-engine-python/*",
27+
"dest": "plugins/legacy-script-engine-python/"
28+
}
29+
]
30+
}
31+
}

tooth.quickjs.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"format_version": 2,
3+
"tooth": "gitea.litebds.com/LiteLDev/legacy-script-engine-python",
4+
"version": "0.4.3",
5+
"info": {
6+
"name": "LegacyScriptEngine with Python backend",
7+
"description": "A plugin engine for running LLSE plugins on LeviLamina",
8+
"author": "LiteLDev",
9+
"tags": [
10+
"levilamina",
11+
"plugin-engine"
12+
]
13+
},
14+
"dependencies": {
15+
"github.com/LiteLDev/LegacyRemoteCall": "0.4.x",
16+
"github.com/LiteLDev/LegacyParticleAPI": "0.4.x",
17+
"github.com/LiteLDev/LegacyMoney": "0.4.x",
18+
"gitea.litebds.com/LiteLDev/python-binaries": "3.10.11"
19+
},
20+
"prerequisites": {
21+
"github.com/LiteLDev/LeviLamina": "0.9.x"
22+
},
23+
"files": {
24+
"place": [
25+
{
26+
"src": "legacy-script-engine-python/*",
27+
"dest": "plugins/legacy-script-engine-python/"
28+
}
29+
]
30+
}
31+
}

xmake.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ target("legacy-script-engine")
5959
"/utf-8"
6060
)
6161
add_defines(
62-
"_HAS_CXX23=1", -- To enable C++23 features.
63-
"CPPHTTPLIB_OPENSSL_SUPPORT", -- To enable SSL support for cpp-httplib.
64-
"NOMINMAX", -- To avoid conflicts with std::min and std::max.
65-
"UNICODE", -- To enable Unicode support.
62+
"_HAS_CXX23=1",
63+
"CPPHTTPLIB_OPENSSL_SUPPORT",
64+
"NOMINMAX",
65+
"UNICODE",
6666
"_AMD64_"
6767
)
6868
add_files(
@@ -91,9 +91,9 @@ target("legacy-script-engine")
9191
"toml++"
9292
)
9393
add_shflags(
94-
"/DELAYLOAD:bedrock_server.dll" -- To use forged symbols of SymbolProvider.
94+
"/DELAYLOAD:bedrock_server.dll"
9595
)
96-
set_exceptions("none") -- To avoid conflicts with /EHa.
96+
set_exceptions("none")
9797
set_kind("shared")
9898
set_languages("cxx20")
9999
set_symbols("debug")

0 commit comments

Comments
 (0)