Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
korneliuszw committed Mar 31, 2023
1 parent 5fdc616 commit 7eec420
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/tauri/src/api/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::{
env::temp_dir,
path::{Component, Path, PathBuf},
};
use std::fs::canonicalize;

use crate::{Config, Env, PackageInfo};

Expand Down Expand Up @@ -302,6 +303,7 @@ pub fn resolve_path<P: AsRef<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() {
Expand Down

0 comments on commit 7eec420

Please sign in to comment.