mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
fix(build): fixed Webview2 runtime path in development, closes #4308
This commit is contained in:
5
.changes/fix-dev-webview2-fixed-runtime-path.md
Normal file
5
.changes/fix-dev-webview2-fixed-runtime-path.md
Normal file
@@ -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.
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user