mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
[yabridgectl] Track created moduleinfo.json files
Otherwise they're considered orphans immediately after creating them.
This commit is contained in:
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic
|
||||
Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
# yabridgectl
|
||||
|
||||
- Fixed converted VST 3.7.5 `moduleinfo.json` files being considered orphan
|
||||
files immediately after yabridgectl created them as part of the sync
|
||||
operation.
|
||||
|
||||
## [5.0.0] - 2022-11-02
|
||||
|
||||
# Added
|
||||
|
||||
@@ -560,14 +560,19 @@ pub fn do_sync(config: &mut Config, options: &SyncOptions) -> Result<()> {
|
||||
let converted_json =
|
||||
serde_jsonrc::to_string_pretty(&converted_module_info)
|
||||
.context("Could not format JSON file")?;
|
||||
util::write(target_moduleinfo_path, converted_json)
|
||||
util::write(&target_moduleinfo_path, converted_json)
|
||||
});
|
||||
if let Err(error) = result {
|
||||
eprintln!(
|
||||
"Error converting '{}', skipping...\n{}",
|
||||
original_moduleinfo_path.display(),
|
||||
error
|
||||
);
|
||||
match result {
|
||||
Ok(_) => {
|
||||
managed_vst3_bundle_files.insert(target_moduleinfo_path);
|
||||
}
|
||||
Err(error) => {
|
||||
eprintln!(
|
||||
"Error converting '{}', skipping...\n{}",
|
||||
original_moduleinfo_path.display(),
|
||||
error
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user