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 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" - } - ] - } - ] - } - ] -}