From cb347a73ddad53d71c3c227e0e36f91924f007ac Mon Sep 17 00:00:00 2001 From: Greelan <53196309+Greelan@users.noreply.github.com> Date: Tue, 7 Nov 2023 16:31:05 +1100 Subject: [PATCH] Vintage Story: add release stream (#508) --- vintage-story-newconfig.json | 20 ++++++++++++++++++-- vintage-story-newupdates.json | 4 ++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/vintage-story-newconfig.json b/vintage-story-newconfig.json index 84ae3e0..cd14d0d 100644 --- a/vintage-story-newconfig.json +++ b/vintage-story-newconfig.json @@ -27,10 +27,26 @@ "Required":true, "EnumValues":{} }, + { + "DisplayName":"Server Release Stream", + "Category":"Server Settings", + "Description":"Sets the server release stream to install. An appropriate Server Version must also be set. NOTE: Update the server after changing this setting!", + "Keywords":"server,release,stream", + "FieldName":"ServerReleaseStream", + "InputType":"enum", + "IsFlagArgument":false, + "ParamFieldName":"ServerReleaseStream", + "IncludeInCommandLine":false, + "DefaultValue":"stable", + "EnumValues":{ + "stable":"Stable (default)", + "pre":"Preview" + } + }, { "DisplayName":"Server Version", "Category":"Server Settings", - "Description":"Sets the server version to install. Minimum v1.18.8. NOTE: Update the server after changing this setting!", + "Description":"Sets the server version to install, such as 1.18.5 or 1.19.0-pre.5. Minimum v1.18.8. NOTE: Update the server after changing this setting!", "Keywords":"server,version", "FieldName":"ServerVersion", "InputType":"text", @@ -38,7 +54,7 @@ "ParamFieldName":"ServerVersion", "IncludeInCommandLine":false, "DefaultValue":"1.18.15", - "Placeholder":"1.18.15", + "Placeholder":"1.18.15 | 1.19.0-pre.5", "Required":true, "EnumValues":{} }, diff --git a/vintage-story-newupdates.json b/vintage-story-newupdates.json index e953ca5..83677d1 100644 --- a/vintage-story-newupdates.json +++ b/vintage-story-newupdates.json @@ -49,7 +49,7 @@ "UpdateStageName":"Server Download", "UpdateSourcePlatform":"Windows", "UpdateSource":"FetchURL", - "UpdateSourceData":"https://cdn.vintagestory.at/gamefiles/stable/vs_server_win-x64_{{ServerVersion}}.zip", + "UpdateSourceData":"https://cdn.vintagestory.at/gamefiles/{{ServerReleaseStream}}/vs_server_win-x64_{{ServerVersion}}.zip", "UpdateSourceTarget":"{{$FullBaseDir}}server", "UnzipUpdateSource":true, "OverwriteExistingFiles":true, @@ -59,7 +59,7 @@ "UpdateStageName":"Server Download", "UpdateSourcePlatform":"Linux", "UpdateSource":"FetchURL", - "UpdateSourceData":"https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_{{ServerVersion}}.tar.gz", + "UpdateSourceData":"https://cdn.vintagestory.at/gamefiles/{{ServerReleaseStream}}/vs_server_linux-x64_{{ServerVersion}}.tar.gz", "UpdateSourceTarget":"{{$FullBaseDir}}server", "UnzipUpdateSource":true, "OverwriteExistingFiles":true,