From 822b4babefe121d069e4facb66d1fde239a598cf Mon Sep 17 00:00:00 2001 From: Zijian Zhang <35801754+futrime@users.noreply.github.com> Date: Wed, 11 Nov 2026 12:41:02 +0800 Subject: [PATCH 1/2] chore: migrate tooth.json to lip.toml format 4 The default variant gets a server entry and a client entry; the variant "client" is kept as an alias with the same client entry, because LeviLauncher and existing installs use github.com/LiteLDev/LeviOptimize#client. --- CHANGELOG.md | 4 ++++ lip.toml | 49 +++++++++++++++++++++++++++++++++++++++++ tooth.json | 61 ---------------------------------------------------- 3 files changed, 53 insertions(+), 61 deletions(-) create mode 100644 lip.toml delete mode 100644 tooth.json diff --git a/CHANGELOG.md b/CHANGELOG.md index ab17cdd..f72becd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Moved the lip package definition from tooth.json to lip.toml (format 4); the default variant now installs the client build on the Bedrock client + ## [0.18.0] - 2026-11-06 ### Changed diff --git a/lip.toml b/lip.toml new file mode 100644 index 0000000..d719a1e --- /dev/null +++ b/lip.toml @@ -0,0 +1,49 @@ +format = 4 +id = "github.com/LiteLDev/LeviOptimize" +version = "0.18.0" + +[info] +name = "LeviOptimize" +description = "A performance optimization mod for Minecraft Bedrock Dedicated Server and the Bedrock client" +tags = ["optimization"] +logo = "https://raw.githubusercontent.com/LiteLDev/LeviOptimize/main/docs/logo.png" + +# The default variant installs the server build on a dedicated server and the client build on the +# Bedrock client. The variant "client" is kept for LeviLauncher and for existing installs, which +# use the identity github.com/LiteLDev/LeviOptimize#client. + +[[variants.""]] +side = "server" +platform = "win-x64" + +[variants."".deps] +"github.com/LiteLDev/LeviLamina" = "26.60.*" + +[[variants."".assets]] +type = "zip" +urls = ["https://{{id}}/releases/download/v{{version}}/LeviOptimize-server-windows-x64.zip"] +place = [{ src = "LeviOptimize/", dest = "mods/LeviOptimize/" }] + +[[variants.""]] +side = "client" +platform = "win-x64" + +[variants."".deps] +"github.com/LiteLDev/LeviLamina#client" = "26.60.*" + +[[variants."".assets]] +type = "zip" +urls = ["https://{{id}}/releases/download/v{{version}}/LeviOptimize-client-windows-x64.zip"] +place = [{ src = "LeviOptimize/", dest = "mods/LeviOptimize/" }] + +[[variants.client]] +side = "client" +platform = "win-x64" + +[variants.client.deps] +"github.com/LiteLDev/LeviLamina#client" = "26.60.*" + +[[variants.client.assets]] +type = "zip" +urls = ["https://{{id}}/releases/download/v{{version}}/LeviOptimize-client-windows-x64.zip"] +place = [{ src = "LeviOptimize/", dest = "mods/LeviOptimize/" }] diff --git a/tooth.json b/tooth.json deleted file mode 100644 index d467b97..0000000 --- a/tooth.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "format_version": 3, - "format_uuid": "289f771f-2c9a-4d73-9f3f-8492495a924d", - "tooth": "github.com/LiteLDev/LeviOptimize", - "version": "0.18.0", - "info": { - "name": "LeviOptimize", - "description": "A performance optimization mod for Minecraft Bedrock Dedicated Server and the Bedrock client", - "tags": [ - "platform:levilamina", - "type:mod", - "category:optimization" - ], - "avatar_url": "" - }, - "variants": [ - { - "platform": "win-x64", - "dependencies": { - "github.com/LiteLDev/LeviLamina": "26.60.*" - }, - "assets": [ - { - "type": "zip", - "urls": [ - "https://{{tooth}}/releases/download/v{{version}}/LeviOptimize-server-windows-x64.zip" - ], - "placements": [ - { - "type": "dir", - "src": "LeviOptimize/", - "dest": "mods/LeviOptimize" - } - ] - } - ] - }, - { - "label": "client", - "platform": "win-x64", - "dependencies": { - "github.com/LiteLDev/LeviLamina#client": "26.60.*" - }, - "assets": [ - { - "type": "zip", - "urls": [ - "https://{{tooth}}/releases/download/v{{version}}/LeviOptimize-client-windows-x64.zip" - ], - "placements": [ - { - "type": "dir", - "src": "LeviOptimize/", - "dest": "mods/LeviOptimize" - } - ] - } - ] - } - ] -} From 1e7ffab509c11870c6ecdb041bd981e3757d494e Mon Sep 17 00:00:00 2001 From: Zijian Zhang <35801754+futrime@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:08:39 +0800 Subject: [PATCH 2/2] ci: check that the lip.toml version matches the release tag --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 844d632..599af8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,6 +78,15 @@ jobs: steps: - uses: actions/checkout@v7 + - name: Check lip.toml version + run: | + expected="${GITHUB_REF_NAME#v}" + declared="$(sed -n 's/^version = "\(.*\)"$/\1/p' lip.toml | head -n 1)" + if [ "$declared" != "$expected" ]; then + echo "lip.toml version $declared does not match tag $expected" >&2 + exit 1 + fi + - id: extract-release-notes uses: ffurrer2/extract-release-notes@v3