diff --git a/core/tauri-utils/src/acl/build.rs b/core/tauri-utils/src/acl/build.rs index 9f001c29b..df3ef7f22 100644 --- a/core/tauri-utils/src/acl/build.rs +++ b/core/tauri-utils/src/acl/build.rs @@ -306,7 +306,10 @@ commands.deny = ["{command}"] "###, command = command, slugified_command = slugified_command, - schema_path = schema_path.display().to_string().replace('\\', "\\\\") + schema_path = dunce::simplified(&schema_path) + .display() + .to_string() + .replace('\\', "/") ); let out_path = path.join(format!("{command}.toml"));