Clean up update stages (#186)
This commit is contained in:
parent
4439ff3656
commit
8bf4bef4fa
@ -9,7 +9,7 @@ Meta.EndpointURIFormat=
|
||||
Meta.ConfigManifest=velorenconfig.json
|
||||
Meta.MetaConfigManifest=velorenmetaconfig.json
|
||||
Meta.ConfigRoot=veloren.kvp
|
||||
Meta.MinAMPVersion=2.3.4.3
|
||||
Meta.MinAMPVersion=2.4.0.2
|
||||
Meta.SpecificDockerImage=
|
||||
Meta.DockerRequired=False
|
||||
Meta.ContainerPolicy=Supported
|
||||
@ -54,7 +54,7 @@ App.RCONConnectRetrySeconds=5
|
||||
App.RCONHeartbeatMinutes=0
|
||||
App.RCONHeartbeatCommand=ping
|
||||
App.TelnetLoginFormat={0}
|
||||
App.UpdateSources=[{"UpdateStageName":"Server Download","UpdateSourcePlatform":"Windows","UpdateSource":"FetchURL","UpdateSourceData":"https://download.veloren.net/latest/windows/x86_64/nightly","UpdateSourceTarget":"{{$FullRootDir}}","UnzipUpdateSource":false,"OverwriteExistingFiles":true,"DeleteAfterExtract":false},{"UpdateStageName":"Server Download","UpdateSourcePlatform":"Linux","UpdateSource":"FetchURL","UpdateSourceData":"https://download.veloren.net/latest/linux/x86_64/nightly","UpdateSourceTarget":"{{$FullRootDir}}","UnzipUpdateSource":false,"OverwriteExistingFiles":true,"DeleteAfterExtract":false},{"UpdateStageName":"Server Download Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"{{$FullInstanceDir}}nightly.zip","UpdateSourceArgs":"{{$FullRootDir}}nightly","OverwriteExistingFiles":true},{"UpdateStageName":"Server Extract","UpdateSourcePlatform":"All","UpdateSource":"ExtractArchive","UpdateSourceArgs":"{{$FullInstanceDir}}nightly.zip","UpdateSourceTarget":"{{$FullRootDir}}","OverwriteExistingFiles":true,"DeleteAfterExtract":true},{"UpdateStageName":"Set Executable Flag","UpdateSourcePlatform":"Linux","UpdateSource":"SetExecutableFlag","UpdateSourceArgs":"{{$FullRootDir}}veloren-server-cli"},{"UpdateStageName":"Settings Template Download","UpdateSourcePlatform":"All","UpdateSource":"FetchURL","UpdateSourceData":"https://raw.githubusercontent.com/CubeCoders/AMPTemplates/main/velorensettings.ron","UpdateSourceTarget":"{{$FullInstanceDir}}","OverwriteExistingFiles":true},{"UpdateStageName":"Config Directory Creation","UpdateSourcePlatform":"All","UpdateSource":"CreateDirectory","UpdateSourceArgs":"{{$FullBaseDir}}userdata/server/server_config"},{"UpdateStageName":"Settings Template Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"{{$FullBaseDir}}userdata/server/server_config/AMP_settings.ron","UpdateSourceArgs":"{{$FullInstanceDir}}velorensettings.ron","OverwriteExistingFiles":false}]
|
||||
App.UpdateSources=@IncludeJson[velorenupdates.json]
|
||||
App.Compatibility=None
|
||||
App.SteamUpdateAnonymousLogin=True
|
||||
App.SteamForceLoginPrompt=False
|
||||
|
60
velorenupdates.json
Normal file
60
velorenupdates.json
Normal file
@ -0,0 +1,60 @@
|
||||
[
|
||||
{
|
||||
"UpdateStageName":"Server Download",
|
||||
"UpdateSourcePlatform":"Windows",
|
||||
"UpdateSource":"FetchURL",
|
||||
"UpdateSourceData":"https://download.veloren.net/latest/windows/x86_64/nightly",
|
||||
"UpdateSourceArgs":"nightly.zip",
|
||||
"UpdateSourceTarget":"{{$FullRootDir}}",
|
||||
"UnzipUpdateSource":true,
|
||||
"OverwriteExistingFiles":true,
|
||||
"DeleteAfterExtract":true
|
||||
},
|
||||
{
|
||||
"UpdateStageName":"Server Download",
|
||||
"UpdateSourcePlatform":"Linux",
|
||||
"UpdateSource":"FetchURL",
|
||||
"UpdateSourceData":"https://download.veloren.net/latest/linux/x86_64/nightly",
|
||||
"UpdateSourceArgs":"nightly.zip",
|
||||
"UpdateSourceTarget":"{{$FullRootDir}}",
|
||||
"UnzipUpdateSource":true,
|
||||
"OverwriteExistingFiles":true,
|
||||
"DeleteAfterExtract":true
|
||||
},
|
||||
{
|
||||
"UpdateStageName":"Set Executable Flag",
|
||||
"UpdateSourcePlatform":"Linux",
|
||||
"UpdateSource":"SetExecutableFlag",
|
||||
"UpdateSourceArgs":"{{$FullRootDir}}veloren-server-cli"
|
||||
},
|
||||
{
|
||||
"UpdateStageName":"Config Directory Creation",
|
||||
"UpdateSourcePlatform":"All",
|
||||
"UpdateSource":"CreateDirectory",
|
||||
"UpdateSourceArgs":"{{$FullBaseDir}}userdata/server/server_config"
|
||||
},
|
||||
{
|
||||
"UpdateStageName":"Settings Template Download",
|
||||
"UpdateSourcePlatform":"All",
|
||||
"UpdateSource":"FetchURL",
|
||||
"UpdateSourceData":"https://raw.githubusercontent.com/CubeCoders/AMPTemplates/main/velorensettings.ron",
|
||||
"UpdateSourceArgs":"AMP_settings.ron",
|
||||
"UpdateSourceTarget":"{{$FullBaseDir}}userdata/server/server_config/",
|
||||
"OverwriteExistingFiles":false
|
||||
},
|
||||
{
|
||||
"UpdateStageName":"Start Server",
|
||||
"UpdateSourcePlatform":"All",
|
||||
"UpdateSource":"StartApplication"
|
||||
},
|
||||
{
|
||||
"UpdateStageName":"Wait For Server Start",
|
||||
"UpdateSourcePlatform":"All",
|
||||
"UpdateSource":"WaitForStartupComplete"
|
||||
},
|
||||
{
|
||||
"UpdateStageName":"Stop Server",
|
||||
"UpdateSourcePlatform":"All",
|
||||
"UpdateSource":"ShutdownApplication"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user