Skip to content

feat(cli): warn when productName is left as the default (fix #14968) - #15895

Merged
Legend-Master merged 4 commits into
tauri-apps:devfrom
leepokai:feat/default-product-name-warning
Aug 20, 2026
Merged

feat(cli): warn when productName is left as the default (fix #14968)#15895
Legend-Master merged 4 commits into
tauri-apps:devfrom
leepokai:feat/default-product-name-warning

Conversation

@leepokai

Copy link
Copy Markdown
Contributor

Adds a warning to tauri build when productName is still the default tauri-app. Apps published with the default name all derive the same WiX upgrade code, which is how the winget collision in the issue happens. The check sits next to the existing identifier checks in setup(), so it also covers tauri android build and tauri ios build, and stays quiet on tauri dev. The productName and identifier config docs now say what has to change before publishing, and the generated schemas were rebuilt. The upgrade code derivation itself is untouched since changing it would break updates for already shipped apps.

Output with the default name:

Warn The `productName` is still set to the default value `tauri-app`. You should change it before publishing your app since it is used to derive the default Windows installer (WiX) upgrade code, which must be unique across applications.

Closes #14968

…ps#14968)

The default productName tauri-app is used to derive the default WiX
installer upgrade code, so every app published without changing it gets
the same upgrade code and collides with unrelated apps in winget.
tauri build now warns when productName is still tauri-app, and the
config docs for productName and identifier explain what must be changed
before publishing. The upgrade code derivation itself is unchanged.
@leepokai
leepokai requested a review from a team as a code owner August 19, 2026 02:46
Comment thread crates/tauri-utils/src/config.rs Outdated
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through f7fcd2b

There are 14 changes which include tauri with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-build with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-bundler with minor, tauri-macos-sign with minor, @tauri-apps/api with minor, tauri-codegen with minor, tauri-macros with minor, tauri-plugin with minor, tauri-driver with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.11.1 2.12.0
tauri-utils 2.9.3 2.10.0
tauri-macos-sign 2.3.4 2.4.0
tauri-bundler 2.9.4 2.10.0
tauri-runtime 2.11.3 2.12.0
tauri-runtime-wry 2.11.4 2.12.0
tauri-codegen 2.6.3 2.7.0
tauri-macros 2.6.3 2.7.0
tauri-plugin 2.6.3 2.7.0
tauri-build 2.6.3 2.7.0
tauri 2.11.5 2.12.0
@tauri-apps/cli 2.11.4 2.12.0
tauri-cli 2.11.4 2.12.0
tauri-driver 2.0.6 2.1.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

The productName doc now lists everything the field controls on each
platform instead of focusing on the WiX upgrade code. Requested in
review of tauri-apps#15895.
Legend-Master
Legend-Master previously approved these changes Aug 19, 2026

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just some nitpicks and we can get it merged. cc @FabianLars if you could give the macOS docs a quick check

Comment thread crates/tauri-cli/src/build.rs Outdated
Comment thread .changes/default-product-name-warning.md
The warning and the change file described only the WiX upgrade code,
which is one of several things productName controls. Also bump
@tauri-apps/cli alongside tauri-cli, matching the other change files.
@FabianLars

Copy link
Copy Markdown
Member

macos sounds correct

Comment thread crates/tauri-cli/src/build.rs Outdated

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you both

@Legend-Master
Legend-Master merged commit ca160ad into tauri-apps:dev Aug 20, 2026
28 of 30 checks passed
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

Successfully merging this pull request may close these issues.

[bug] Generated upgrade_code for default product_name (tauri-app) causes ambiguity with an unrelated winget application

3 participants