From 635d44dda7516a863bb8380eac34a7b375df235b Mon Sep 17 00:00:00 2001 From: Isak Wertwein Date: Thu, 31 Oct 2019 04:32:42 +0100 Subject: [PATCH] Add ability to pick version 1.13 (#14) --- Dockerfile | 1 + README.md | 1 + bedrock-entry.sh | 7 +++++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8709257..752f6b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,4 +37,5 @@ COPY property-definitions.json /etc/bds-property-definitions.json # Available versions listed at # https://minecraft.gamepedia.com/Bedrock_Edition_1.11.0 # https://minecraft.gamepedia.com/Bedrock_Edition_1.12.0 +# https://minecraft.gamepedia.com/Bedrock_Edition_1.13.0 ENV VERSION=LATEST diff --git a/README.md b/README.md index 69c53d9..2f0315b 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ For Minecraft Java Edition you'll need to use this image instead: - `PREVIOUS` : uses the previously maintained major version. Useful when the mobile app is gradually being upgraded across devices - `1.11` : the latest version of 1.11 - `1.12` : the latest version of 1.12 + - `1.13` : the latest version of 1.13 - `UID` (default derived from `/data` owner) : can be set to a specific user ID to run the bedrock server process - `GID` (default derived from `/data` owner) : can be set to a specific group ID to run the diff --git a/bedrock-entry.sh b/bedrock-entry.sh index 31fd4a2..4f60e6e 100755 --- a/bedrock-entry.sh +++ b/bedrock-entry.sh @@ -13,12 +13,15 @@ fi set -e case ${VERSION} in - 1.11|PREVIOUS) + 1.11) VERSION=1.11.4.2 ;; - 1.12) + 1.12|PREVIOUS) VERSION=1.12.0.28 ;; + 1.13) + VERSION=1.13.0.34 + ;; *) DOWNLOAD_URL=$(restify --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock/ | jq -r '.[0].href') if [[ ${DOWNLOAD_URL} =~ http.*/.*-(.*)\.zip ]]; then