mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-21 14:54:46 +00:00
TAURI_CONFIG env var merge did not apply frameworks to the bundler, resulting in libodbc/libltdl missing from Contents/Frameworks/. Restore frameworks in tauri.conf.json and skip them in dev mode via build.rs when the dylibs are not present locally.
10 lines
421 B
Rust
10 lines
421 B
Rust
fn main() {
|
|
// In dev mode, skip framework bundling to avoid requiring libodbc/libltdl locally.
|
|
// CI copies the dylibs into src-tauri/ before release builds.
|
|
#[cfg(target_os = "macos")]
|
|
if std::env::var("TAURI_CONFIG").is_err() && !std::path::Path::new("libodbc.2.dylib").exists() {
|
|
std::env::set_var("TAURI_CONFIG", r#"{"bundle":{"macOS":{"frameworks":[]}}}"#);
|
|
}
|
|
tauri_build::build()
|
|
}
|