浏览代码

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

Amr Bashir 1 年之前
父节点
当前提交
734d78f736
共有 1 个文件被更改,包括 4 次插入1 次删除
  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"));