{
    "version": "150.0.1",
    "description": "Popular open source web browser.",
    "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/en-US/Firefox%20Setup%20150.0.1.exe#/dl.7z",
            "hash": "sha512:3cf708c2b7ff7b35235f437606c0c472d3ce1a8769d454b732f1b2c9e1eca2bbfd576c700a4228e0a9f74a30221e210c6b81a4538175216a103d6ba0f07162ed"
        },
        "32bit": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/150.0.1/win32/en-US/Firefox%20Setup%20150.0.1.exe#/dl.7z",
            "hash": "sha512:178185b84ed7b4f295a683620724fe578d25720d46c00c51bffb83c4219eda280e9549071603ec5b1fa2e126832e8aca29188f68ebe74bf0847faa3077249acf"
        },
        "arm64": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/150.0.1/win64-aarch64/en-US/Firefox%20Setup%20150.0.1.exe#/dl.7z",
            "hash": "sha512:591aa790296e69f9b52c5c414d4c083a8df3484394a02c4b7ce4c949b4e6a824d4b24a54d3438b15e69f69018ecbeee362e098cf286529e26cf1640bd7848cce"
        }
    },
    "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/en-US/Firefox%20Setup%20$version.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$version/SHA512SUMS",
                    "regex": "$sha512\\s+win64/en-US/$basename"
                }
            },
            "32bit": {
                "url": "https://archive.mozilla.org/pub/firefox/releases/$version/win32/en-US/Firefox%20Setup%20$version.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$version/SHA512SUMS",
                    "regex": "$sha512\\s+win32/en-US/$basename"
                }
            },
            "arm64": {
                "url": "https://archive.mozilla.org/pub/firefox/releases/$version/win64-aarch64/en-US/Firefox%20Setup%20$version.exe#/dl.7z",
                "hash": {
                    "url": "https://archive.mozilla.org/pub/firefox/releases/$version/SHA512SUMS",
                    "regex": "$sha512\\s+win64-aarch64/en-US/$basename"
                }
            }
        }
    }
}
