Webview 版本
WebView2(Windows)
Tauri 使用基于 Microsoft Edge 和 Chromium 的 WebView2。WebView2 可以自行更新,保证在所有 Windows 目标上都能获得相对较新的 Chromium 版本。
¥Tauri uses WebView2 which is based on Microsoft Edge and therefore Chromium. WebView2 can update itself, you are guaranteed a relatively recent chromium build on all Windows targets.
WebView2 在 Windows 7 及更新版本上受支持,并预装在 Windows 11 上。在 Windows 11 之前的版本中,Tauri 生成的安装程序会确保 WebView2 安装在系统上。
¥WebView2 is supported on Windows 7 and newer and comes preinstalled on Windows 11. On versions older than Windows 11 the installer generated by Tauri takes care of ensuring WebView2 is installed on the system.
WebKit(macOS、iOS 和 Linux)
¥WebKit (macOS, iOS, & Linux)
Tauri 在 macOS(通过 WKWebView)和 Linux(通过 webkit2gtk
)上使用 WebKit。
¥Tauri uses WebKit on macOS (through WKWebView) and Linux (through webkit2gtk
).
解释 WebKit 版本号
¥Interpreting WebKit Version Numbers
Webkit 版本号相当复杂,因此以下是一些有助于理解它们的信息。
¥Webkit version numbers are quite complicated, so below is some helpful information to understand them.
WebKit 版本号由 5 个段和一个数字前缀组成,表示 WebKit 是为哪个操作系统构建的:
¥WebKit version numbers are made up of 5 segments and a numeric prefix indicating which OS WebKit is built for:
$(SYSTEM_VERSION_PREFIX)$(MAJOR_VERSION).$(MINOR_VERSION).$(TINY_VERSION).$(MICRO_VERSION).$(NANO_VERSION)
数字前缀称为 SYSTEM_VERSION_PREFIX
,似乎只存在于 macOS 和 iOS 版本中(不存在于 Linux 中)。此外,如果最后两个段都是 0
,则可以省略它们(因此像 613.2.7.0.0
这样的版本将被称为 613.2.7
)。
¥The numeric prefix is called the SYSTEM_VERSION_PREFIX
and seems to be only present for macOS and iOS builds (not for Linux). Furthermore, if the last two segments are both 0
they can be omitted (so a version like 613.2.7.0.0
would be referred to as 613.2.7
).
例如,macOS Monterey (12.x) 上随 Safari 15.5 一起提供的 WebKit 版本的版本号为 17613.2.7.1.8
。你可以这样解释它:
¥As an example, the WebKit version shipped with Safari 15.5 on macOS Monterey (12.x) has the version number 17613.2.7.1.8
. You can interpret it like this:
-
SYSTEM_VERSION_PREFIX
:17 -
MAJOR_VERSION
:613 -
MINOR_VERSION
:2 -
TINY_VERSION
:7 -
MICRO_VERSION
:1 -
NANO_VERSION
:8
以下是 SYSTEM_VERSION_PREFIX
值映射到的内容:
¥Here is what the SYSTEM_VERSION_PREFIX
values map to:
macOS 版本 | SYSTEM_VERSION_PREFIX |
---|---|
sdk=iphone* | 8 |
14.0 | 19 |
13.0 | 18 |
12.0 | 17 |
11.0 | 16 |
10.15 | 15 |
10.14 | 14 |
10.13 | 13 |
10.12 | 12 |
10.11 | 11 |
macOS & iOS
在 macOS 上,Tauri 使用自版本 10.10(Yosemite)以来预装在 macOS 中的 webview。它被视为核心组件,因此会随着常规操作系统更新而更新。这意味着不受支持的 macOS 版本不会收到 WebKit 更新。
¥On macOS, Tauri uses the webview that comes preinstalled with macOS since version 10.10 (Yosemite). It is considered a core component and is therefore updated with the regular OS updates. This means unsupported macOS versions do not receive WebKit updates.
要在你的 macOS 版本上查找 WKWebView
使用的 WebKit 版本,你可以在终端中使用此命令:
¥To find the WebKit version used by WKWebView
on your version of macOS you can use this command in the terminal:
awk '/CFBundleVersion/{getline;gsub(/<[^>]*>/,"");print}' /System/Library/Frameworks/WebKit.framework/Resources/Info.plist
Safari 中的 WebKit 版本
¥WebKit Versions in Safari
下表将操作系统版本映射到相应的 WebKit Safari 版本,以便你可以使用 caniuse 等网站来确定是否支持特定的 Web 平台功能。
¥The table below maps an OS version to the corresponding WebKit Safari versions so that you can use sites like caniuse to figure out if a specific web platform feature is supported.
操作系统名称 | 操作系统版本 | WebKit 版本 | Safari 版本 | 注释 |
---|---|---|---|---|
Sonoma | 14.0(测试版) | 616.1.14.11.11 | 17.0 | 在 2023 M2 14 英寸 MacBook Pro 上验证 |
Ventura | 13.4.1 | 615.2.9.11.7 | 16.5.1 | 在 2023 M2 14 英寸 MacBook Pro 上验证 |
13.3.1 | 615.1.26.11.23 | 在 2023 M2 14 英寸 MacBook Pro 上验证 | ||
13.3 | 615.1.26.11.22 | 16.4 | 在 2023 M2 14 英寸 MacBook Pro 上验证 | |
13.2.1 | 614.4.6.1.6 | |||
13.2 | ? | 16.3 | ||
13.1 | 614.3.7.1.5 | 16.2 | 在 2020 M1 13 英寸 MacBook Pro 上验证 | |
13.0.1 | 在 2020 M1 13 英寸 MacBook Pro 上验证 | |||
13.0 | 614.2.9.1.12 | 16.1 | 在 2020 M1 13 英寸 MacBook Pro 上验证 | |
Monterey | 12.6 | 在 2020 M1 13 英寸 MacBook Pro 上验证 | ||
12.5.1 | 613.3.9.1.16 | 15.6.1 | 在 2020 M1 13 英寸 MacBook Pro 上验证 | |
12.5 | [613.3.9.1.5] | 15.6 | 在 2020 M1 13 英寸 MacBook Pro 上验证 | |
12.4 | [613.2.7.1.8] | 15.5 | 在 2020 M1 13 英寸 MacBook Pro 上验证 | |
12.3.1 | [613.1.17.1.13] | |||
12.3 | [613.1.17.1.6] | 15.4 | ||
12.2.1 | [612.4.9.1.8] | |||
12.2 | [612.4.9.1.5] | 15.3 | ||
12.1.1 | ||||
12.1 | [612.3.6.1.6] | 15.2 | ||
12.0.1 | [612.2.9.1.20] | 15.1 | ||
12.0 | [612.1.29.41.4] | 15.0 | ||
Big Sur | 11.6.7 | |||
11.6.6 | ||||
11.6.5 | ||||
11.6.2 | ||||
11.6.1 | ||||
11.6 | ||||
11.5.2 | [611.3.10.1.6] | |||
11.5.1 | ||||
11.5 | [611.3.10.1.3] | 14.1.2 | ||
11.4 | [611.2.7.1.4] | 14.1.1 | ||
11.3.1 | ||||
11.3 | [611.1.21.161.3] | 14.1 | 24 英寸 M1 iMac 收到特殊 WebKit 版本 [611.1.21.1.12] | |
11.2.3 | [610.4.3.1.7] | |||
11.2.2 | ||||
11.2.1 | ||||
11.2 | [610.4.3.1.4] | 14.0.3 | ||
11.1 | [610.3.7.1.9] | 14.0.2 | ||
11.0.1 | [610.2.11.51.8] | |||
11.0 | [610.2.11.1.3] | 14.0.1 | Safari 14.0 仅在 iPhone 上可用 | |
Catalina | 10.15.7 安全更新 2022-004 | [609.4.1.1.1] | ||
10.15.7 | [609.4.1] | 13.1.3 | ||
10.15.6 | [609.3.5.1.3] | 13.1.2 | ||
10.15.5 | [609.2.9.1.2] | 13.1.1 | ||
10.15.4 | [609.1.20.111.8] | 13.1 | ||
10.15.3 | [608.5.11] | 13.0.5 | ||
10.15.2 | [608.4.9.1.3] | 13.0.4 | ||
10.15.1 | [608.3.10.1.4] | 13.0.3 | 在 2014 15 英寸 MacBook Pro 上验证 | |
10.15 | [608.2.30.1.1] | 13.0.2 | ||
Mojave | 10.14.6 | [608.1.49] | 13.0 | |
10.14.4 | [607.1.40.1.5] | 12.1 | ||
10.14.3 | [606.4.5] | 12.0.3 | ||
10.14.2 | [606.3.4] | 12.0.2 | ||
10.14.1 | [606.2.104.1.1] | 12.0.1 | ||
10.14 | [606.2.11] | 12.0 | ||
High Sierra | 10.13.6 | [605.3.8] | 11.1.2 | |
10.13.5 | [605.2.8] | 11.1.1 | ||
10.13.4 安全更新 2018-001 | [605.1.33.1.4] | 11.1 | ||
10.13.4 | [605.1.33.1.2] | 11.1 | ||
10.13.3 | [604.5.6] | 11.0.3 | ||
10.13.2 补充更新 | [604.4.7.1.6] | 11.0.2 | 27 英寸 iMac Pro 收到特殊 WebKit 版本 [604.4.7.10.6] | |
10.13.2 | [604.4.7.1.3] | 11.0.2 | 27 英寸 iMac Pro 收到特殊 WebKit 版本 [604.4.7.10.4] | |
10.13.1 | [604.3.5] | 11.0.1 | ||
10.13 | [604.1.38.1.6] | 11.0 |
Linux
Linux 生态系统的多样性意味着很难在各个发行版上编译有关 WebKitGTK 的准确信息。下表是一个非常不完整的列表,列出了最常用的发行版及其 WebKit 版本。你应该始终检查发行版的存储库以获取最新信息。
¥The diverse nature of the Linux ecosystem means it is very hard to compile accurate information about WebKitGTK on the various distros. The table below is a very incomplete list of the most commonly used distributions and their WebKit versions. You should always check your distro’s repositories for up-to-date information.
发行版 | webkitgtk 版本 | WebKit 版本 | Safari 等效版本 |
---|---|---|---|
Debian 11(带更新)、Ubuntu 20.04(带更新)、Ubuntu 22.04 | 2.36 | [614.1.6] | TP 140 (16.0) |
Debian 10(带更新) | 2.34 | [613.1.1] | 15.4 |
Debian 11、Ubuntu 18.04(带更新)、centos 8(非流) | 2.32 | [612.1.6] | 15.0 |
Ubuntu 20.04 | 2.28 | [610.1.1] | 14.0 |
Debian 9(带反向移植)、Debian 10 | 2.24 | [608.1.6] | 13.0 |
Ubuntu 18.04 | 2.20 | [606.1.4] | 12.0 |
Tauri 中文网 - 粤ICP备13048890号