You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let relative_str = relative_path.to_string_lossy();
186
+
if !relative_str.is_empty(){
187
+
out_folders.push(relative_str.to_string());
188
+
}
189
+
}
190
+
}
191
+
192
+
for folder in&["node_modules","src-tauri"]{
193
+
let sub_path = web_asset_path.join(folder);
194
+
// If the subfolder exists and its canonicalized path equals the target path, add to out_folders
195
+
if sub_path.is_dir() && fs::canonicalize(&sub_path)? == target_path {
178
196
out_folders.push(folder.to_string());
179
197
}
180
198
}
181
199
if !out_folders.is_empty(){
182
200
returnErr(anyhow::anyhow!(
183
-
"The configured frontendDist includes the `{:?}` {}. Please isolate your web assets on a separate folder and update `tauri.conf.json > build > frontendDist`.",
184
-
out_folders,
185
-
if out_folders.len() == 1{"folder"} else {"folders"}
186
-
)
187
-
);
201
+
"The configured frontendDist includes the `{:?}` {}. Please isolate your web assets on a separate folder and update `tauri.conf.json > build > frontendDist`.",
202
+
out_folders,
203
+
if out_folders.len() == 1{"folder"} else {"folders"}
0 commit comments