AMPTemplates/openra-red-alertupdates.json
2023-10-11 17:56:36 +11:00

55 lines
2.1 KiB
JSON

[
{
"UpdateStageName":"Server Directory Creation",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"CreateDirectory",
"UpdateSourceArgs":"{{$FullBaseDir}}server"
},
{
"UpdateStageName":"AppImage Directory Creation",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"CreateDirectory",
"UpdateSourceArgs":"{{$FullBaseDir}}appimage"
},
{
"UpdateStageName":"Support Directory Creation",
"UpdateSourcePlatform":"All",
"UpdateSource":"CreateDirectory",
"UpdateSourceArgs":"{{$FullBaseDir}}Support"
},
{
"UpdateStageName":"OpenRA Download",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"FetchURLFromJQ",
"UpdateSourceData":"https://api.github.com/repos/OpenRA/OpenRA/releases/latest",
"UpdateSourceArgs":"$.assets.[5].browser_download_url",
"UpdateSourceTarget":"{{$FullBaseDir}}server",
"UnzipUpdateSource":true,
"OverwriteExistingFiles":true,
"DeleteAfterExtract":true
},
{
"UpdateStageName":"OpenRA Red Alert Download",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"GithubRelease",
"UpdateSourceArgs":"OpenRA/OpenRA",
"UpdateSourceData":"OpenRA-Red-Alert-x86_64.AppImage",
"UpdateSourceTarget":"{{$FullBaseDir}}appimage",
"OverwriteExistingFiles":true
},
{
"UpdateStageName":"OpenRA Red Alert Extract",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArgs":"-c 'cd ./openra/appimage && chmod +x OpenRA-Red-Alert-x86_64.AppImage && ./OpenRA-Red-Alert-x86_64.AppImage --appimage-extract && rm -f OpenRA-Red-Alert-x86_64.AppImage'"
},
{
"UpdateStageName":"AppImage Directory Symlink Creation",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArgs":"-c 'cd ./openra && rm -f server ; ln -s appimage/squashfs-root/usr/lib/openra server'"
}
]