{
    "version": "147.0.3912.98",
    "description": "Microsoft Edge WebView2 Runtime. Embed web content (HTML, CSS, and JavaScript) in your native applications with Microsoft Edge WebView2.",
    "homepage": "https://developer.microsoft.com/en-us/microsoft-edge/webview2",
    "license": {
        "identifier": "Proprietary",
        "url": "https://developer.microsoft.com/microsoft-edge/api/eula/webview2"
    },
    "notes": "Overrides any natively installed Runtime through environment variable 'WEBVIEW2_BROWSER_EXECUTABLE_FOLDER'. This is architecture-specific: Applications must match the runtime architecture, for example install the 32-bit build (--arch 32bit) to support 32-bit applications.",
    "architecture": {
        "32bit": {
            "url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/427c628d-51ca-4790-b84d-135d76195c16/Microsoft.WebView2.FixedVersionRuntime.147.0.3912.98.x86.cab#/dl.7z",
            "hash": "31339884ca3789ffe346f41d757b4fb9b1c63b1d508892e9a7fc2de7d9591b88",
            "extract_dir": "Microsoft.WebView2.FixedVersionRuntime.147.0.3912.98.x86"
        },
        "64bit": {
            "url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/01f18384-38a3-449b-ac04-2aa1777b26fe/Microsoft.WebView2.FixedVersionRuntime.147.0.3912.98.x64.cab#/dl.7z",
            "hash": "41ea9382e589a34287577e40ebbf45b4096acd0a749ad8ecb9f42fce88fd193a",
            "extract_dir": "Microsoft.WebView2.FixedVersionRuntime.147.0.3912.98.x64"
        },
        "arm64": {
            "url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/78b57cf7-4e1c-4d24-8106-4acd9ef7fa59/Microsoft.WebView2.FixedVersionRuntime.147.0.3912.98.arm64.cab#/dl.7z",
            "hash": "6e27f5b8e0d4d1fbd5a66b0bbfeea270c40cccc69467a3418e0d64a3c91b4a80",
            "extract_dir": "Microsoft.WebView2.FixedVersionRuntime.147.0.3912.98.arm64"
        }
    },
    "env_set": {
        "WEBVIEW2_BROWSER_EXECUTABLE_FOLDER": "$dir"
    },
    "checkver": {
        "url": "https://developer.microsoft.com/en-us/Microsoft-edge/webview2/",
        "script": [
            "$page = $page -replace '\\\\u002F', '/'",
            "$page -match 'https://msedge\\.sf\\.dl\\.delivery\\.mp\\.microsoft\\.com/filestreamingservice/files/(?<folder>[0-9a-z-]+)/Microsoft\\.WebView2\\.FixedVersionRuntime\\.([0-9.]+)\\.x86\\.cab'",
            "$arch32 = $Matches.folder",
            "$page -match 'https://msedge\\.sf\\.dl\\.delivery\\.mp\\.microsoft\\.com/filestreamingservice/files/(?<folder>[0-9a-z-]+)/Microsoft\\.WebView2\\.FixedVersionRuntime\\.(?<version>[0-9.]+)\\.x64\\.cab'",
            "$version = $Matches.version",
            "$arch64 = $Matches.folder",
            "$page -match 'https://msedge\\.sf\\.dl\\.delivery\\.mp\\.microsoft\\.com/filestreamingservice/files/(?<folder>[0-9a-z-]+)/Microsoft\\.WebView2\\.FixedVersionRuntime\\.([0-9.]+)\\.arm64\\.cab'",
            "$archarm64 = $Matches.folder",
            "Write-Output \"$version $arch32 $arch64 $archarm64\""
        ],
        "regex": "(?<version>[\\d.]+) (?<arch32>[^ ]+) (?<arch64>[^ ]+) (?<archarm64>[^ ]+)"
    },
    "autoupdate": {
        "architecture": {
            "32bit": {
                "url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/$matchArch32/Microsoft.WebView2.FixedVersionRuntime.$version.x86.cab#/dl.7z",
                "extract_dir": "Microsoft.WebView2.FixedVersionRuntime.$version.x86"
            },
            "64bit": {
                "url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/$matchArch64/Microsoft.WebView2.FixedVersionRuntime.$version.x64.cab#/dl.7z",
                "extract_dir": "Microsoft.WebView2.FixedVersionRuntime.$version.x64"
            },
            "arm64": {
                "url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/$matchArcharm64/Microsoft.WebView2.FixedVersionRuntime.$version.arm64.cab#/dl.7z",
                "extract_dir": "Microsoft.WebView2.FixedVersionRuntime.$version.arm64"
            }
        }
    }
}
