[
    {
        "UpdateStageName": "Create Save",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"cd factorio/server && [ -e \\\"saves/{{SaveFile}}\\\" ] || { ./bin/x64/factorio --create saves/{{SaveFile}} --map-gen-settings data/map-gen-settings.json --map-settings data/map-settings.json && wait; }\"",
        "UpdateSourceConditionSetting": "StartMode",
        "UpdateSourceConditionValue": "--start-server saves/{{SaveFile}}",
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "Create Save",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "cmd.exe",
        "UpdateSourceArgs": "/C cd factorio\\server & if not exist \"saves\\{{SaveFile}}\" ( .\\bin\\x64\\factorio.exe --create saves\\{{SaveFile}} --map-gen-settings data\\map-gen-settings.json --map-settings data\\map-settings.json )",
        "UpdateSourceConditionSetting": "StartMode",
        "UpdateSourceConditionValue": "--start-server saves/{{SaveFile}}",
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "Create Save",
        "UpdateSourcePlatform": "Linux",
        "UpdateSource": "Executable",
        "UpdateSourceData": "/bin/bash",
        "UpdateSourceArgs": "-c \"cd factorio/server && ./bin/x64/factorio --create saves/{{SaveFile}} --map-gen-settings data/map-gen-settings.json --map-settings data/map-settings.json && wait\"",
        "UpdateSourceConditionSetting": "StartMode",
        "UpdateSourceConditionValue": "--start-server saves/{{SaveFile}} ",
        "SkipOnFailure": false
    },
    {
        "UpdateStageName": "Create Save",
        "UpdateSourcePlatform": "Windows",
        "UpdateSource": "Executable",
        "UpdateSourceData": "cmd.exe",
        "UpdateSourceArgs": "/C cd factorio\\server & .\\bin\\x64\\factorio.exe --create saves\\{{SaveFile}} --map-gen-settings data\\map-gen-settings.json --map-settings data\\map-settings.json",
        "UpdateSourceConditionSetting": "StartMode",
        "UpdateSourceConditionValue": "--start-server saves/{{SaveFile}} ",
        "SkipOnFailure": false
    }
]