Skip to content

Commit

Permalink
fix: generate $schema field always with forward slash (#8673)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Jan 25, 2024
1 parent 049ca2d commit 734d78f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/tauri-utils/src/acl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 734d78f

Please sign in to comment.