83 lines
3.0 KiB
JSON
83 lines
3.0 KiB
JSON
[
|
|
{
|
|
"UpdateStageName":"Delete Server Directory",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"/bin/bash",
|
|
"UpdateSourceArgs":"-c 'rm -rf {{$FullBaseDir}}server'"
|
|
},
|
|
{
|
|
"UpdateStageName":"Delete Server Directory",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"Executable",
|
|
"UpdateSourceData":"cmd.exe",
|
|
"UpdateSourceArgs":"/C del /Q /F {{$FullBaseDir}}server"
|
|
},
|
|
{
|
|
"UpdateStageName":"Dotnet Directory Creation",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"CreateDirectory",
|
|
"UpdateSourceArgs":"{{$FullBaseDir}}dotnet"
|
|
},
|
|
{
|
|
"UpdateStageName":"Server Directory Creation",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"CreateDirectory",
|
|
"UpdateSourceArgs":"{{$FullBaseDir}}server"
|
|
},
|
|
{
|
|
"UpdateStageName":"ASP.NET Core Runtime Download",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/{{DotnetVersion}}/aspnetcore-runtime-{{DotnetVersion}}-win-x64.zip",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}dotnet",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"ASP.NET Core Runtime Download",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/{{DotnetVersion}}/aspnetcore-runtime-{{DotnetVersion}}-linux-x64.tar.gz",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}dotnet",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Server Download",
|
|
"UpdateSourcePlatform":"Windows",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://cdn.vintagestory.at/gamefiles/stable/vs_server_win-x64_{{ServerVersion}}.zip",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}server",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Server Download",
|
|
"UpdateSourcePlatform":"Linux",
|
|
"UpdateSource":"FetchURL",
|
|
"UpdateSourceData":"https://cdn.vintagestory.at/gamefiles/stable/vs_server_linux-x64_{{ServerVersion}}.tar.gz",
|
|
"UpdateSourceTarget":"{{$FullBaseDir}}server",
|
|
"UnzipUpdateSource":true,
|
|
"OverwriteExistingFiles":true,
|
|
"DeleteAfterExtract":true
|
|
},
|
|
{
|
|
"UpdateStageName":"Start Server",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"StartApplication"
|
|
},
|
|
{
|
|
"UpdateStageName":"Wait For Server Start",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"WaitForStartupComplete"
|
|
},
|
|
{
|
|
"UpdateStageName":"Stop Server",
|
|
"UpdateSourcePlatform":"All",
|
|
"UpdateSource":"ShutdownApplication"
|
|
}
|
|
] |