Add release selection for the GitHub-released server types (#4339)

This commit is contained in:
Fewwan authored and GitHub committed 2026-10-18 17:40:51 -05:00
1 parent 2ae1097bb9
commit dbb0909282
24 files changed
+225 -63

No files matched your search

+11 -2
View File
@@ -4,12 +4,21 @@
. "$(dirname "$0")/start-utils"
isDebugging && set -x
if ! SERVER=$(mc-image-helper github download-latest-asset \
: "${NANOLIMBO_RELEASE:=latest}"
# Only pass --release-tag when a specific release was requested; helper treats
# omitted as latest
nanolimboReleaseArgs=()
[[ ${NANOLIMBO_RELEASE} == latest ]] || nanolimboReleaseArgs+=(--release-tag="${NANOLIMBO_RELEASE}")
if ! SERVER=$(mc-image-helper github download-asset \
"${nanolimboReleaseArgs[@]}" \
--output-directory=/data \
--name-pattern="NanoLimbo(-.+?(?<!-sources))?\.jar" \
BoomEaro/NanoLimbo
); then
logError "Failed to download NanoLimbo"
logError "Failed to download NanoLimbo release ${NANOLIMBO_RELEASE}"
logError "Ensure NANOLIMBO_RELEASE is one of the releases at https://github.com/BoomEaro/NanoLimbo/releases"
exit 1
fi