[
    {
        "UpdateStageName": "Move Assets.zip",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"cd \\\"{{$FullRootDir}}\\\" && if [[ ! -f ./Assets.zip ]] && [[ -f ./Server/Assets.zip ]]; then mv -f ./Server/Assets.zip ./Assets.zip >/dev/null 2>&1; fi && if [[ -f ./Assets.zip ]] && [[ -f ./Server/Assets.zip ]]; then rm -f ./Server/Assets.zip >/dev/null 2>&1; fi\"",
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "Clean Old Trash",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"cd \\\"{{$FullRootDir}}\\\" && if [[ -d ./Server/.trash ]]; then rm -rf ./Server/.trash >/dev/null 2>&1; fi\"",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Move Assets.zip",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "powershell.exe",
        "UpdateSourceArgs": "-NoProfile -Command \"Set-Location -Path '{{$FullRootDir}}'; if (-not (Test-Path -LiteralPath './Assets.zip' -PathType Leaf) -and (Test-Path -LiteralPath './Server/Assets.zip' -PathType Leaf)) { Move-Item -LiteralPath './Server/Assets.zip' -Destination './Assets.zip' -Force -ErrorAction SilentlyContinue *> $null }; if ((Test-Path -LiteralPath './Assets.zip' -PathType Leaf) -and (Test-Path -LiteralPath './Server/Assets.zip' -PathType Leaf)) { Remove-Item -LiteralPath './Server/Assets.zip' -Force -ErrorAction SilentlyContinue *> $null }\"",
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "Clean Old Trash",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "powershell.exe",
        "UpdateSourceArgs": "-NoProfile -Command \"Set-Location -Path '{{$FullRootDir}}'; if (Test-Path -LiteralPath './Server/.trash' -PathType Container) { Remove-Item -LiteralPath './Server/.trash' -Recurse -Force -ErrorAction SilentlyContinue *> $null }\"",
        "SkipOnFailure": true
    }
]