Skip to content

Commit 7897ed2

Browse files
authored
fix(cli): don't canonicalize cargo's target dir in frontendDist verification (#13392)
1 parent 1a01887 commit 7897ed2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/tauri-cli/src/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414
};
1515
use anyhow::Context;
1616
use clap::{ArgAction, Parser};
17-
use std::{env::set_current_dir, fs};
17+
use std::env::set_current_dir;
1818
use tauri_utils::platform::Target;
1919

2020
#[derive(Debug, Clone, Parser)]
@@ -174,9 +174,9 @@ pub fn setup(
174174

175175
// Issue #13287 - Allow the use of target dir inside frontendDist/distDir
176176
// https://github.com/tauri-apps/tauri/issues/13287
177-
let target_path = fs::canonicalize(get_cargo_target_dir(&options.args)?)?;
177+
let target_path = get_cargo_target_dir(&options.args)?;
178178
let mut out_folders = Vec::new();
179-
if let Ok(web_asset_canonical) = web_asset_path.canonicalize() {
179+
if let Ok(web_asset_canonical) = dunce::canonicalize(web_asset_path) {
180180
if let Ok(relative_path) = target_path.strip_prefix(&web_asset_canonical) {
181181
let relative_str = relative_path.to_string_lossy();
182182
if !relative_str.is_empty() {

0 commit comments

Comments
 (0)