Open xNyaDev opened 1 year ago
Thanks for the report! So far i'm still trying to figure out why this happens but in the meantime i wanted to note that using compile()
instead of compile_for
should work too now that we use embed-resource since it only compiles the resource for binaries if there is a mix of bins and libs in the project.
I am trying to use tauri_winres to add resources to a single binary using the new compile_for method added in 0.1.1. I am using the following code:
My crate is a Rust library (no cdylib) with a single binary target. Running
cargo build
results in:The line
package.metadata does not exist
is expected as my Cargo.toml contains no resource fields and everything is set in the above build script.If you need the entire crate to reproduce the issue, the source code is located here: https://github.com/xNyaDev/bfstool. It is currently using the code I wrote for #8 (and therefore builds fine), changing it to upstream requires modifying Cargo.toml to use tauri-winres 0.1.1 and changing the compile_for call in the build script.