Skip to content

Commit 19fb5f0

Browse files
authored
fix(build): fix writing schema file (#8782)
* fix(build): fix writing schema file * Update .changes/schema_str.md
1 parent f2e4c9d commit 19fb5f0

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/schema_str.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri-build': 'patch:bug'
3+
---
4+
5+
Fix generating invalid schema files.

core/tauri-build/src/acl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ pub fn generate_schema(
181181

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

186186
copy(
187187
schema_path,

0 commit comments

Comments
 (0)