From 2724f0db7f2b0f8d8b5ccd39003330fefd2a76ab Mon Sep 17 00:00:00 2001 From: Greelan <53196309+Greelan@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:03:54 +0300 Subject: [PATCH] Veloren: add Weekly release version option (#416) --- velorenconfig.json | 16 ++++++++++++++++ velorenupdates.json | 10 +++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/velorenconfig.json b/velorenconfig.json index 2876355..f81351b 100644 --- a/velorenconfig.json +++ b/velorenconfig.json @@ -52,5 +52,21 @@ "Suffix":"players", "EnumValues":{}, "MinValue":"1" + }, + { + "DisplayName":"Server Release Version", + "Category":"SteamCMD and Updates", + "Description":"Sets the server release version to install. NOTE: Update the server after changing this setting!", + "Keywords":"server,release,version,nightly,weekly", + "FieldName":"ReleaseVersion", + "InputType":"enum", + "IsFlagArgument":false, + "ParamFieldName":"ReleaseVersion", + "IncludeInCommandLine":false, + "DefaultValue":"weekly", + "EnumValues":{ + "weekly":"Weekly (default)", + "nightly":"Nightly" + } } ] diff --git a/velorenupdates.json b/velorenupdates.json index d24198b..5652468 100644 --- a/velorenupdates.json +++ b/velorenupdates.json @@ -3,8 +3,8 @@ "UpdateStageName":"Server Download", "UpdateSourcePlatform":"Windows", "UpdateSource":"FetchURL", - "UpdateSourceData":"https://download.veloren.net/latest/windows/x86_64/nightly", - "UpdateSourceArgs":"nightly.zip", + "UpdateSourceData":"https://download.veloren.net/latest/windows/x86_64/{{ReleaseVersion}}", + "UpdateSourceArgs":"{{ReleaseVersion}}.zip", "UpdateSourceTarget":"{{$FullRootDir}}", "UnzipUpdateSource":true, "OverwriteExistingFiles":true, @@ -14,8 +14,8 @@ "UpdateStageName":"Server Download", "UpdateSourcePlatform":"Linux", "UpdateSource":"FetchURL", - "UpdateSourceData":"https://download.veloren.net/latest/linux/x86_64/nightly", - "UpdateSourceArgs":"nightly.zip", + "UpdateSourceData":"https://download.veloren.net/latest/linux/x86_64/{{ReleaseVersion}}", + "UpdateSourceArgs":"{{ReleaseVersion}}.zip", "UpdateSourceTarget":"{{$FullRootDir}}", "UnzipUpdateSource":true, "OverwriteExistingFiles":true, @@ -57,4 +57,4 @@ "UpdateSourcePlatform":"All", "UpdateSource":"ShutdownApplication" } -] \ No newline at end of file +]