{
    "version": "5.32.0.5813",
    "description": "Client for Amazon workspaces service",
    "homepage": "https://clients.amazonworkspaces.com",
    "license": {
        "identifier": "Proprietary",
        "url": "https://clients.amazonworkspaces.com/app-terms.html"
    },
    "architecture": {
        "64bit": {
            "url": "https://d2td7dqidlhjx7.cloudfront.net/prod/global/windows/Amazon+WorkSpaces.msi",
            "hash": "bc97bedf13d31b0bad8a6f417e7a4fee6dbd77f526b3e3648dd6674f7263723a"
        }
    },
    "extract_dir": "[ApplicationFolderName]",
    "pre_install": [
        "# Disable the autoupdate of amazon-workspaces client",
        "$configFile = \"$dir\\workspaces.dll.config\"",
        "if (Test-Path -LiteralPath $configFile) {",
        "   [xml]$xml = Get-Content -LiteralPath $configFile",
        "   $key = $xml.SelectSingleNode(\"(//configuration/appSettings/add[@key='UpdateUrl'])[1]\")",
        "   $key.Value = ''",
        "   $xml.Save($configFile)",
        "}"
    ],
    "shortcuts": [
        [
            "workspaces.exe",
            "Amazon Workspaces"
        ]
    ],
    "checkver": {
        "url": "https://s3.amazonaws.com/workspaces-client-updates/prod/global/windows/WorkSpacesAppCastx64.xml",
        "regex": "title>Version ([\\d.]+)</"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://d2td7dqidlhjx7.cloudfront.net/prod/global/windows/Amazon+WorkSpaces.msi"
            }
        }
    }
}
