Skip to content

Commit

Permalink
feat: remove BDS version specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Dec 3, 2023
1 parent 8fa8a17 commit bbc9a3a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2023-12-03

### Changed

- Automatically resolve Minecraft Bedrock Server version from LeviLamina version.

## [0.1.0] - 2023-12-01

First release.

[unreleased]: https://github.com/LiteLDev/docker-levilamina-server/compare/v0.1.0...HEAD
[unreleased]: https://github.com/LiteLDev/docker-levilamina-server/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/LiteLDev/docker-levilamina-server/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/LiteLDev/docker-levilamina-server/releases/tag/v0.1.0
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ services:
image: ghcr.io/liteldev/levilamina-server
environment:
EULA: TRUE
VERSION: 1.20.41
LEVILAMINA_VERSION: 0.1.0
VERSION: 0.1.0
PACKAGES: |
github.com/tooth-hub/[email protected]
ports:
Expand All @@ -38,6 +37,5 @@ volumes:
### Environment variables
- `EULA`(`FALSE`): must be set to `TRUE` to accept the [Minecraft End User License Agreement](https://minecraft.net/terms).
- `VERSION`(`LATEST`): can be set to a specific [Minecraft Bedrock Server](https://github.com/tooth-hub/bds/tags) version or `LATEST` to automatically download the latest version.
- `LEVILAMINA_VERSION`(`LATEST`): can be set to a specific [LeviLamina](https://github.com/tooth-hub/levilamina/tags) version or `LATEST` to automatically download the latest version.
- `VERSION`(`LATEST`): can be set to a specific [LeviLamina](https://github.com/tooth-hub/levilamina/tags) version or `LATEST` to automatically download the latest version.
- `PACKAGES`(``): can be set to a list of packages to install on first run. Each package must be a valid [lip specifier](https://docs.lippkg.com/commands/lip_install.html). Both local and remote lip teeth are supported. For local packages, you may need to mount the packages to the container.
13 changes: 2 additions & 11 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

# Set default values for environment variables
VERSION="${VERSION:-LATEST}"
LEVILAMINA_VERSION="${LEVILAMINA_VERSION:-LATEST}"
PACKAGES="${PACKAGES:-}"
EULA="${EULA:-FALSE}"

Expand All @@ -20,20 +19,12 @@ export WINEDEBUG="${WINEDEBUG:--all}"
# Install dependencies on first run
# Test if bedrock_server_mod.exe exists
if [ ! -f "bedrock_server_mod.exe" ]; then
# Install BDS
if [ "$VERSION" = "LATEST" ]
then
lip install -y github.com/tooth-hub/bds
else
lip install -y github.com/tooth-hub/bds@$VERSION
fi

# Install LeveLamina
if [ "$LEVILAMINA_VERSION" = "LATEST" ]
if [ "$VERSION" = "LATEST" ]
then
lip install -y github.com/tooth-hub/levilamina
else
lip install -y github.com/tooth-hub/levilamina@$LEVILAMINA_VERSION
lip install -y github.com/tooth-hub/levilamina@$VERSION
fi

# Install packages, line by line
Expand Down

0 comments on commit bbc9a3a

Please sign in to comment.