{
    "version": "140.10.1esr-bb22",
    "description": "A fine-tuned version of Mozilla Thunderbird with new features, bug fixes and telemetry turned off",
    "homepage": "https://www.betterbird.eu",
    "license": "MPL-2.0",
    "architecture": {
        "64bit": {
            "url": "https://www.betterbird.eu/downloads/WindowsPortable/BetterbirdPortable-140.10.1esr-bb22.en-US.win64.zip",
            "hash": "4140133c8c389a8cdba86c5f7bcbc0b560fed2c26834da8cbc4a5a65ed2859cc"
        }
    },
    "bin": [
        [
            "BetterbirdLauncher.exe",
            "Betterbird"
        ]
    ],
    "shortcuts": [
        [
            "BetterbirdLauncher.exe",
            "Betterbird"
        ]
    ],
    "persist": "profile",
    "checkver": {
        "script": [
            "$url = 'https://www.betterbird.eu/downloads/get.php?os=win&lang=en-US&version=release&portable=true'",
            "$location = (Invoke-WebRequest -Uri $url -MaximumRedirection 0 -SkipHttpErrorCheck -ErrorAction SilentlyContinue).Headers.Location",
            "Write-Output $location"
        ],
        "regex": "BetterbirdPortable-([\\d.]+.+).en-US.win64.zip"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://www.betterbird.eu/downloads/WindowsPortable/BetterbirdPortable-$version.en-US.win64.zip",
                "hash": {
                    "url": "https://www.betterbird.eu/downloads/sha256-$majorVersion.txt",
                    "regex": "^$sha256\\s+\\*$basename$"
                }
            }
        }
    }
}
