Skip to content

Commit a1e0e26

Browse files
fix(utils): temp permission file names on windows (#9477)
* Replace `tauri:` with `tauri-` * Add change file * Apply suggestions from code review * patch -> "patch:bug" --------- Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
1 parent be7eab2 commit a1e0e26

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

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+
Replace `tauri:` prefix with `tauri-` for temporary permission file names

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ 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!("{}-permission-files", pkg_name));
74+
let permission_files_path = out_dir.join(format!(
75+
"{}-permission-files",
76+
pkg_name.replace("tauri:", "tauri-")
77+
));
7578
std::fs::write(
7679
&permission_files_path,
7780
serde_json::to_string(&permission_files)?,

0 commit comments

Comments
 (0)