burtonageo / cargo-bundle

Wrap rust executables in OS-specific app bundles
Other
1.08k stars 74 forks source link

path resolver is broken on nesting rust project #170

Closed oligamiq closed 4 weeks ago

oligamiq commented 10 months ago
$ cargo bundle --target x86_64-apple-ios --format ios
    Finished dev [unoptimized + debuginfo] target(s) in 0.08s
warning: iOS bundle support is still experimental.
    Bundling ios-beta.app
error: Failed to copy binary from "/Users/runner/work/nickname/nickname/nickname/target/x86_64-apple-ios/debug/cacao"
  Caused by: "/Users/runner/work/nickname/nickname/nickname/target/x86_64-apple-ios/debug/cacao" does not exist
$ echo $(pwd)
/Users/runner/work/nickname/nickname/nickname/examples/iphone

image

I changed examples -> example -> test, but all folder is failed. I cp ../ but failed. I cp without nickname workspace and succussed

I think path resolver is broken on nesting rust project.

ActuallyHappening commented 6 months ago

I have had similar issue, nested project fails with "Failed to copy binary from "

radiohertz commented 1 month ago

Is this fixed? v0.6.1 fails with "Failed to copy binary from " but bundling with v0.6.0 works fine.

cc @ActuallyHappening @mdsteele

mdsteele commented 1 month ago

If you can diagnose this and send a PR to fix, I can put out a v0.6.2 to include it.