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

[feat] displayName for package #8109

Closed
moranbw opened this issue Oct 26, 2023 · 6 comments · Fixed by #9375
Closed

[feat] displayName for package #8109

moranbw opened this issue Oct 26, 2023 · 6 comments · Fixed by #9375

Comments

@moranbw
Copy link

moranbw commented Oct 26, 2023

Describe the problem

This is probably nitpicking, but I am looking to have two separate "names" for my Tauri application. Right now, I understand that in tauri.conf.json I can define package -> productName. This is what is used to name installers, exe's, log files (if using the plugin), etc.

But it also is what is used for the "user-facing" display name, for example what it is called in the Start Menu on Windows. So for my-app, if I want the user to have a "user-friendly" name to search for, I need to set productName to My App. But then the underlying executable is called My App.exe, which just kind of irks me lol. I think it should be my-app.exe. It just seems more professional, and more in line with what I see in other apps I have installed on my system.

Describe the solution you'd like

Keep productName as the default way of naming your app. But add an option in package called displayName, which determines the "user-facing" name of the application, while keeping file-system friendly productName for .exe's, etc.

Alternatives considered

I am thinking that this would be an app manifest thing on Windows. Not sure about Linux and Mac.

Additional context

No response

@NXTaar
Copy link

NXTaar commented Nov 29, 2023

Hope it will be implemented. Have the same problem here for a Windows app

@eythaann
Copy link

x3, waiting for this feature.

mariotaku added a commit to mariotaku/tauri that referenced this issue Mar 13, 2024
mariotaku added a commit to mariotaku/tauri that referenced this issue Mar 13, 2024
@mariotaku
Copy link
Contributor

Hi, I have created a PR to this issue, please try and let me know if it works for you!

@hengkx
Copy link

hengkx commented Apr 25, 2024

Is there any progress? I really need this function

@FabianLars
Copy link
Member

The PR is linked right above your comment -> #9375
We can't backport that exact solution to v1 though because it's a breaking change.

lucasfernog added a commit that referenced this issue May 28, 2024
…rgo name (#9375)

* refactor(cli&bundler): avoid renaming main executable and reserve cargo name

closes #8109
closes #8349

* fix bundler

* fix test

* Discard changes to core/tauri-build/Cargo.toml

* revert Cargo.toml changes

* Discard changes to Cargo.lock

* Discard changes to tooling/cli/Cargo.lock

* lock file

* use product name for installers

* only warn for sign on windows

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
@amrbashir
Copy link
Member

Just a note that we have decided to add mainBinaryName option in #10977 to control the main binary name, this makes productName essentially the displayName (which is what it was supposed to) and the new option for main binary name only.

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

Successfully merging a pull request may close this issue.

7 participants