{
    "version": "122.0",
    "description": "Popular open source web browser.",
    "homepage": "https://www.mozilla.org/firefox/",
    "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/122.0/win64/en-US/Firefox%20Setup%20122.0.exe#/dl.7z",
            "hash": "sha512:8c13bf6a01211ee5d5794a3dfa9f3d418edc12b5150e6b779f47fe4deb2f522147a799f1e2ad07b607d8ff947dd558538aa8f1c97758dc3842fc7a6302ca79a7"
        },
        "32bit": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/122.0/win32/en-US/Firefox%20Setup%20122.0.exe#/dl.7z",
            "hash": "sha512:6aa18143082a5e41b5b2dd834bd5d6479c5819cdb128ed59925ef34098873bbd201176c46b1a0a7e0b276b318f76135e6ca059a1bc0aef67f295cc755f0fad2e"
        },
        "arm64": {
            "url": "https://archive.mozilla.org/pub/firefox/releases/122.0/win64-aarch64/en-US/Firefox%20Setup%20122.0.exe#/dl.7z",
            "hash": "sha512:c2a78e5eca380379e5a32f48b38187f7d3090185fe19c9f2ae2d0f8c023a0f71da011a53afc5c6555b09a090c89ae8e6a39028acca42468f7b20497e4144718c"
        }
    },
    "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"
                }
            }
        }
    }
}
