AMPTemplates/velorenupdates.json

61 lines
2.1 KiB
JSON

[
{
"UpdateStageName":"Server Download",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://download.veloren.net/latest/windows/x86_64/{{ReleaseVersion}}",
"UpdateSourceArgs":"{{ReleaseVersion}}.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/{{ReleaseVersion}}",
"UpdateSourceArgs":"{{ReleaseVersion}}.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"
}
]