AMPTemplates/tshockupdates.json
2023-06-21 15:50:30 +10:00

120 lines
5.0 KiB
JSON

[
{
"UpdateStageName":"TShock Server Download",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"FetchURLFromJQ",
"UpdateSourceData":"https://api.github.com/repos/Pryaxis/TShock/releases/latest",
"UpdateSourceArgs":"$.assets[3].browser_download_url",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true
},
{
"UpdateStageName":"TShock Server Download",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"FetchURLFromJQ",
"UpdateSourceData":"https://api.github.com/repos/Pryaxis/TShock/releases/latest",
"UpdateSourceArgs":"$.assets[1].browser_download_url",
"UpdateSourceArch":"x86_64",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true
},
{
"UpdateStageName":"TShock Server Download",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"FetchURLFromJQ",
"UpdateSourceData":"https://api.github.com/repos/Pryaxis/TShock/releases/latest",
"UpdateSourceArgs":"$.assets[0].browser_download_url",
"UpdateSourceArch":"aarch64",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true
},
{
"UpdateStageName":"TShock Server Unpack",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArch":"x86_64",
"UpdateSourceArgs":"-c 'cd {{$FullBaseDir}} && tar -xf TShock-Beta-linux-x64-Release.tar && rm -f TShock-Beta-linux-x64-Release.tar && chmod +x TShock.Server'"
},
{
"UpdateStageName":"TShock Server Unpack",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArch":"aarch64",
"UpdateSourceArgs":"-c 'cd {{$FullBaseDir}} && tar -xf TShock-Beta-linux-arm64-Release.tar && rm -f TShock-Beta-linux-arm64-Release.tar && chmod +x TShock.Server'"
},
{
"UpdateStageName":"Create TShock Directory",
"UpdateSourcePlatform":"All",
"UpdateSource":"CreateDirectory",
"UpdateSourceArgs":"{{$FullBaseDir}}tshock"
},
{
"UpdateStageName":"Server Config File Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://github.com/CubeCoders/AMPTemplates/raw/main/tshockserverconfig.json",
"UpdateSourceArgs":"config.json",
"UpdateSourceTarget":"{{$FullBaseDir}}tshock",
"OverwriteExistingFiles":false
},
{
"UpdateStageName":"Create Dotnet Directory",
"UpdateSourcePlatform":"All",
"UpdateSource":"CreateDirectory",
"UpdateSourceArgs":"{{$FullBaseDir}}dotnet"
},
{
"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",
"UpdateSourceArch":"x86_64",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"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-arm64.tar.gz",
"UpdateSourceArch":"aarch64",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UpdateSourceTarget":"{{$FullBaseDir}}dotnet",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true
},
{
"UpdateStageName":"Backup Exclusions Download 1",
"UpdateSourcePlatform":"All",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://github.com/CubeCoders/AMPTemplates/raw/main/exclusions/.backupExclusionsTShock",
"UpdateSourceArgs":".backupExclude",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UpdateSourceConditionSetting":"backupExclude",
"UpdateSourceConditionValue":"true",
"OverwriteExistingFiles":false
}
]