{
    "version": "150.0.1",
    "description": "EME-free version of the Firefox browser, with DRM-support disabled by default.",
    "homepage": "https://www.firefox.com/",
    "license": "MPL-2.0",
    "notes": [
        "To set profile 'Scoop' as *DEFAULT*, or profiles/settings was lost after update:",
        "  - Run 'Firefox Profile Manager', choose 'Scoop' then click 'Start Firefox'.",
        "  - Visit 'about:profiles' page in Firefox 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/150.0.1/win64-EME-free/en-US/Firefox%20Setup%20150.0.1.exe#/dl.7z",
            "hash": "sha512:49d0a61b30f60d748790efa15a06d616c2ef4c96a2b428098e33b17ee25558d5e6594ef23f8664e625ae2e582d7b95d2b84d8d99d0cf0fb68d900a672ab2f348"
        },
        "32bit": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/150.0.1/win32-EME-free/en-US/Firefox%20Setup%20150.0.1.exe#/dl.7z",
            "hash": "sha512:cdd5f0d3f8e00ade9b2cc2cbeb52a5781082c9d9884d8c4065045b08c71ce1b6408db3ceee3ba4915a8981917dc7bd1a1fc54fe1b1e817cd1e871c90b70fda6b"
        }
    },
    "extract_dir": "core",
    "post_install": [
        "firefox -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": "firefox.exe",
    "shortcuts": [
        [
            "firefox.exe",
            "Firefox"
        ],
        [
            "firefox.exe",
            "Firefox Profile Manager",
            "-P"
        ]
    ],
    "persist": [
        "distribution",
        "profile"
    ],
    "checkver": {
        "url": "https://product-details.mozilla.org/1.0/firefox_versions.json",
        "jsonpath": "$.LATEST_FIREFOX_VERSION"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://archive.mozilla.org/pub/firefox/releases/$version/win64-EME-free/en-US/Firefox%20Setup%20$version.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$version/SHA512SUMS",
                    "regex": "$sha512\\s+win64-EME-free/en-US/$basename"
                }
            },
            "32bit": {
                "url": "https://archive.mozilla.org/pub/firefox/releases/$version/win32-EME-free/en-US/Firefox%20Setup%20$version.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$version/SHA512SUMS",
                    "regex": "$sha512\\s+win32-EME-free/en-US/$basename"
                }
            }
        }
    }
}
