Skip to content

Commit

Permalink
fix(build): fix writing schema file (#8782)
Browse files Browse the repository at this point in the history
* fix(build): fix writing schema file

* Update .changes/schema_str.md
  • Loading branch information
amrbashir committed Feb 5, 2024
1 parent f2e4c9d commit 19fb5f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/schema_str.md
@@ -0,0 +1,5 @@
---
'tauri-build': 'patch:bug'
---

Fix generating invalid schema files.
2 changes: 1 addition & 1 deletion core/tauri-build/src/acl.rs
Expand Up @@ -181,7 +181,7 @@ pub fn generate_schema(

let schema_path = out_dir.join(format!("{target}-{CAPABILITIES_SCHEMA_FILE_NAME}"));
if schema_str != read_to_string(&schema_path).unwrap_or_default() {
write(&schema_path, "{schema_str}")?;
write(&schema_path, schema_str)?;

copy(
schema_path,
Expand Down

0 comments on commit 19fb5f0

Please sign in to comment.