feat(cli): warn when productName is left as the default (fix #14968) - #15895
Conversation
…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.
Package Changes Through f7fcd2bThere 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 VersionsThe following package releases are the planned based on the context of changes in this pull request.
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
left a comment
There was a problem hiding this comment.
Thanks! Just some nitpicks and we can get it merged. cc @FabianLars if you could give the macOS docs a quick check
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.
|
macos sounds correct |
Adds a warning to
tauri buildwhenproductNameis still the defaulttauri-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 insetup(), so it also coverstauri android buildandtauri ios build, and stays quiet ontauri dev. TheproductNameandidentifierconfig 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:
Closes #14968