Skip to content

Commit 2991f57

Browse files
committed
Release v25.1.6
2 parents dffed7b + 1fbd1aa commit 2991f57

13 files changed

+23
-20
lines changed

lgsm/modules/core_modules.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
1010

11-
modulesversion="v25.1.5"
11+
modulesversion="v25.1.6"
1212

1313
# Core
1414

lgsm/modules/core_steamcmd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn_update_steamcmd_localbuild() {
164164
}
165165

166166
fn_update_steamcmd_remotebuild() {
167-
# Get remote build info.
167+
# Gets remote build info.
168168
if [ -d "${steamcmddir}" ]; then
169169
cd "${steamcmddir}" || exit
170170
fi

lgsm/modules/update_fctr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn_update_localbuild() {
3434
}
3535

3636
fn_update_remotebuild() {
37-
# Get remote build info.
37+
# Gets remote build info.
3838
apiurl="https://factorio.com/get-download/${branch}/headless/${factorioarch}"
3939
remotebuildresponse=$(curl -s "${apiurl}")
4040
remotebuildversion=$(echo "${remotebuildresponse}" | grep -o '[0-9]\.[0-9]\{1,\}\.[0-9]\{1,\}' | head -1)

lgsm/modules/update_jk2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn_update_localbuild() {
3131
}
3232

3333
fn_update_remotebuild() {
34-
# Get remote build info.
34+
# Gets remote build info.
3535
apiurl="https://api.github.com/repos/mvdevs/jk2mv/releases/latest"
3636
remotebuildresponse=$(curl -s "${apiurl}")
3737
remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("dedicated.zip")) | .name')

lgsm/modules/update_mc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn_update_localbuild() {
3434
}
3535

3636
fn_update_remotebuild() {
37-
# Get remote build info.
37+
# Gets remote build info.
3838
apiurl="https://launchermeta.mojang.com/mc/game/version_manifest.json"
3939
remotebuildresponse=$(curl -s "${apiurl}")
4040
# Latest release.

lgsm/modules/update_mcb.sh

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn_update_localbuild() {
3838
# Gets local build info.
3939
fn_print_dots "Checking local build: ${remotelocation}"
4040
# Uses log file to get local build.
41-
localbuild=$(grep Version "${consolelogdir}"/* 2> /dev/null | tail -1 | sed 's/.*Version: //' | tr -d '\000-\011\013-\037')
41+
localbuild=$(grep -hoP 'Version:\s*\K[\d.]+' "${consolelogdir}"/* 2> /dev/null | sort -V -r | head -n1)
4242
if [ -z "${localbuild}" ]; then
4343
fn_print_error "Checking local build: ${remotelocation}: missing local build info"
4444
fn_script_log_error "Missing local build info"
@@ -51,15 +51,18 @@ fn_update_localbuild() {
5151
}
5252

5353
fn_update_remotebuild() {
54-
# Random number for userAgent
55-
randomint=$(tr -dc 0-9 < /dev/urandom 2> /dev/null | head -c 4 | xargs)
56-
# Get remote build info.
57-
if [ "${mcversion}" == "latest" ]; then
58-
remotebuildversion=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -Ls -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.${randomint}.212 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://www.minecraft.net/bedrockdedicatedserver/bin-linux/[^"]*' | sed 's/.*\///' | grep -Eo "[.0-9]+[0-9]")
54+
# Gets remote build info.
55+
apiurl="https://net-secondary.web.minecraft-services.net/api/v1.0/download/links"
56+
remotebuildresponse=$(curl -s "${apiurl}" | jq '.result.links[]')
57+
# Latest preview.
58+
if [ "${mcversion}" == "preview" ]; then
59+
remotebuildurl=$(echo "${remotebuildresponse}" | jq -r 'select(.downloadType == "serverBedrockPreviewLinux") | .downloadUrl')
60+
# Latest release.
5961
else
60-
remotebuildversion="${mcversion}"
62+
remotebuildurl=$(echo "${remotebuildresponse}" | jq -r 'select(.downloadType == "serverBedrockLinux") | .downloadUrl')
6163
fi
62-
remotebuildurl="https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-${remotebuildversion}.zip"
64+
remotebuildversion=$(echo "${remotebuildurl}" | grep -Eo "[.0-9]+[0-9]")
65+
remotebuildfilename="bedrock-server-${remotebuildversion}.zip"
6366

6467
if [ "${firstcommandname}" != "INSTALL" ]; then
6568
fn_print_dots "Checking remote build: ${remotelocation}"

lgsm/modules/update_mta.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn_update_localbuild() {
3434
}
3535

3636
fn_update_remotebuild() {
37-
# Get remote build info.
37+
# Gets remote build info.
3838
apiurl="https://linux.multitheftauto.com/revision/latest.txt"
3939
remotebuildresponse=$(curl -s "${apiurl}")
4040
remotebuildfilename="multitheftauto_linux_x64.tar.gz"

lgsm/modules/update_pmc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn_update_localbuild() {
3232
}
3333

3434
fn_update_remotebuild() {
35-
# Get remote build info.
35+
# Gets remote build info.
3636
apiurl="https://api.papermc.io/v2/projects"
3737
# Get list of projects.
3838
remotebuildresponse=$(curl -s "${apiurl}")

lgsm/modules/update_ts3.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn_update_localbuild() {
3131
}
3232

3333
fn_update_remotebuild() {
34-
# Get remote build info.
34+
# Gets remote build info.
3535
apiurl="https://www.teamspeak.com/versions/server.json"
3636
remotebuildresponse=$(curl -s "${apiurl}")
3737

lgsm/modules/update_ut99.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn_update_localbuild() {
3232
}
3333

3434
fn_update_remotebuild() {
35-
# Get remote build info.
35+
# Gets remote build info.
3636
apiurl="https://api.github.com/repos/OldUnreal/UnrealTournamentPatches/releases/latest"
3737
remotebuildresponse=$(curl -s "${apiurl}")
3838
remotebuildfilename=$(echo "${remotebuildresponse}" | jq -r '.assets[]|select(.browser_download_url | contains("Linux-amd64")) | .name')

0 commit comments

Comments
 (0)