File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::{
14
14
} ;
15
15
use anyhow:: Context ;
16
16
use clap:: { ArgAction , Parser } ;
17
- use std:: { env:: set_current_dir, fs } ;
17
+ use std:: env:: set_current_dir;
18
18
use tauri_utils:: platform:: Target ;
19
19
20
20
#[ derive( Debug , Clone , Parser ) ]
@@ -174,9 +174,9 @@ pub fn setup(
174
174
175
175
// Issue #13287 - Allow the use of target dir inside frontendDist/distDir
176
176
// 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 ) ?;
178
178
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 ) {
180
180
if let Ok ( relative_path) = target_path. strip_prefix ( & web_asset_canonical) {
181
181
let relative_str = relative_path. to_string_lossy ( ) ;
182
182
if !relative_str. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments