Skip to content

Commit f7d1ab0

Browse files
authored
feat: support client (#347)
* chore: update xmake.lua * refactor: support latest CommandRegistrar * fix: fix onUseItemOn on client feat: add debugCommandLevel config * fix: fix onAte on client * Revert "fix: fix onAte on client" This reverts commit e108ee1. * fix: fix onAte * chore: update workflows chore: update manifest.json & tooth.json refactor: remove MoreGlobal DBStorage * chore: update tooth.json & CHANGELOG.md update CHANGELOG.md * chore: update .gitignore * chore: rename legacy-script-engine to LegacyScriptEngine for release zip * feat: add lse::LegacyScriptEngine::getLogger() * fix: add server thread check for events * refactor: use output.success instead of logger.info for tests * fix: fix client command registration * refactor: rename Plugin to ScriptPlugin fix: fix onLeft crash on client fix: fix registerCommands not clear when disable on client * chore: solve some warn * refactor: replace int with CommandPermissionLevel for debugCommandLevel fix: fix NodeJs compilation chore: update CHANGELOG.md * chore: update CHANGELOG.md & tooth.json * docs: add client installation guide * chore: update translations * chore(ci): add sync_translation.yml * chore: update .gitignore * docs: add language auto switch docs: fix Chinese anchor * feat: support LeviLamina 1.9.0 refactor: add mariadb-connector-c back to Node.js engine * fix: fix nodejs * fix: reset DebugEngine shared pointer when unload * chore: update tooth.json & CHANGELOG.md
1 parent e84aa21 commit f7d1ab0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2245
-1363
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
- lua
2222
- python
2323
- quickjs
24+
target_type:
25+
- client
26+
- server
2427
steps:
2528
- uses: actions/checkout@v4
2629

@@ -38,13 +41,13 @@ jobs:
3841
xmake repo -u
3942
4043
- run: |
41-
xmake f -a x64 -m release -p windows -v -y --backend=${{ matrix.backend }}
44+
xmake f -a x64 -m release -p windows -v -y --target_type=${{ matrix.target_type }} --backend=${{ matrix.backend }}
4245
4346
- run: |
4447
xmake -y
4548
4649
- uses: actions/upload-artifact@v4
4750
with:
48-
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
51+
name: ${{ github.event.repository.name }}-${{ github.sha }}-${{ matrix.target_type }}-${{ matrix.backend }}-windows-x64
4952
path: |
5053
bin/

.github/workflows/release.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- lua
1414
- python
1515
- quickjs
16+
target_type:
17+
- client
18+
- server
1619
steps:
1720
- uses: actions/checkout@v4
1821

@@ -30,14 +33,14 @@ jobs:
3033
xmake repo -u
3134
3235
- run: |
33-
xmake f -a x64 -m release -p windows -v -y --backend=${{ matrix.backend }} --publish=true
36+
xmake f -a x64 -m release -p windows -v -y --target_type=${{ matrix.target_type }} --backend=${{ matrix.backend }} --publish=true
3437
3538
- run: |
3639
xmake -y
3740
3841
- uses: actions/upload-artifact@v4
3942
with:
40-
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
43+
name: ${{ github.event.repository.name }}-${{ github.sha }}-${{ matrix.target_type }}-${{ matrix.backend }}-windows-x64
4144
path: |
4245
bin/
4346
@@ -50,6 +53,9 @@ jobs:
5053
- lua
5154
- python
5255
- quickjs
56+
target_type:
57+
- client
58+
- server
5359
runs-on: windows-latest
5460
steps:
5561
- uses: actions/checkout@v4
@@ -62,7 +68,7 @@ jobs:
6268

6369
- uses: actions/download-artifact@v4
6470
with:
65-
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
71+
name: ${{ github.event.repository.name }}-${{ github.sha }}-${{ matrix.target_type }}-${{ matrix.backend }}-windows-x64
6672
path: artifact
6773

6874
- run: |
@@ -102,12 +108,15 @@ jobs:
102108
- lua
103109
- python
104110
- quickjs
111+
target_type:
112+
- client
113+
- server
105114
steps:
106115
- uses: actions/checkout@v4
107116

108117
- uses: actions/download-artifact@v4
109118
with:
110-
name: legacy-script-engine-${{ matrix.backend }}-windows-x64-${{ github.sha }}
119+
name: ${{ github.event.repository.name }}-${{ github.sha }}-${{ matrix.target_type }}-${{ matrix.backend }}-windows-x64
111120
path: release/
112121

113122
- run: |
@@ -116,10 +125,10 @@ jobs:
116125
- name: Archive release
117126
run: |
118127
cd release
119-
zip -r ../legacy-script-engine-${{ matrix.backend }}-windows-x64.zip *
128+
zip -r ../${{ github.event.repository.name }}-${{ matrix.target_type }}-${{ matrix.backend }}-windows-x64.zip *
120129
cd ..
121130
122131
- uses: softprops/action-gh-release@v1
123132
with:
124133
files: |
125-
legacy-script-engine-${{ matrix.backend }}-windows-x64.zip
134+
${{ github.event.repository.name }}-${{ matrix.target_type }}-${{ matrix.backend }}-windows-x64.zip
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
schedule:
3+
- cron: 0 * * * *
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
update:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- run: |
16+
pip install crowdin-api-client
17+
18+
- run: |
19+
python scripts/sync_translations.py ${{secrets.CROWDIN_API}}
20+
21+
- name: Configure git
22+
run: |
23+
git config user.name "github-actions[bot]"
24+
git config user.email "github-actions[bot]@users.noreply.github.com"
25+
26+
- name: Sync translations
27+
run: |
28+
git add . && \
29+
git commit -m "Sync translations from Crowdin" && \
30+
git push || echo "No changes to commit"

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.17.0] - 2026-01-25
11+
12+
### Added
13+
14+
- Added client support
15+
16+
### Changed
17+
18+
- Supported LeviLamina 1.9.0
19+
- Replace int with CommandPermissionLevel for debugCommandLevel
20+
21+
## [0.17.0-rc.2] - 2026-01-19
22+
23+
### Changed
24+
25+
- Supported LeviLamina 1.8.0-rc.2
26+
- Added client support
27+
- Replace int with CommandPermissionLevel for debugCommandLevel
28+
-
1029
## [0.16.8] - 2026-01-14
1130

1231
### Added
@@ -1113,7 +1132,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11131132
[#332]: https://github.com/LiteLDev/LegacyScriptEngine/issues/332
11141133
[#339]: https://github.com/LiteLDev/LegacyScriptEngine/issues/339
11151134

1116-
[Unreleased]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.8...HEAD
1135+
[Unreleased]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.17.0...HEAD
1136+
[0.17.0]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.17.0-rc.2...v0.17.0
1137+
[0.17.0-rc.2]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.7...v0.17.0-rc.2
11171138
[0.16.8]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.7...v0.16.8
11181139
[0.16.7]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.6...v0.16.7
11191140
[0.16.6]: https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.5...v0.16.6

manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"entry": "${modFile}",
44
"version": "${modVersion}",
55
"type": "native",
6+
"platform": "${modPlatform}",
67
"description": "A plugin engine for running LLSE plugins on LeviLamina",
78
"author": "LiteLDev",
89
"dependencies": [

0 commit comments

Comments
 (0)