mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 13:37:09 +00:00
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>
This commit is contained in:
parent
be7eab209c
commit
a1e0e268f0
5
.changes/fix-temp-permission-file-name.md
Normal file
5
.changes/fix-temp-permission-file-name.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri-utils": "patch:bug"
|
||||
---
|
||||
|
||||
Replace `tauri:` prefix with `tauri-` for temporary permission file names
|
||||
@ -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)?,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user