Tauri WebView2安裝選項

2023-10-17 17:15 更新

默認情況下,安裝程序會下載WebView2引導(dǎo)程序并在運行時未安裝的情況下執(zhí)行它?;蛘撸梢郧度胍龑?dǎo)程序、嵌入離線安裝程序,或使用固定的WebView2運行時版本。請參考下表,了解這些方法之間的比較:

安裝方式 是否需要聯(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運行時是作為操作系統(tǒng)的一部分分發(fā)的。


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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號