{
    "version": "1.89.145",
    "description": "Secure, Fast & Private Web Browser with Adblocker",
    "homepage": "https://brave.com",
    "license": {
        "identifier": "Freeware,BSD-3-Clause,GPL-3.0-only,...",
        "url": "https://github.com/brave/brave-browser/blob/master/LICENSE"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/brave/brave-browser/releases/download/v1.89.145/brave-v1.89.145-win32-x64.zip",
            "hash": "6dc5cad4ea4d2d9a08755e6a4777c1b9140c800626edd0421cdf95c9dc71673e"
        },
        "32bit": {
            "url": "https://github.com/brave/brave-browser/releases/download/v1.89.145/brave-v1.89.145-win32-ia32.zip",
            "hash": "8b64f4fe9f74b092d7f193df40bc6c90118d8df61f9ff3270d3f16026e3572ca"
        },
        "arm64": {
            "url": "https://github.com/brave/brave-browser/releases/download/v1.89.145/brave-v1.89.145-win32-arm64.zip",
            "hash": "c17cbdd42e98f43eada69017311cc94c0a7db024dda689052cd9a728a9d9ad53"
        }
    },
    "bin": [
        [
            "brave.exe",
            "brave",
            "--user-data-dir=\"$dir\\User Data\""
        ]
    ],
    "shortcuts": [
        [
            "brave.exe",
            "Brave",
            "--user-data-dir=\"$dir\\User Data\""
        ]
    ],
    "post_install": [
        "if (!(Test-Path \"$dir\\User Data\\*\") -and (Test-Path \"$persist_dir\\data\")) {",
        "    info '[Portable Mode]: Copying user data from portapps data directory . . .'",
        "    Copy-Item \"$persist_dir\\data\\*\" \"$dir\\User Data\" -Recurse",
        "}",
        "if (!(Test-Path \"$dir\\User Data\\*\") -and (Test-Path \"$env:LocalAppData\\BraveSoftware\\Brave-Browser\\User Data\")) {",
        "    info '[Portable Mode]: Copying user data from local application data directory . . .'",
        "    Copy-Item \"$env:LocalAppData\\BraveSoftware\\Brave-Browser\\User Data\\*\" \"$dir\\User Data\" -Recurse",
        "}"
    ],
    "persist": "User Data",
    "checkver": {
        "url": "https://brave-browser-downloads.s3.brave.com/latest/release-windows-x64.version",
        "regex": "([\\d.]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/brave/brave-browser/releases/download/v$version/brave-v$version-win32-x64.zip"
            },
            "32bit": {
                "url": "https://github.com/brave/brave-browser/releases/download/v$version/brave-v$version-win32-ia32.zip"
            },
            "arm64": {
                "url": "https://github.com/brave/brave-browser/releases/download/v$version/brave-v$version-win32-arm64.zip"
            }
        },
        "hash": {
            "url": "$url.sha256"
        }
    }
}
