#Failed to copy external binaries

4 messages · Page 1 of 1 (latest)

swift crow
#

I'm trying to add ffmpeg binary to macOS and Windows using platform tauri configs.

tauri.macos.conf.json

{
    "bundle": {
        "macOS": {
            "frameworks": [
                "ffmpeg/lib/libavcodec.60.dylib",
                "..."
            ],
            "signingIdentity": "-"
        },
        "externalBin": [
            "ffmpeg"
        ]
    }
}
{
    "bundle": {
        "resources": {
            "ffmpeg\\bin\\x64\\*": "./",
        },
    }
}

Not sure if in windows that's the correct way (I need both DLLs and exe)

Anyway, in macOS it failed to bundle it.

Error failed to bundle project: Failed to copy external binaries

bunx tauri build -- --verbose

#
Note that Tauri will look for system-specific binaries following the pattern “binary-name{-target-triple}{.system-extension}“.

I think that's related to the problem. I want to copy it as is without triples

bleak sage
#

I think that's related to the problem. I want to copy it as is without triples
This is unsupported, binaries listed in externalBin must contain the target triple. On windows you can also bundle it as a resource but then you can't use the sidecar apis anymore and have to spawn it in rust. On macOS i think there's no way around externalBin because of the folder requirements in .app / .dmg