[
    {
        "UpdateStageName": "tes3mp-server-default.cfg Backup",
        "UpdateSourcePlatform": "All",
        "UpdateSource": "CopyFilePath",
        "UpdateSourceData": "{{$FullBaseDir}}tes3mp-server-default.cfg.bak",
        "UpdateSourceArgs": "{{$FullBaseDir}}tes3mp-server-default.cfg",
        "OverwriteExistingFiles": true,
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "TES3MP Download",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "FetchURL",
        "UpdateSourceData": "https://github.com/TES3MP/TES3MP/releases/download/tes3mp-0.8.1/tes3mp.Win64.release.0.8.1.zip",
        "UpdateSourceTarget": "{{$FullBaseDir}}",
        "UnzipUpdateSource": true,
        "OverwriteExistingFiles": false,
        "DeleteAfterExtract": true,
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "TES3MP Download",
        "UpdateSourcePlatform": "Linux",
        "UpdateSourceArch": "x86_64",
        "UpdateSource": "FetchURL",
        "UpdateSourceData": "https://github.com/TES3MP/TES3MP/releases/download/tes3mp-0.8.1/tes3mp-server-GNU+Linux-x86_64-release-0.8.1-68954091c5-6da3fdea59.tar.gz",
        "UpdateSourceTarget": "{{$FullRootDir}}",
        "UnzipUpdateSource": true,
        "OverwriteExistingFiles": false,
        "DeleteAfterExtract": true,
        "SkipOnFailure": true
    },
    {
        "UpdateStageName": "User Data Directory Creation",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "cmd.exe",
        "UpdateSourceArgs": "/C mkdir \"%UserProfile%\\Documents\\My Games\\OpenMW\" > NUL 2>&1 & rd /S /Q \"{{$FullBaseDir}}OpenMW\" > NUL 2>&1 & mklink /J \"{{$FullBaseDir}}OpenMW\" \"%UserProfile%\\Documents\\My Games\\OpenMW\" > NUL 2>&1",
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "tes3mp-server-default.cfg Restore",
        "UpdateSourcePlatform": "All",
        "UpdateSource": "CopyFilePath",
        "UpdateSourceData": "{{$FullBaseDir}}tes3mp-server-default.cfg",
        "UpdateSourceArgs": "{{$FullBaseDir}}tes3mp-server-default.cfg.bak",
        "OverwriteExistingFiles": true,
        "SkipOnFailure": true
    }
]
