Add ability to pick version 1.13 (#14)
This commit is contained in:
1 parent
1bd5fced53
commit
635d44dda7
3 files changed
+7
-2
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
|
||||
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user