Skip to content

Commit

Permalink
fix(utils): temp permission file names on windows (#9477)
Browse files Browse the repository at this point in the history
* Replace `tauri:` with `tauri-`

* Add change file

* Apply suggestions from code review

* patch -> "patch:bug"

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
  • Loading branch information
Legend-Master and lucasfernog committed Apr 22, 2024
1 parent be7eab2 commit a1e0e26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-temp-permission-file-name.md
@@ -0,0 +1,5 @@
---
"tauri-utils": "patch:bug"
---

Replace `tauri:` prefix with `tauri-` for temporary permission file names
5 changes: 4 additions & 1 deletion core/tauri-utils/src/acl/build.rs
Expand Up @@ -71,7 +71,10 @@ pub fn define_permissions<F: Fn(&Path) -> bool>(
.filter(|p| p.parent().unwrap().file_name().unwrap() != PERMISSION_SCHEMAS_FOLDER_NAME)
.collect::<Vec<PathBuf>>();

let permission_files_path = out_dir.join(format!("{}-permission-files", pkg_name));
let permission_files_path = out_dir.join(format!(
"{}-permission-files",
pkg_name.replace("tauri:", "tauri-")
));
std::fs::write(
&permission_files_path,
serde_json::to_string(&permission_files)?,
Expand Down

0 comments on commit a1e0e26

Please sign in to comment.