From 7eec42064faebe46858967635ea146ae05af98c1 Mon Sep 17 00:00:00 2001 From: korneliuszw Date: Fri, 31 Mar 2023 23:18:57 +0200 Subject: [PATCH] Fixes https://github.com/tauri-apps/tauri/issues/6256 --- core/tauri/src/api/path.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/tauri/src/api/path.rs b/core/tauri/src/api/path.rs index 7edd76c3e049..448fa8403ca6 100644 --- a/core/tauri/src/api/path.rs +++ b/core/tauri/src/api/path.rs @@ -8,6 +8,7 @@ use std::{ env::temp_dir, path::{Component, Path, PathBuf}, }; +use std::fs::canonicalize; use crate::{Config, Env, PackageInfo}; @@ -302,6 +303,7 @@ pub fn resolve_path>( }; if let Some(mut base_dir_path_value) = base_dir_path { // use the same path resolution mechanism as the bundler's resource injection algorithm + let mut base_dir_path_value = canonicalize(base_dir_path_value)?; if resolve_resource { let mut resource_path = PathBuf::new(); for component in path.as_ref().components() {