mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix: generate $schema field always with forward slash (#8673)
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user