Fix macOS build and update framework path

- Conditionally compile the macOS Command import
- Use Spacedrive.framework directly under native_deps instead of
  Frameworks/Spacedrive.framework
This commit is contained in:
Jamie Pine 2025-12-10 23:14:54 -08:00
parent af43ed76bd
commit dc690ac217
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#[cfg(target_os = "macos")]
use std::process::Command;
fn main() {

View File

@ -120,7 +120,7 @@ pub fn symlink_libs_macos(root: &Path, native_deps: &Path) -> Result<()> {
use std::os::unix::fs as unix_fs;
// Create Spacedrive.framework symlink for dylibs (matches v1 behavior)
let framework = native_deps.join("Frameworks").join("Spacedrive.framework");
let framework = native_deps.join("Spacedrive.framework");
if framework.exists() {
// Sign all dylibs in the framework (required for macOS 13+)
let libs_dir = framework.join("Libraries");