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
.expect("failed to extract external binary filename")
46
-
.to_string_lossy()
47
-
.replace(&format!("-{}", target_triple),""),
48
-
);
47
+
let file_name = src
48
+
.file_name()
49
+
.expect("failed to extract external binary filename")
50
+
.to_string_lossy()
51
+
.replace(&format!("-{}", target_triple),"");
52
+
53
+
if package_name.map_or(false, |n| n == &file_name){
54
+
returnErr(anyhow::anyhow!(
55
+
"Cannot define a sidecar with the same name as the Cargo package name `{}`. Please change the sidecar name in the filesystem and the Tauri configuration.",
0 commit comments