[
    {
        "UpdateStageName": "Garry's Mod Server Download",
        "UpdateSourcePlatform": "All",
        "UpdateSource": "SteamCMD",
        "UpdateSourceData": "4020",
        "UpdateSourceArgs": "4000",
        "UpdateSourceVersion": "{{ServerBranch}}",
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "Server.cfg Template File Download",
        "UpdateSourcePlatform": "All",
        "UpdateSource": "FetchURL",
        "UpdateSourceData": "https://raw.githubusercontent.com/CubeCoders/AMPTemplates/main/garrys-modserver1-1.cfg",
        "UpdateSourceArgs": "AMP_server.cfg",
        "UpdateSourceTarget": "{{$FullRootDir}}",
        "OverwriteExistingFiles": true,
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "CSS Content Download",
        "UpdateSourcePlatform": "All",
        "UpdateSource": "SteamCMD",
        "UpdateSourceData": "232330",
        "UpdateSourceArgs": "4000",
        "UpdateSourceConditionSetting": "CSSContent",
        "UpdateSourceConditionValue": "install",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Mount CSS Content",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"sed -i \\\"/^.*\\\\\\\"cstrike\\\\\\\".*$/ { s//\\t\\\\\\\"cstrike\\\\\\\"\\t\\\\\\\"..\\/232330\\/cstrike\\\\\\\"/ }\\\" garrysmod/4020/garrysmod/cfg/mount.cfg\"",
        "UpdateSourceConditionSetting": "CSSContent",
        "UpdateSourceConditionValue": "install",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Mount CSS Content",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "powershell.exe",
        "UpdateSourceArgs": "-NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -Command \"(Get-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg') -replace '^.*\\\"cstrike\\\".+$', '    \\\"cstrike\\\"   \\\"..\\232330\\cstrike\\\"' | Set-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg'\"",
        "UpdateSourceConditionSetting": "CSSContent",
        "UpdateSourceConditionValue": "install",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "TF2 Content Download",
        "UpdateSourcePlatform": "All",
        "UpdateSource": "SteamCMD",
        "UpdateSourceData": "232250",
        "UpdateSourceArgs": "4000",
        "UpdateSourceConditionSetting": "TF2Content",
        "UpdateSourceConditionValue": "install",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Mount TF2 Content",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"sed -i \\\"/^.*\\\\\\\"tf\\\\\\\".*$/ { s//\\t\\\\\\\"tf\\\\\\\"\\t\\t\\\\\\\"..\\/232250\\/tf\\\\\\\"/ }\\\" garrysmod/4020/garrysmod/cfg/mount.cfg\"",
        "UpdateSourceConditionSetting": "TF2Content",
        "UpdateSourceConditionValue": "install",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Mount TF2 Content",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "powershell.exe",
        "UpdateSourceArgs": "-NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -Command \"(Get-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg') -replace '^.*\\\"tf\\\".+$', '    \\\"tf\\\"        \\\"..\\232250\\tf\\\"' | Set-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg'\"",
        "UpdateSourceConditionSetting": "TF2Content",
        "UpdateSourceConditionValue": "install",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Unmount CSS Content",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"sed -i \\\"/^.*\\\\\\\"cstrike\\\\\\\"/ { s//\\/\\/\\t\\\\\\\"cstrike\\\\\\\"/ }\\\" garrysmod/4020/garrysmod/cfg/mount.cfg\"",
        "UpdateSourceConditionSetting": "CSSContent",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Unmount CSS Content",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "powershell.exe",
        "UpdateSourceArgs": "-NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -Command \"(Get-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg') -replace '^.*\\\"cstrike\\\"', '//  \\\"cstrike\\\"' | Set-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg'\"",
        "UpdateSourceConditionSetting": "CSSContent",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "CSS Content Removal",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"cd garrysmod && rm -rf 232330 >/dev/null 2>&1\"",
        "UpdateSourceConditionSetting": "CSSContent",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "CSS Content Removal",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "cmd.exe",
        "UpdateSourceArgs": "/C cd garrysmod && rd /S /Q 232330 > NUL 2>&1",
        "UpdateSourceConditionSetting": "CSSContent",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Unmount TF2 Content",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"sed -i \\\"/^.*\\\\\\\"tf\\\\\\\"/ { s//\\/\\/\\t\\\\\\\"tf\\\\\\\"/ }\\\" garrysmod/4020/garrysmod/cfg/mount.cfg\"",
        "UpdateSourceConditionSetting": "TF2Content",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "Unmount TF2 Content",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "powershell.exe",
        "UpdateSourceArgs": "-NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -Command \"(Get-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg') -replace '^.*\\\"tf\\\"', '//  \\\"tf\\\"' | Set-Content 'garrysmod\\4020\\garrysmod\\cfg\\mount.cfg'\"",
        "UpdateSourceConditionSetting": "TF2Content",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "TF2 Content Removal",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"cd garrysmod && rm -rf 232250 >/dev/null 2>&1\"",
        "UpdateSourceConditionSetting": "TF2Content",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "TF2 Content Removal",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "cmd.exe",
        "UpdateSourceArgs": "/C cd garrysmod && rd /S /Q 232250 > NUL 2>&1",
        "UpdateSourceConditionSetting": "TF2Content",
        "UpdateSourceConditionValue": "remove",
        "SkipOnFailure": true
    }
]