fix(windows): embed the WebView2 bootstrapper in the installer#69
Open
msitarzewski wants to merge 1 commit into
Open
fix(windows): embed the WebView2 bootstrapper in the installer#69msitarzewski wants to merge 1 commit into
msitarzewski wants to merge 1 commit into
Conversation
Default install mode is downloadBootstrapper — the installer fetches even the bootstrapper over the network, so a blocked/offline install can leave a machine with the app but no WebView2 runtime, and the app then launches with no window and no error (the shape of #65). embedBootstrapper ships the bootstrapper inside the installer (~1.5MB), removing that failure mode. Windows 11 already bundles WebView2, so this mainly hardens Win10/LTSC/offline installs — belt-and-braces, not a confirmed fix for #65. Refs #65. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WdX6PvnCfRgYD11yVpXVor
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.
Summary
bundle.windowswas absent, so Tauri defaulted the WebView2 install todownloadBootstrapper— the installer downloads even the bootstrapper over the network. If that download is blocked (offline/proxy/firewall) and the machine lacks WebView2, the app installs but has no runtime → launches with no window and no error — the shape of #65.embedBootstrapperships the bootstrapper inside the installer (~1.5 MB), removing that failure mode.Honesty on scope
Windows 11 already bundles the WebView2 runtime, so this is unlikely to be the actual cause of #65 (those reporters have WebView2). It mainly hardens Win10 / LTSC / stripped / offline installs. Belt-and-braces while we chase the real #65 cause (looks x64/GPU-specific — I couldn't reproduce it on a Windows 11 ARM64 VM, where v0.3.0 launches and renders fine).
Verification
tauri.conf.jsonparses; only affects the Windows installer (no macOS impact). Will confirm on the next Windows CI build.Refs #65.
🤖 Generated with Claude Code