35 Commits
Author SHA1 Message Date
fithwum e36278b439 Merge build-info updates 2026-08-16 21:37:05 +00:00
fithwum 69061a97bb Update build-info on 2026-08-16T21:37:04Z [skip ci] 2026-08-16 21:37:04 +00:00
fithwum 91f1b766cf Merge changelog updates 2026-08-16 21:36:43 +00:00
fithwum 8bc60c0836 Update changelogs on 2026-08-16T21:36:42Z [skip ci] 2026-08-16 21:36:42 +00:00
fithwum c6a52c9fd8 Merge build-info updates 2026-08-16 21:31:54 +00:00
fithwum 7bbeec867a Update build-info on 2026-08-16T21:31:53Z [skip ci] 2026-08-16 21:31:53 +00:00
fithwum 70de4f526e Merge changelog updates 2026-08-16 21:31:43 +00:00
fithwum bec26688e1 Update changelogs on 2026-08-16T21:31:42Z [skip ci] 2026-08-16 21:31:42 +00:00
fithwum de0912b717 Merge build-info updates 2026-08-09 21:36:58 +00:00
fithwum 6b58f9a929 Update build-info on 2026-08-09T21:36:57Z [skip ci] 2026-08-09 21:36:57 +00:00
fithwum df114a0900 Merge changelog updates 2026-08-09 21:36:47 +00:00
fithwum 4a9bf67f00 Update changelogs on 2026-08-09T21:36:46Z [skip ci] 2026-08-09 21:36:46 +00:00
fithwum d6fe352273 Merge build-info updates 2026-08-09 21:31:56 +00:00
fithwum 4e2f5b205d Update build-info on 2026-08-09T21:31:56Z [skip ci] 2026-08-09 21:31:56 +00:00
fithwum c69d6ee0c3 Merge changelog updates 2026-08-09 21:31:44 +00:00
fithwum a23d0ed6f7 Update changelogs on 2026-08-09T21:31:42Z [skip ci] 2026-08-09 21:31:42 +00:00
fithwum da80fa6a9a Merge build-info updates 2026-08-02 21:36:07 +00:00
fithwum 8eac9c4105 Update build-info on 2026-08-02T21:36:06Z [skip ci] 2026-08-02 21:36:06 +00:00
fithwum fea3d05206 Merge changelog updates 2026-08-02 21:35:56 +00:00
fithwum 589e72932e Update changelogs on 2026-08-02T21:35:55Z [skip ci] 2026-08-02 21:35:55 +00:00
fithwum 1008faf471 Merge build-info updates 2026-08-02 21:31:09 +00:00
fithwum c6f353c222 Update build-info on 2026-08-02T21:31:08Z [skip ci] 2026-08-02 21:31:08 +00:00
fithwum c7987b17e3 Merge changelog updates 2026-08-02 21:30:59 +00:00
fithwum 27fb39c887 Update changelogs on 2026-08-02T21:30:57Z [skip ci] 2026-08-02 21:30:57 +00:00
fithwum 75a509ab17 Merge build-info updates 2026-07-29 23:07:57 +00:00
fithwum e2dc42c52c Update build-info on 2026-07-29T23:07:56Z [skip ci] 2026-07-29 23:07:56 +00:00
fithwum ab14f0c072 Merge build-info updates 2026-07-29 23:07:51 +00:00
fithwum bf70ca7953 Update build-info on 2026-07-29T23:07:50Z [skip ci] 2026-07-29 23:07:50 +00:00
fithwum 135c0bf68e Merge changelog updates 2026-07-29 23:07:42 +00:00
fithwum 4174cb57eb Update changelogs on 2026-07-29T23:07:40Z [skip ci] 2026-07-29 23:07:41 +00:00
fithwum 23b5eb27dc Merge changelog updates 2026-07-29 23:07:40 +00:00
fithwum e4b36d2a59 Update changelogs on 2026-07-29T23:07:39Z [skip ci] 2026-07-29 23:07:39 +00:00
fithwum 40f592df5b update auto update
minecraft-build-testing / Docker prune (vm-docker-build2) (push) Successful in 3s
minecraft-build-minecraft / Docker prune (vm-docker-build2) (push) Successful in 3s
minecraft-build-minecraft / Build and Push minecraft (push) Successful in 34s
minecraft-build-testing / Build and Push testing (push) Successful in 36s
minecraft-build-minecraft / generate-changelogs (push) Successful in 8s
minecraft-build-testing / generate-changelogs (push) Successful in 10s
minecraft-build-minecraft / generate-build-info (push) Successful in 9s
minecraft-build-testing / generate-build-info (push) Successful in 9s
2026-07-29 16:06:44 -07:00
fithwum b9a90b4e6c Merge build-info updates 2026-07-29 22:44:56 +00:00
fithwum 30be064d39 Update build-info on 2026-07-29T22:44:55Z [skip ci] 2026-07-29 22:44:55 +00:00
6 changed files with 145 additions and 69 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
## 2026-07-29T01:49:10Z
## 2026-08-16T21:36:42Z
- update dockerfile (fithwum)
- Merge build-info updates (fithwum)
- Update build-info on 2026-07-29T01:47:03Z [skip ci] (fithwum)
- Update build-info on 2026-08-16T21:31:53Z [skip ci] (fithwum)
- Merge changelog updates (fithwum)
- Update changelogs on 2026-08-16T21:31:42Z [skip ci] (fithwum)
- Merge build-info updates (fithwum)
+4 -4
View File
@@ -1,9 +1,9 @@
{
"version": "minecraft",
"commit": "fd735bc759c4d93349057c023f8093f627fbca42",
"build_time": "2026-07-29T01:49:32Z",
"commit": "91f1b766cf25823c8a8c000775e78e1186bf49c9",
"build_time": "2026-08-16T21:37:03Z",
"image_tag": "gitea.fithwum.tech/fithwum/minecraft:minecraft",
"digest": "gitea.fithwum.tech/fithwum/minecraft@sha256:2d4529b629f59b04533aed265bb49dba2f9d16ae02a121d7db511076c8f1a865",
"digest": "gitea.fithwum.tech/fithwum/minecraft@sha256:7f3fd24b83fcf6ae4fa4b67f7876dfef25c6a28b6b320389c2dea677259ecf31",
"image_size": "302MB",
"image_size_bytes": 317419226
"image_size_bytes": 317421393
}
+101 -51
View File
@@ -1,20 +1,19 @@
#!/bin/bash
# Copyright (c) 2022 fithwum
# Copyright (c) 2026 fithwum
# All rights reserved
DEBIAN_VERSION=13
MC_DIR=/mcserver
EULA_FILE=$MC_DIR/eula.txt
EULA_MARKER=$MC_DIR/.eula_accepted
MS_REPO=https://packages.microsoft.com/config/debian/13/packages-microsoft-prod.deb
SERVER_PROPERTIES=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/minecraft/server.properties
RUN_VANILLA=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/testing/run-vanilla.sh
RUN_BUKKIT=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/testing/run-bukkit.sh
RUN_FABRIC=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/testing/run-fabric.sh
RUN_QUILT=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/testing/run-quilt.sh
VERSION_CHECK=$(curl -s "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json" | grep -Pom 1 '"url": "\K[^"]*'$MC_VERSION'.json')
MC_SERVER_FILE=$(curl -s $VERSION_CHECK | jq --raw-output '.downloads.server.url')
BUKKIT_INSTALLER_FILE=https://cdn.getbukkit.org/craftbukkit/craftbukkit-$MC_VERSION.jar
FABRIC_SERVER_FILE=https://meta.fabricmc.net/v2/versions/loader/$MC_VERSION/$FABRIC_VERSION/$FABRIC_INSTALLER_VERSION/server/jar
QUILT_INSTALLER_FILE=https://quiltmc.org/api/v1/download-latest-installer/java-universal
@@ -44,32 +43,32 @@ elif [ $JAVA_VERSION = "openjdk-25-jre" ]; then
apt-get update
apt-get --no-install-recommends -y install openjdk-25-jre-headless
fi
# elif [ $JAVA_VERSION = "msopenjdk-21" ]; then
# echo "INFO ! $JAVA_VERSION Selected"
# if [ dpkg -s msopenjdk-21 &> /dev/null ]
# then
# echo "INFO ! $JAVA_VERSION installed ... moving on."
# else
# echo " "
# echo "WARNING ! $JAVA_VERSION not installed ... will install now."
# wget https://packages.microsoft.com/config/debian/$DEBIAN_VERSION/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# dpkg -i packages-microsoft-prod.deb
# apt-get update && apt-get install -y msopenjdk-21
# apt-get -y update && apt-get -y --fix-broken install
# fi
# elif [ $JAVA_VERSION = "msopenjdk-25" ]; then
# echo "INFO ! $JAVA_VERSION Selected"
# if [ dpkg -s msopenjdk-25 &> /dev/null ]
# then
# echo "INFO ! $JAVA_VERSION installed ... moving on."
# else
# echo " "
# echo "WARNING ! $JAVA_VERSION not installed ... will install now."
# wget https://packages.microsoft.com/config/debian/$DEBIAN_VERSION/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# dpkg -i packages-microsoft-prod.deb
# apt-get update && apt-get install -y msopenjdk-25
# apt-get -y update && apt-get -y --fix-broken install
# fi
elif [ $JAVA_VERSION = "msopenjdk-21" ]; then
echo "INFO ! $JAVA_VERSION Selected"
if [ dpkg -s msopenjdk-21 &> /dev/null ]
then
echo "INFO ! $JAVA_VERSION installed ... moving on."
else
echo " "
echo "WARNING ! $JAVA_VERSION not installed ... will install now."
wget --no-cache --show-progress --progress=bar:force:noscroll $MS_REPO -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update && apt-get install -y msopenjdk-21
apt-get -y update && apt-get -y --fix-broken install
fi
elif [ $JAVA_VERSION = "msopenjdk-25" ]; then
echo "INFO ! $JAVA_VERSION Selected"
if [ dpkg -s msopenjdk-25 &> /dev/null ]
then
echo "INFO ! $JAVA_VERSION installed ... moving on."
else
echo " "
echo "WARNING ! $JAVA_VERSION not installed ... will install now."
wget --no-cache --show-progress --progress=bar:force:noscroll $MS_REPO -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update && apt-get install -y msopenjdk-25
apt-get -y update && apt-get -y --fix-broken install
fi
else
echo "ERROR ! Java version must be set first run"
sleep infinity
@@ -79,27 +78,78 @@ fi
# Check for server files and download if needed.
if [ $MC_TYPE = "vanilla" ]; then
echo "INFO ! Vanilla Selected"
if [ -e $MC_DIR/mcserver-$MC_VERSION.jar ]
then
echo " "
echo "INFO ! mcserver-$MC_VERSION.jar found starting now."
else
echo " "
echo "WARNING ! mcserver-$MC_VERSION.jar is out of date/missing ... will download now."
echo " "
echo "INFO ! Cleaning old files."
cd $MC_DIR
mkdir -pv old-server-versions/
rm -fr *.jar libraries defaultconfigs config mods user_jvm_args.txt run.bat
mv -v *.log old-server-versions/
wget --no-cache --show-progress --progress=bar:force:noscroll $MC_SERVER_FILE -O mcserver-$MC_VERSION.jar
chmod +x mcserver-$MC_VERSION.jar
echo " "
echo "WARNING ! run-$MC_TYPE-$MC_VERSION.sh is out of date/missing ... will generate now."
mv -v run-*.sh old-server-versions/
wget --no-cache --show-progress --progress=bar:force:noscroll $RUN_VANILLA -O run-$MC_TYPE-$MC_VERSION.sh
chmod +x run-$MC_TYPE-$MC_VERSION.sh
cd ..
# Fallback to default channel type if MC_TYPE or MC_VERSION is empty
: "${MC_VERSION:=latest}"
echo "Using server type: $MC_TYPE"
# Get the currently installed Minecraft version from the filesystem
CUR_VERSION=$(find "$MC_DIR" -name "installed-*" | cut -d - -f2-)
echo "Current local version: '${CUR_VERSION:-None}'"
# Fetch the global Minecraft version manifest cleanly
JSON=$(curl -s "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json")
# Validate that we actually received valid JSON
if [ -z "$JSON" ] || ! echo "$JSON" | jq . >/dev/null 2>&1; then
echo "Error: Failed to fetch valid JSON from Mojang API"
exit 1
fi
# Resolve the target version dynamically
if [ ! -z "$MC_VERSION" ] && [ "$MC_VERSION" != "latest" ]; then
# User specified an exact version string (e.g., 1.20.1)
TARGET_VERSION=$(echo "$JSON" | jq -r --arg version "$MC_VERSION" '.versions[] | select(.id == $version) | .id')
if [ -z "$TARGET_VERSION" ]; then
echo "Error: Specified version '$MC_VERSION' not found in Mojang API."
exit 1
fi
else
# No version specified or "latest" chosen. Pull from the latest release
TARGET_VERSION=$(echo "$JSON" | jq -r '.latest.release')
fi
echo "Target version determined: '$TARGET_VERSION'"
# Update variable to match resolved target
MC_VERSION=$TARGET_VERSION
# Compare versions and only update if they do NOT match
if [ "$CUR_VERSION" != "$TARGET_VERSION" ]; then
echo "Versions differ ($CUR_VERSION vs $TARGET_VERSION). Fetching Minecraft server download URL..."
# Extract the target sub-manifest URL for this specific Minecraft version
VERSION_CHECK=$(echo "$JSON" | jq -r --arg version "$TARGET_VERSION" '.versions[] | select(.id == $version) | .url')
if [ "$VERSION_CHECK" == "null" ] || [ -z "$VERSION_CHECK" ]; then
echo "Error: Metadata URL link not found for version $TARGET_VERSION"
exit 1
fi
# Fetch the specific version's metadata JSON and extract the server jar link
MC_SERVER_FILE=$(curl -s "$VERSION_CHECK" | jq -r '.downloads.server.url')
if [ "$MC_SERVER_FILE" == "null" ] || [ -z "$MC_SERVER_FILE" ]; then
echo "Error: Server jar download URL not found for version $TARGET_VERSION"
exit 1
fi
echo "Ready to download: $MC_SERVER_FILE"
# Process Vanilla Minecraft downloads
echo " "
echo "WARNING ! Minecraft server is out of date/missing ... will download now."
echo "INFO ! Cleaning old files."
cd "$MC_DIR" || exit 1
mkdir -pv old-server-versions/
# Wipe old dependencies cleanly
rm -fr *.jar libraries defaultconfigs user_jvm_args.txt run.bat
# Safely preserve old logs
[ -f *.log ] && mv *.log old-server-versions/
# Download and fix execution modes
wget --no-cache --show-progress --progress=bar:force:noscroll "$MC_SERVER_FILE" -O "mcserver-$MC_VERSION.jar"
chmod +x "mcserver-$MC_VERSION.jar"
echo " "
echo "WARNING ! run-$MC_TYPE-$MC_VERSION.sh is out of date/missing ... will download now."
[ -f run-*.sh ] && mv -v run-*.sh old-server-versions/
wget --no-cache --show-progress --progress=bar:force:noscroll "$RUN_VANILLA" -O "run-$MC_TYPE-$MC_VERSION.sh"
chmod +x "run-$MC_TYPE-$MC_VERSION.sh"
# Drop updated marker file
rm -f installed-*
touch installed-$MC_VERSION
cd ..
else
echo "No update required. Local version matches target version."
fi
elif [ $MC_TYPE = "bukkit" ]; then
echo "INFO ! Bukkit Selected"
+5 -3
View File
@@ -1,5 +1,7 @@
## 2026-07-29T22:44:31Z
## 2026-08-16T21:31:42Z
- add auto update for vanilla (fithwum)
- Merge build-info updates (fithwum)
- Update build-info on 2026-07-29T01:49:44Z [skip ci] (fithwum)
- Update build-info on 2026-08-09T21:36:57Z [skip ci] (fithwum)
- Merge changelog updates (fithwum)
- Update changelogs on 2026-08-09T21:36:46Z [skip ci] (fithwum)
- Merge build-info updates (fithwum)
+4 -4
View File
@@ -1,9 +1,9 @@
{
"version": "testing",
"commit": "16b57f5296b06052a7aa5b2800211198e7bbd97e",
"build_time": "2026-07-29T01:49:43Z",
"commit": "70de4f526e9e3574f290a1716a2358c502b7f795",
"build_time": "2026-08-16T21:31:53Z",
"image_tag": "gitea.fithwum.tech/fithwum/minecraft:testing",
"digest": "gitea.fithwum.tech/fithwum/minecraft@sha256:9b50b5733d7162cd2920ad27dd0fad5b2516d19074aa418097d8dd20328cd68f",
"digest": "gitea.fithwum.tech/fithwum/minecraft@sha256:5534b5372526a8263ffe680023221e8265a2c98acac066396d87234d19769ab2",
"image_size": "304MB",
"image_size_bytes": 318984743
"image_size_bytes": 318986777
}
+27 -4
View File
@@ -2,14 +2,11 @@
# Copyright (c) 2026 fithwum
# All rights reserved
DEBIAN_VERSION=13
MC_DIR=/mcserver
EULA_FILE=$MC_DIR/eula.txt
EULA_MARKER=$MC_DIR/.eula_accepted
INSTALLED_VERSION=$MC_DIR/installed-$TARGET_VERSION
MS_REPO=https://packages.microsoft.com/config/debian/13/packages-microsoft-prod.deb
SERVER_PROPERTIES=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/testing/server.properties
START_FILE=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/master/testing/start.sh
@@ -47,6 +44,32 @@ elif [ $JAVA_VERSION = "openjdk-25-jre" ]; then
apt-get update
apt-get --no-install-recommends -y install openjdk-25-jre-headless
fi
elif [ $JAVA_VERSION = "msopenjdk-21" ]; then
echo "INFO ! $JAVA_VERSION Selected"
if [ dpkg -s msopenjdk-21 &> /dev/null ]
then
echo "INFO ! $JAVA_VERSION installed ... moving on."
else
echo " "
echo "WARNING ! $JAVA_VERSION not installed ... will install now."
wget --no-cache --show-progress --progress=bar:force:noscroll $MS_REPO -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update && apt-get install -y msopenjdk-21
apt-get -y update && apt-get -y --fix-broken install
fi
elif [ $JAVA_VERSION = "msopenjdk-25" ]; then
echo "INFO ! $JAVA_VERSION Selected"
if [ dpkg -s msopenjdk-25 &> /dev/null ]
then
echo "INFO ! $JAVA_VERSION installed ... moving on."
else
echo " "
echo "WARNING ! $JAVA_VERSION not installed ... will install now."
wget --no-cache --show-progress --progress=bar:force:noscroll $MS_REPO -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update && apt-get install -y msopenjdk-25
apt-get -y update && apt-get -y --fix-broken install
fi
else
echo "ERROR ! Java version must be set first run"
sleep infinity