1

I'm using Tauri and Rust to make an app and I have two binaries in Rust: One is the tauri app, and the other is a helper program (turning Rust structs into Typescript interfaces). I set the tauri app binary as the default binary in the Cargo.toml

[package]
name = "app"
default-run = "app"

This setup works fine when I run npm run tauri dev. However, if I try bundling it into a MacOS application, the tauri build system copies the helper executable into app rather than the default binary that is the actual tauri app.

Is there some way to tell tauri which Rust binary to package when bundling a MacOS Application?

I've tried setting a default binary default-run = "app", and I've looked but not found anything in Tauri's docs for setting a binary.

I've also tried removing the helper binary, but it still tries bundle the (now missing) helper binary.

Removing the helper binary would be a fix of last resort because of its use while developing.

0 Answers0