Tauri WebView2安裝選項(xiàng)

2023-10-17 17:15 更新

默認(rèn)情況下,安裝程序會(huì)下載WebView2引導(dǎo)程序并在運(yùn)行時(shí)未安裝的情況下執(zhí)行它。或者,您可以嵌入引導(dǎo)程序、嵌入離線安裝程序,或使用固定的WebView2運(yùn)行時(shí)版本。請(qǐng)參考下表,了解這些方法之間的比較:

安裝方式 是否需要聯(lián)網(wǎng) 附加安裝包大小 備注
downloadBootstrapper 0MB Default
Results in a smaller installer size, but is not recommended for Windows 7 deployment via .msi files.
embedBootstrapper ~1.8MB Better support on Windows 7 for .msi installers.
offlineInstaller ~127MB Embeds WebView2 installer. Recommended for offline environments.
fixedVersion ~180MB Embeds a fixed WebView2 version.
skip 0MB ?? Not recommended
Does not install the WebView2 as part of the Windows Installer.
信息
在Windows 10(2018年4月發(fā)布或之后的版本)和Windows 11上,WebView2運(yùn)行時(shí)是作為操作系統(tǒng)的一部分分發(fā)的。


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)