{
    "version": "140.10.1esr",
    "description": "A free email application that’s easy to set up and customize (Extended Support Release)",
    "homepage": "https://www.thunderbird.net",
    "license": "MPL-2.0",
    "notes": [
        "To set profile 'Scoop-esr' as *DEFAULT*, or profiles/settings was lost after update:",
        "  - Run 'Thunderbird ESR Profile Manager', choose 'Scoop-esr' then click 'Start Thunderbird'.",
        "  - Visit 'about:profiles' page in Thunderbird ESR 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/140.10.1esr/win64/en-US/Thunderbird%20Setup%20140.10.1esr.exe#/dl.7z",
            "hash": "sha512:9a476ab6deff3e078925420f2393f0868b87ca7b4da0054b5e2cfa9d367d2e5da9b80b5a1059e4dc1dfd6cc6d5bd299cb3a3f5cfb901d84ab34b48c88deb21af"
        },
        "32bit": {
            "url": "https://archive.mozilla.org/pub/thunderbird/releases/140.10.1esr/win32/en-US/Thunderbird%20Setup%20140.10.1esr.exe#/dl.7z",
            "hash": "sha512:a218f1ad081d9991e3809e35592d6f9cfaf24d7707062d4ddaf57fabf06f22f13230bf142df15ec7d35cc793f53450f4b4e6afa95459a3792feaa42454e1a271"
        }
    },
    "extract_dir": "core",
    "post_install": [
        "thunderbird-esr -CreateProfile \"Scoop-esr $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",
            "thunderbird-esr"
        ]
    ],
    "shortcuts": [
        [
            "thunderbird.exe",
            "Thunderbird ESR"
        ],
        [
            "thunderbird.exe",
            "Thunderbird ESR Profile Manager",
            "-P"
        ]
    ],
    "persist": [
        "distribution",
        "profile"
    ],
    "checkver": {
        "url": "https://product-details.mozilla.org/1.0/thunderbird_versions.json",
        "jsonpath": "$.THUNDERBIRD_ESR"
    },
    "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"
                }
            }
        }
    }
}
