{
    "version": "150.0.1",
    "description": "A free email application that’s easy to set up and customize.",
    "homepage": "https://www.thunderbird.net",
    "license": "MPL-2.0",
    "notes": [
        "To set profile 'Scoop' as *DEFAULT*, or profiles/settings was lost after update:",
        "  - Run 'Thunderbird Profile Manager', choose 'Scoop' then click 'Start Thunderbird'.",
        "  - Visit 'about:profiles' page in Thunderbird to check *DEFAULT* profile.",
        "For details: https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-thunderbird-profiles"
    ],
    "architecture": {
        "64bit": {
            "url": "https://archive.mozilla.org/pub/thunderbird/releases/150.0.1/win64/en-US/Thunderbird%20Setup%20150.0.1.exe#/dl.7z",
            "hash": "sha512:7380adf7ec71fe359793fd358424b02cb4f8c086a08470e355664474a83cad73d54e7a05d60bd987148c0bcf83cb4d71a25896295d0fb7554d7a263217897485"
        },
        "32bit": {
            "url": "https://archive.mozilla.org/pub/thunderbird/releases/150.0.1/win32/en-US/Thunderbird%20Setup%20150.0.1.exe#/dl.7z",
            "hash": "sha512:6a3385bab3d0de3e3f1b803ea320ad8a00cad399ab660c65c75c71a755bf2ee12d6844d910cae3711413056c60a2b63478da50636c80032b872aaba38988bf56"
        }
    },
    "extract_dir": "core",
    "post_install": [
        "thunderbird -CreateProfile \"Scoop $persist_dir\\profile\"",
        "$Addition = \"$persist_dir\\addition\"",
        "if (Test-Path $Addition) {",
        "  info 'Copying additional items...'",
        "  Copy-Item -Path $Addition\\* -Destination $dir -Force -Recurse -ErrorAction SilentlyContinue",
        "}"
    ],
    "bin": "thunderbird.exe",
    "shortcuts": [
        [
            "thunderbird.exe",
            "Thunderbird"
        ],
        [
            "thunderbird.exe",
            "Thunderbird Profile Manager",
            "-P"
        ]
    ],
    "persist": [
        "distribution",
        "profile"
    ],
    "checkver": {
        "url": "https://product-details.mozilla.org/1.0/thunderbird_versions.json",
        "jsonpath": "$.LATEST_THUNDERBIRD_VERSION"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://archive.mozilla.org/pub/thunderbird/releases/$version/win64/en-US/Thunderbird%20Setup%20$version.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/thunderbird/releases/$version/SHA512SUMS",
                    "regex": "$sha512\\s+win64/en-US/$basename"
                }
            },
            "32bit": {
                "url": "https://archive.mozilla.org/pub/thunderbird/releases/$version/win32/en-US/Thunderbird%20Setup%20$version.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/thunderbird/releases/$version/SHA512SUMS",
                    "regex": "$sha512\\s+win32/en-US/$basename"
                }
            }
        }
    }
}
