Ver código fonte

fix: generate $schema field always with forward slash (#8673)

Amr Bashir 1 ano atrás
pai
commit
734d78f736
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      core/tauri-utils/src/acl/build.rs

+ 4 - 1
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"));