Conversation
- 后端从 winforms 切到 edgechromium 后旧缓存格式不兼容, 新增 _migrate_webview_storage() 在启动前检测并备份旧缓存目录, 避免新后端读取不兼容数据导致异常 - FAQ 文档补充 Win10 LTSC 用户需手动安装 WebView2 Runtime 的说明
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#423 合并后 @shadow01a 提到的两个点,这里补上:
1. 缓存迁移逻辑
后端从 winforms 切到 edgechromium 后,
webview_storage_path目录下的缓存格式不兼容。加了一个_migrate_webview_storage(),在 webview 启动前检测:EBWebView/(edgechromium 特征)→ 已经是新格式,跳过EBWebView/→ 旧后端遗留,重命名为webview_storage_path_legacy备份,让新后端从干净状态启动这样老用户升级后不会因为旧缓存导致新后端异常,同时旧数据也没丢(备份在旁边)。
2. LTSC 文档
在
docs/faq/ui/index.md加了一段,说明 Win10 LTSC 用户需要手动装 WebView2 Runtime,附了下载链接。