Skip to content

Conversation

Andrew15-5
Copy link
Contributor

@Andrew15-5 Andrew15-5 commented Jul 28, 2025

Resolves #13893.

There are a bunch of small thing that I'm not sure about that I commented through out the changes.

I guess the total number of package types is 8.

I don't know if I should make arch as mut and just write if consistent_name { arch = ...; } instead of inline if-else expression in format!. At least because architecture is technically immutable. There are a few different approaches. You can also just shadow the var by writing a new let arch. I think this would be a better approach than the current one, just don't know if shadowing is allowed here.

I opted into a bit more changes to make constructing the package file name also consistent.

The things that can be debated is what is the default consistent naming scheme? I think underscores are very dominant in file names, so it might be the safest bet. Though there is MSI that also have a language, which kinda breaks the consistency. As well as the "universal" architecture (which is a very bad, non-descriptive name for an architecture). Also don't know about architecture names in general, I just converted the enum variant names to lowercase strings.

Maybe the docs wording could be better.

Waiting for feedback. The general idea is already fully implemented.

I just don't know how to test this. I didn't find tests in a file when I was searching. I guess there are snapshot tests, but I can't run them.

rust-analyzer only works for half of the files.

Whether to name all package types' files with a consistent naming
scheme. Default is false, which means each package type will use its own
conventional naming scheme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📬Proposal
Development

Successfully merging this pull request may close these issues.

tauri-bundler: Inconsistent package_base_name
1 participant