-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathwebview2.json
More file actions
70 lines (70 loc) · 4.53 KB
/
Copy pathwebview2.json
File metadata and controls
70 lines (70 loc) · 4.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"version": "148.0.3967.96",
"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/0a9444b1-ee9e-429e-901c-03a71093350b/Microsoft.WebView2.FixedVersionRuntime.148.0.3967.96.x86.cab#/dl.7z",
"hash": "e2ae0d773fb01f6ca25467e7aded09e67690eee6df2c65c4ba6c7b1c66b2f015",
"extract_dir": "Microsoft.WebView2.FixedVersionRuntime.148.0.3967.96.x86"
},
"64bit": {
"url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/12306b32-d97b-470c-ab29-7c2f0a4f46c1/Microsoft.WebView2.FixedVersionRuntime.148.0.3967.96.x64.cab#/dl.7z",
"hash": "9ec745bf39b08633890017cf90a36c129fdf377c5422ed98fe3783311df795b9",
"extract_dir": "Microsoft.WebView2.FixedVersionRuntime.148.0.3967.96.x64"
},
"arm64": {
"url": "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/c2dfca52-7dce-4edc-933f-435cd9029ca3/Microsoft.WebView2.FixedVersionRuntime.148.0.3967.96.arm64.cab#/dl.7z",
"hash": "2adbffa1496f15be410eef9b986d8c92eaddc287e21eb91f4979f15ae134d00e",
"extract_dir": "Microsoft.WebView2.FixedVersionRuntime.148.0.3967.96.arm64"
}
},
"env_set": {
"WEBVIEW2_BROWSER_EXECUTABLE_FOLDER": "$dir"
},
"installer": {
"script": [
"$path = \"$dir\\$([System.IO.Path]::GetFileNameWithoutExtension($fname))\"",
"reg.exe add \"HKCU\\SOFTWARE\\Microsoft\\EdgeUpdate\\ClientState\\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}\" /v \"EBWebView\" /t \"REG_SZ\" /d \"$dir\" /f | Out-Null"
]
},
"uninstaller": {
"script": "reg.exe delete \"HKCU\\SOFTWARE\\Microsoft\\EdgeUpdate\\ClientState\\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}\" /f | Out-Null"
},
"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"
}
}
}
}