Changing executable and bundle names based on --example argument
woodworthkyle opened this issue · 0 comments
woodworthkyle commented
I’m building a library that contains examples, which I run with the --example
argument. I’m specifically using bundle
to build Mac Catalyst bundles.
# Build
cargo +nightly build -Z build-std --target x86_64-apple-ios-macabi --example simple
# Bundle
CARGO_BUNDLE_SKIP_BUILD=1 cargo bundle --target x86_64-apple-ios-macabi --example simple
This yields a <package_name>.app
bundle instead of a <example_name>.app
bundle. The executable comes out as <package_name>
but the CFBundleExecutable
entry in the Info.plist
comes out as <example_name>
. The mismatch between the Info.plist
and executable name does not allow the bundle to launch properly.
Is there a way to specify the bundle name and executable name based on other build options like the --example
argument?