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

Changing executable and bundle names based on --example argument #162

Open
woodworthkyle opened this issue Oct 3, 2023 · 0 comments
Open

Comments

@woodworthkyle
Copy link

woodworthkyle commented Oct 3, 2023

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?

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

No branches or pull requests

1 participant