{
    "version": "140.10.1",
    "description": "Extended Support Release of Firefox: the popular open source web browser",
    "homepage": "https://www.firefox.com/browsers/enterprise/",
    "license": "MPL-2.0",
    "notes": [
        "To set profile 'Scoop-ESR' as *DEFAULT*, or profiles/settings was lost after update:",
        "  - Run 'Firefox ESR Profile Manager', choose 'Scoop-ESR' then click 'Start Firefox'.",
        "  - Visit 'about:profiles' page in Firefox ESR to check *DEFAULT* profile.",
        "For details: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles"
    ],
    "architecture": {
        "64bit": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/140.10.1esr/win64/en-US/Firefox%20Setup%20140.10.1esr.exe#/dl.7z",
            "hash": "sha512:bdb9636a579a9e475253a2e89f37aaca5339b3236dcd36752fcaf06518fcb0d9d688eaefbd405f25c55dbad510fadb33fbc8295cb466a5c0d70da4edbe0974ee"
        },
        "32bit": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/140.10.1esr/win32/en-US/Firefox%20Setup%20140.10.1esr.exe#/dl.7z",
            "hash": "sha512:083b9f7eb8589319076290fb2d88275f7a769e69713999ba2e23b295ba34519b75ade0f24c104a1fdc36d9921c7edccf596034c9c01328b538de7a6bd2b110bf"
        },
        "arm64": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/140.10.1esr/win64-aarch64/en-US/Firefox%20Setup%20140.10.1esr.exe#/dl.7z",
            "hash": "sha512:e893409ce5c0813ad3910c9d418b3c698341aed6e53539677fa25a991673094776cfcb5b509e92dc20604ebf9aeb8c109c981871bc0ef75caafa5cafc7378a3d"
        }
    },
    "extract_dir": "core",
    "post_install": [
        "firefox-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": [
        [
            "firefox.exe",
            "firefox-esr"
        ]
    ],
    "shortcuts": [
        [
            "firefox.exe",
            "Firefox ESR"
        ],
        [
            "firefox.exe",
            "Firefox ESR Profile Manager",
            "-P"
        ]
    ],
    "persist": [
        "distribution",
        "profile"
    ],
    "checkver": {
        "url": "https://product-details.mozilla.org/1.0/firefox_versions.json",
        "jsonpath": "$.FIREFOX_ESR",
        "regex": "([\\d.]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://archive.mozilla.org/pub/firefox/releases/$versionesr/win64/en-US/Firefox%20Setup%20$versionesr.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$versionesr/SHA512SUMS",
                    "regex": "$sha512\\s+win64/en-US/$basename"
                }
            },
            "32bit": {
                "url": "https://archive.mozilla.org/pub/firefox/releases/$versionesr/win32/en-US/Firefox%20Setup%20$versionesr.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$versionesr/SHA512SUMS",
                    "regex": "$sha512\\s+win32/en-US/$basename"
                }
            },
            "arm64": {
                "url": "https://archive.mozilla.org/pub/firefox/releases/$versionesr/win64-aarch64/en-US/Firefox%20Setup%20$versionesr.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$versionesr/SHA512SUMS",
                    "regex": "$sha512\\s+win64-aarch64/en-US/$basename"
                }
            }
        }
    }
}
