Skip to content

Commit

Permalink
fix(build): fixed Webview2 runtime path in development, closes #4308
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Jun 10, 2022
1 parent d335fae commit 8a63489
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-dev-webview2-fixed-runtime-path.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-build": patch
---

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.
5 changes: 5 additions & 0 deletions core/tauri-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
if let Some(tray) = config.tauri.system_tray {
resources.push(tray.icon_path.display().to_string());
}
#[cfg(windows)]
if let Some(fixed_webview2_runtime_path) = &config.tauri.bundle.windows.webview_fixed_runtime_path
{
resources.push(fixed_webview2_runtime_path.display().to_string());
}
copy_resources(ResourcePaths::new(resources.as_slice(), true), target_dir)?;

#[cfg(target_os = "macos")]
Expand Down

0 comments on commit 8a63489

Please sign in to comment.