Skip to content

Commit 8a63489

Browse files
committed
fix(build): fixed Webview2 runtime path in development, closes #4308
1 parent d335fae commit 8a63489

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-build": patch
3+
---
4+
5+
Copy `tauri.conf.json > tauri.bundle.windows.webview_fixed_runtime_path` as a resource to the target directory to fix development usage of a fixed Webview2 runtime path.

core/tauri-build/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
270270
if let Some(tray) = config.tauri.system_tray {
271271
resources.push(tray.icon_path.display().to_string());
272272
}
273+
#[cfg(windows)]
274+
if let Some(fixed_webview2_runtime_path) = &config.tauri.bundle.windows.webview_fixed_runtime_path
275+
{
276+
resources.push(fixed_webview2_runtime_path.display().to_string());
277+
}
273278
copy_resources(ResourcePaths::new(resources.as_slice(), true), target_dir)?;
274279

275280
#[cfg(target_os = "macos")]

0 commit comments

Comments
 (0)