mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-26 04:03:29 +03:00
fix(build): fix writing schema file (#8782)
* fix(build): fix writing schema file * Update .changes/schema_str.md
This commit is contained in:
parent
f2e4c9de3a
commit
19fb5f0b20
5
.changes/schema_str.md
Normal file
5
.changes/schema_str.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'tauri-build': 'patch:bug'
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix generating invalid schema files.
|
@ -181,7 +181,7 @@ pub fn generate_schema(
|
|||||||
|
|
||||||
let schema_path = out_dir.join(format!("{target}-{CAPABILITIES_SCHEMA_FILE_NAME}"));
|
let schema_path = out_dir.join(format!("{target}-{CAPABILITIES_SCHEMA_FILE_NAME}"));
|
||||||
if schema_str != read_to_string(&schema_path).unwrap_or_default() {
|
if schema_str != read_to_string(&schema_path).unwrap_or_default() {
|
||||||
write(&schema_path, "{schema_str}")?;
|
write(&schema_path, schema_str)?;
|
||||||
|
|
||||||
copy(
|
copy(
|
||||||
schema_path,
|
schema_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user