AMPTemplates/beammpupdates.json

51 lines
1.8 KiB
JSON
Raw Normal View History

[
{
"UpdateStageName":"Binary and Symlink Removal",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArgs":"-c 'rm {{$FullBaseDir}}BeamMP-Server*'"
},
{
"UpdateStageName":"BeamMP Download",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"GithubRelease",
"UpdateSourceData":"BeamMP-Server.exe",
"UpdateSourceArgs":"BeamMP/BeamMP-Server",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":false,
"OverwriteExistingFiles":true
},
{
"UpdateStageName":"BeamMP Download",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"GithubRelease",
"UpdateSourceData":"BeamMP-Server-{{ServerVersion}}",
"UpdateSourceArgs":"BeamMP/BeamMP-Server",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UnzipUpdateSource":false,
"OverwriteExistingFiles":true
},
{
"UpdateStageName":"Set Executable Flag",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"SetExecutableFlag",
"UpdateSourceArgs":"{{$FullBaseDir}}BeamMP-Server-{{ServerVersion}}"
},
{
"UpdateStageName":"Binary Symlink Creation",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArgs":"-c 'cd ./beammp/serverfiles/ && ln -s BeamMP-Server-{{ServerVersion}} BeamMP-Server'"
},
{
"UpdateStageName":"Config File Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://github.com/CubeCoders/AMPTemplates/raw/main/beammpServerConfig.toml",
"UpdateSourceTarget":"{{$FullBaseDir}}",
"UpdateSourceArgs":"ServerConfig.toml",
"OverwriteExistingFiles":false
}
]