Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a multi executable build #8

Open
arihant2math opened this issue Apr 12, 2023 · 1 comment · May be fixed by #11
Open

Support for a multi executable build #8

arihant2math opened this issue Apr 12, 2023 · 1 comment · May be fixed by #11

Comments

@arihant2math
Copy link

If someone has a cargo.toml that has multiple output binaries, like this:

[[bin]]
name = "foo"
path = "bin/foo.rs"

[[bin]]
name = "bar"
path = "bin/bar.rs"

[[bin]]
name = "buzz"
path = "bin/buzz.rs"

Then there isn't a way to tell win resource which icon to apply to which binary, short of making a new cargo project.
Is this impossible due to build.rs limitations, or can it be accomplished?

@BenjaminRi
Copy link
Owner

That is a good question. I feel like your use-case makes sense, but the library currently does not support it.

There is an issue about cargo adding support for multiple build scripts: rust-lang/cargo#1430

And there is a PR about this in tauri-winres (a sister fork of the same crate) with someone trying to accomplish the same: tauri-apps/winres#8

Perhaps I'll merge that PR if it looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants