Author SHA1 Message Date
fithwum 384bb8eaca Update changelogs on 2026-07-29T01:57:03Z [skip ci] 2026-07-29 01:57:03 +00:00
8 changed files with 64 additions and 137 deletions
@@ -12,7 +12,7 @@ on:
- '!latest/CHANGES.md'
- '!latest/build-info.json'
schedule:
- cron: '10 22 * * 0'
- cron: '5 22 * * 0'
env:
IMAGE_REGISTRY: gitea.fithwum.tech
+3
View File
@@ -1,5 +1,8 @@
# Vintage Story
[![vintage-story-build-server](https://gitea.fithwum.tech/fithwum/vintage-story/actions/workflows/vintage-story-build-server.yml/badge.svg?branch=main)](https://gitea.fithwum.tech/fithwum/vintage-story/actions?workflow=vintage-story-build-server.yml)
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
+3 -4
View File
@@ -1,6 +1,5 @@
## 2026-07-29T22:44:14Z
## 2026-07-28T18:54:59Z
- updates (fithwum)
- update and add testing build (fithwum)
- Merge build-info updates (fithwum)
- Update build-info on 2026-07-29T17:51:25Z [skip ci] (fithwum)
- Merge changelog updates (fithwum)
- Update build-info on 2026-07-28T18:48:03Z [skip ci] (fithwum)
+4 -4
View File
@@ -1,9 +1,9 @@
{
"version": "latest",
"commit": "7eab189f79563646448eb7a09e44bcd74ef8ec4c",
"build_time": "2026-07-29T22:44:46Z",
"commit": "bf7e754e81b14116c8c64da4cea285dbb87123bc",
"build_time": "2026-07-28T18:55:12Z",
"image_tag": "gitea.fithwum.tech/fithwum/vintage-story:latest",
"digest": "gitea.fithwum.tech/fithwum/vintage-story@sha256:6acf63d2e6a02c3fdbfa72db1ad3e9adb92feae4d35d9dd6ce16103f63c68922",
"digest": "gitea.fithwum.tech/fithwum/vintage-story@sha256:c32c9aa58784c27e1653421d333b596f3f87f53729b17849cd033cb1e275730e",
"image_size": "410MB",
"image_size_bytes": 430959352
"image_size_bytes": 430943709
}
+25 -62
View File
@@ -6,8 +6,8 @@ VS_SERVER_DIR=/vs_server/server
VS_DATA_DIR=/vs_server/server/data
LOG_FILE=$VS_DATA_DIR/Logs/server-main.log
MARKER_FILE=$VS_SERVER_DIR/.setup_done
INSTALLED_VERSION=$VS_SERVER_DIR/installed-$TARGET_VERSION
START_FILE=$VS_SERVER_DIR/server.sh
START_FILE_1=$VS_SERVER_DIR/server-$VS_VERSION.sh
VS_SERVER_FILE=https://cdn.vintagestory.at/gamefiles/$VS_CHANNEL/vs_server_linux-x64_$VS_VERSION.tar.gz
MS_REPO_URL=https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
USERNAME=adduser vintagestory
@@ -59,70 +59,33 @@ else
sleep infinity
fi
# Main install & auto update.
# Main install (Debian).
# Check for server files and download if needed.
# Fallback to stable channel if VS_CHANNEL is blank
: "${VS_CHANNEL:=stable}"
echo "Using channel: $VS_CHANNEL"
# Get the currently installed version from filesystem
CUR_V=$(find "$VS_SERVER_DIR" -name "installed-*" | cut -d - -f2-)
echo "Current local version: '${CUR_V:-None}'"
# Fetch the API JSON cleanly
API_URL="http://api.vintagestory.at/${VS_CHANNEL}.json"
JSON=$(wget -qO- "$API_URL")
# 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 $API_URL"
exit 1
fi
# Resolve the target version dynamically from the JSON Object keys
if [ ! -z "$VS_VERSION" ] && [ "$VS_VERSION" != "latest" ]; then
# User specified an exact version. Check if it exists as a key in the object
TARGET_VERSION=$(echo "$JSON" | jq -r --arg version "$VS_VERSION" 'if .[$version] then $version else "" end')
if [ -z "$TARGET_VERSION" ]; then
echo "Error: Specified version '$VS_VERSION' not found in the $VS_CHANNEL channel API."
exit 1
fi
else
# No version specified or "latest" chosen. Get the very first key from the object
TARGET_VERSION=$(echo "$JSON" | jq -r 'keys_unsorted | .[0]')
fi
echo "Target version determined: '$TARGET_VERSION'"
# Compare versions and only download if they do NOT match
if [ "$CUR_V" != "$TARGET_VERSION" ]; then
echo "Versions differ ($CUR_V vs $TARGET_VERSION). Fetching CDN download URL..."
# Extract the CDN download link using the valid object key structure
VS_SERVER_FILE=$(echo "$JSON" | jq -r --arg version "$TARGET_VERSION" '.[$version].linuxserver.urls.cdn')
if [ "$VS_SERVER_FILE" == "null" ] || [ -z "$VS_SERVER_FILE" ]; then
echo "Error: Download URL not found for version $TARGET_VERSION"
exit 1
fi
echo "Ready to download: $VS_SERVER_FILE"
if [ -e $START_FILE_1 ]
then
echo " "
echo "INFO ! Cleaning old files."
mkdir -pv $VS_SERVER_DIR/old-server-versions/
mv *.sh $VS_SERVER_DIR/old-server-versions/
rm -fr $VS_SERVER_DIR/assets $VS_SERVER_DIR/Lib $VS_SERVER_DIR/Mods
rm -fr $VS_SERVER_DIR/VintagestoryServer $VS_SERVER_DIR/*.dll $VS_SERVER_DIR/*.pdb $VS_SERVER_DIR/*.json $VS_SERVER_DIR/*.xml $VS_SERVER_DIR/*.txt
wget --no-cache --show-progress --progress=bar:force:noscroll $VS_SERVER_FILE -O /vstemp/vs_server_linux-x64_$TARGET_VERSION.tar.gz
tar -xzf /vstemp/vs_server_linux-x64_$TARGET_VERSION.tar.gz -C /vstemp/files
rm -fr /vstemp/*.tar.gz
mv -uf /vstemp/files/* $VS_SERVER_DIR/
chmod +x $START_FILE
touch $INSTALLED_VERSION
else
echo "No update required. Local version matches target version."
echo "INFO ! server-$VS_VERSION.sh found starting now."
else
echo " "
echo "WARNING ! server-$VS_VERSION.sh is out of date/missing ... will download now."
echo " "
echo "INFO ! Cleaning old files."
mkdir -pv $VS_SERVER_DIR/old-server-versions/
mv *.sh $VS_SERVER_DIR/old-server-versions/
rm -fr $VS_SERVER_DIR/assets $VS_SERVER_DIR/Lib $VS_SERVER_DIR/Mods
rm -fr $VS_SERVER_DIR/VintagestoryServer $VS_SERVER_DIR/*.dll $VS_SERVER_DIR/*.pdb $VS_SERVER_DIR/*.json $VS_SERVER_DIR/*.xml $VS_SERVER_DIR/*.txt
wget --no-cache --show-progress --progress=bar:force:noscroll $VS_SERVER_FILE -O /vstemp/vs_server_linux-x64_$VS_VERSION.tar.gz
tar -xzf /vstemp/vs_server_linux-x64_$VS_VERSION.tar.gz -C /vstemp/files
rm -fr /vstemp/*.tar.gz
mv -uf /vstemp/files/* $VS_SERVER_DIR/
mv $VS_SERVER_DIR/server.sh $START_FILE_1
chmod +x $START_FILE_1
fi
echo "INFO ! Setting server path."
sed -i -E "s|^VSPATH='/home/vintagestory/server'|VSPATH='$VS_SERVER_DIR'|" $START_FILE
sed -i -E "s|^VSPATH='/home/vintagestory/server'|VSPATH='$VS_SERVER_DIR'|" $START_FILE_1
echo "INFO ! Setting data path."
sed -i -E "s|^DATAPATH='/var/vintagestory/data'|DATAPATH='$VS_DATA_DIR'|" $START_FILE
sed -i -E "s|^DATAPATH='/var/vintagestory/data'|DATAPATH='$VS_DATA_DIR'|" $START_FILE_1
# Set permissions.
chown 99:100 -R $VS_SERVER_DIR
@@ -131,7 +94,7 @@ chmod 776 -R $VS_SERVER_DIR
# Setup the server
if [ ! -f $MARKER_FILE ]; then
echo "First time run: Setting up server environment..."
yes y | $VS_SERVER_DIR/server.sh setup $USERNAME $VS_DATA_DIR
yes y | $VS_SERVER_DIR/server-1.21.5.sh setup $USERNAME $VS_DATA_DIR
touch $MARKER_FILE
echo "Setup successfully completed."
fi
@@ -139,7 +102,7 @@ fi
# Run vintage-story server.
echo " "
echo "INFO ! Starting vintage-story Server $VS_VERSION"
.$START_FILE start
.$START_FILE_1 start
echo "Waiting for the server log file to be created..."
# Loop indefinitely until the log file actually exists on disk
+2 -3
View File
@@ -1,6 +1,5 @@
## 2026-08-02T22:06:05Z
## 2026-07-29T01:57:03Z
- updates (fithwum)
- updates (fithwum)
- Merge build-info updates (fithwum)
- Update build-info on 2026-07-29T22:44:47Z [skip ci] (fithwum)
- Merge changelog updates (fithwum)
+4 -4
View File
@@ -1,9 +1,9 @@
{
"version": "testing",
"commit": "a6973ec9973b90bf7ee54996998346cffa90508f",
"build_time": "2026-08-02T22:06:16Z",
"commit": "2d81ab8f90fd49ded59f6f72482c85ef197fb830",
"build_time": "2026-07-28T18:55:15Z",
"image_tag": "gitea.fithwum.tech/fithwum/vintage-story:testing",
"digest": "gitea.fithwum.tech/fithwum/vintage-story@sha256:be5358023866a3e6f602b593a0a0b690ac63307a51aa1829d93044ae6b0d271f",
"digest": "gitea.fithwum.tech/fithwum/vintage-story@sha256:db1127041469a4a98fe560d7fbb62be7765de1d8c8b98bc5cc1534fd92d78e93",
"image_size": "410MB",
"image_size_bytes": 430959895
"image_size_bytes": 430944198
}
+22 -59
View File
@@ -6,9 +6,9 @@ VS_SERVER_DIR=/vs_server/server
VS_DATA_DIR=/vs_server/server/data
LOG_FILE=$VS_DATA_DIR/Logs/server-main.log
MARKER_FILE=$VS_SERVER_DIR/.setup_done
INSTALLED_VERSION=$VS_SERVER_DIR/installed-$TARGET_VERSION
START_FILE_1=$VS_SERVER_DIR/server.sh
START_FILE_1=$VS_SERVER_DIR/server-$VS_VERSION.sh
START_FILE_2=https://gitea.fithwum.tech/fithwum/vintage-story/raw/branch/main/testing/start.sh
VS_SERVER_FILE=https://cdn.vintagestory.at/gamefiles/$VS_CHANNEL/vs_server_linux-x64_$VS_VERSION.tar.gz
MS_REPO_URL=https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
USERNAME=adduser vintagestory
@@ -60,64 +60,27 @@ else
sleep infinity
fi
# Main install & auto update.
# Main install (Debian).
# Check for server files and download if needed.
# Fallback to stable channel if VS_CHANNEL is blank
: "${VS_CHANNEL:=stable}"
echo "Using channel: $VS_CHANNEL"
# Get the currently installed version from filesystem
CUR_V=$(find "$VS_SERVER_DIR" -name "installed-*" | cut -d - -f2-)
echo "Current local version: '${CUR_V:-None}'"
# Fetch the API JSON cleanly
API_URL="http://api.vintagestory.at/$VS_CHANNEL.json"
JSON=$(wget -qO- "$API_URL")
# 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 $API_URL"
exit 1
fi
# Resolve the target version dynamically from the JSON Object keys
if [ ! -z "$VS_VERSION" ] && [ "$VS_VERSION" != "latest" ]; then
# User specified an exact version. Check if it exists as a key in the object
TARGET_VERSION=$(echo "$JSON" | jq -r --arg version "$VS_VERSION" 'if .[$version] then $version else "" end')
if [ -z "$TARGET_VERSION" ]; then
echo "Error: Specified version '$VS_VERSION' not found in the $VS_CHANNEL channel API."
exit 1
fi
else
# No version specified or "latest" chosen. Get the very first key from the object
TARGET_VERSION=$(echo "$JSON" | jq -r 'keys_unsorted | .[0]')
fi
echo "Target version determined: '$TARGET_VERSION'"
# Compare versions and only download if they do NOT match
if [ "$CUR_V" != "$TARGET_VERSION" ]; then
echo "Versions differ ($CUR_V vs $TARGET_VERSION). Fetching CDN download URL..."
# Extract the CDN download link using the valid object key structure
VS_SERVER_FILE=$(echo "$JSON" | jq -r --arg version "$TARGET_VERSION" '.[$version].linuxserver.urls.cdn')
if [ "$VS_SERVER_FILE" == "null" ] || [ -z "$VS_SERVER_FILE" ]; then
echo "Error: Download URL not found for version $TARGET_VERSION"
exit 1
fi
echo "Ready to download: $VS_SERVER_FILE"
if [ -e $START_FILE_1 ]
then
echo " "
echo "INFO ! Cleaning old files."
mkdir -pv $VS_SERVER_DIR/old-server-versions/
mv $VS_SERVER_DIR/*.sh $VS_SERVER_DIR/old-server-versions/
rm -fr $VS_SERVER_DIR/assets $VS_SERVER_DIR/Lib $VS_SERVER_DIR/Mods
rm -fr $VS_SERVER_DIR/VintagestoryServer $VS_SERVER_DIR/*.dll $VS_SERVER_DIR/*.pdb $VS_SERVER_DIR/*.json $VS_SERVER_DIR/*.xml $VS_SERVER_DIR/*.txt $VS_SERVER_DIR/installed-*
wget --no-cache --show-progress --progress=bar:force:noscroll $VS_SERVER_FILE -O /vstemp/vs_server_linux-x64_$TARGET_VERSION.tar.gz
tar -xzf /vstemp/vs_server_linux-x64_$TARGET_VERSION.tar.gz -C /vstemp/files
rm -fr /vstemp/*.tar.gz
mv -uf /vstemp/files/* $VS_SERVER_DIR/
chmod +x $START_FILE_1
touch $INSTALLED_VERSION
else
echo "No update required. Local version matches target version."
echo "INFO ! server-$VS_VERSION.sh found starting now."
else
echo " "
echo "WARNING ! server-$VS_VERSION.sh is out of date/missing ... will download now."
echo " "
echo "INFO ! Cleaning old files."
mkdir -pv $VS_SERVER_DIR/old-server-versions/
mv *.sh $VS_SERVER_DIR/old-server-versions/
rm -fr $VS_SERVER_DIR/assets $VS_SERVER_DIR/Lib $VS_SERVER_DIR/Mods
rm -fr $VS_SERVER_DIR/VintagestoryServer $VS_SERVER_DIR/*.dll $VS_SERVER_DIR/*.pdb $VS_SERVER_DIR/*.json $VS_SERVER_DIR/*.xml $VS_SERVER_DIR/*.txt
wget --no-cache --show-progress --progress=bar:force:noscroll $VS_SERVER_FILE -O /vstemp/vs_server_linux-x64_$VS_VERSION.tar.gz
tar -xzf /vstemp/vs_server_linux-x64_$VS_VERSION.tar.gz -C /vstemp/files
rm -fr /vstemp/*.tar.gz
mv -uf /vstemp/files/* $VS_SERVER_DIR/
mv $VS_SERVER_DIR/server.sh $START_FILE_1
chmod +x $START_FILE_1
fi
echo "INFO ! Setting server path."
@@ -132,7 +95,7 @@ chmod 776 -R $VS_SERVER_DIR
# Setup the server
if [ ! -f $MARKER_FILE ]; then
echo "First time run: Setting up server environment..."
yes y | $VS_SERVER_DIR/server.sh setup $USERNAME $VS_DATA_DIR
yes y | $VS_SERVER_DIR/server-1.21.5.sh setup $USERNAME $VS_DATA_DIR
touch $MARKER_FILE
echo "Setup successfully completed."
fi