Skip to content

Commit ce76d95

Browse files
feat(tauri-cli): add dylib support to tauri.bundle.macOS.frameworks, closes #4615 (#5732)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 2265e09 commit ce76d95

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Add dylib support to `tauri.bundle.macOS.frameworks`.

tooling/bundler/src/bundle/macos/app.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,17 @@ fn copy_frameworks_to_bundle(bundle_directory: &Path, settings: &Settings) -> cr
229229
.expect("Couldn't get framework filename");
230230
common::copy_dir(&src_path, &dest_dir.join(&src_name))?;
231231
continue;
232+
} else if framework.ends_with(".dylib") {
233+
let src_path = PathBuf::from(framework);
234+
if !src_path.exists() {
235+
return Err(crate::Error::GenericError(format!(
236+
"Library not found: {}",
237+
framework
238+
)));
239+
}
240+
let src_name = src_path.file_name().expect("Couldn't get library filename");
241+
common::copy_file(&src_path, &dest_dir.join(&src_name))?;
242+
continue;
232243
} else if framework.contains('/') {
233244
return Err(crate::Error::GenericError(format!(
234245
"Framework path should have .framework extension: {}",

0 commit comments

Comments
 (0)