From 734d78f7366586b016e8790f8fe868808928484e Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Thu, 25 Jan 2024 02:57:41 +0200 Subject: [PATCH] fix: generate $schema field always with forward slash (#8673) --- core/tauri-utils/src/acl/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"));