Skip to content

Commit 7e810cb

Browse files
authored
fix: permission file uses ':' in file name (#10485)
* fix: permission file uses ':' in file name * style: rustfmt
1 parent 725dbb7 commit 7e810cb

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎.changes/fix-colon-in-file-path.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-utils": "patch:bug"
3+
---
4+
5+
Fixed an issue where permission files will be generated with ':' in the file path.

‎core/tauri-utils/src/acl/build.rs‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ pub fn define_permissions<F: Fn(&Path) -> bool>(
7171
.filter(|p| p.parent().unwrap().file_name().unwrap() != PERMISSION_SCHEMAS_FOLDER_NAME)
7272
.collect::<Vec<PathBuf>>();
7373

74-
let permission_files_path = out_dir.join(format!(
75-
"{}-permission-files",
76-
pkg_name.replace("tauri:", "tauri-")
77-
));
74+
let permission_files_path =
75+
out_dir.join(format!("{}-permission-files", pkg_name.replace(':', "-")));
7876
std::fs::write(
7977
&permission_files_path,
8078
serde_json::to_string(&permission_files)?,

0 commit comments

Comments
 (0)