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

package.metadata.wix.product-name doesn't work #270

Open
nazar-pc opened this issue Dec 5, 2023 · 3 comments
Open

package.metadata.wix.product-name doesn't work #270

nazar-pc opened this issue Dec 5, 2023 · 3 comments
Assignees
Labels

Comments

@nazar-pc
Copy link

nazar-pc commented Dec 5, 2023

Setting it in Cargo.toml has no effect, only CLI option works right now.

I think some fallback like this is necessary for product-name:

.and_then(|t| t.get("product-icon"))

@volks73
Copy link
Owner

volks73 commented Dec 5, 2023

Thank you for the issue. This is most likely a bug, either in the documentation for suggesting this is an implemented key or in the implementation for supporting the key if it is implemented. Would be able to submit a PR to resolve this issue?

@volks73
Copy link
Owner

volks73 commented Dec 5, 2023

I have looked into this just briefly, and the product-name field is not supported. This is because the product name is taken from the name field for the package:

fn product_name(product_name: Option<&String>, manifest: &Package) -> String {

[package]
name = "product-name-here"

There is the --product-name CLI option that can be used to override and/or explicitly define the product name, but there is no product-name field under the [package.metadata.wix] section.

@nazar-pc
Copy link
Author

nazar-pc commented Dec 5, 2023

I see, I somehow completely missed that and assumed it was symmetrical. Do you think it would make sense to support that though? It is interesting that name and product-icon can be changed that way, but product-name can't.

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

No branches or pull requests

2 participants