AMPTemplates/assetto-corsaupdates.json

96 lines
3.9 KiB
JSON

[
{
"UpdateStageName":"SteamCMD Server Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"SteamCMD",
"UpdateSourceData":"302550",
"UpdateSourceArgs":"244210",
"ForceDownloadPlatform":"Windows"
},
{
"UpdateStageName":"Modded Server Download",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"GithubRelease",
"UpdateSourceArgs":"compujuckel/AssettoServer",
"UpdateSourceData":"assetto-server-win-x64.zip",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true,
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
},
{
"UpdateStageName":"Modded Server Download",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"GithubRelease",
"UpdateSourceArgs":"compujuckel/AssettoServer",
"UpdateSourceData":"assetto-server-linux-x64.tar.gz",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true,
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
},
{
"UpdateStageName":"Modded Server Overwrite",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"Executable",
"UpdateSourceData":"cmd.exe",
"UpdateSourceArgs":"/C move /Y assetto-corsa\\302550\\AssettoServer.exe assetto-corsa\\302550\\acServer.exe",
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
},
{
"UpdateStageName":"Modded Server Overwrite",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArgs":"-c 'mv -f ./assetto-corsa/302550/AssettoServer ./assetto-corsa/302550/acServer && chmod +x ./assetto-corsa/302550/acServer'",
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
},
{
"UpdateStageName":"SteamCMD Component Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"SteamCMD",
"UpdateSourceData":"1007",
"UpdateSourceTarget":"302550",
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
},
{
"UpdateStageName":"Create Dotnet Directory",
"UpdateSourcePlatform":"All",
"UpdateSource":"CreateDirectory",
"UpdateSourceArgs":"{{$FullBaseDir}}dotnet",
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
},
{
"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,
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
},
{
"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}}",
"UpdateSourceTarget":"{{$FullBaseDir}}dotnet",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true,
"UpdateSourceConditionSetting":"ServerVersion",
"UpdateSourceConditionValue":"modded"
}
]