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 +]