Skip to content

[bug] Multiple License options with misleading option name #8727

@naman-crabnebula

Description

@naman-crabnebula

Describe the bug

Currently, there are multiple separate licence options in Tauri Configuration. They should be clubbed into 1 or 2 option, with consistent naming.
Also, the name is also misleading. Current Situation:

  1. PackageSettings : It has a license option and expects a string.
  2. RpmSettings: It has license option as an alternate to PackageSettings
  3. MacOsSettings: It has a license option, that is the path to the LICENSE file. However, it is taken as Option<String> instead of Option<PathBuf>
  4. WixSettings: It also has a license option, which takes path to the LICENSE file, but uses Option<PathBuf>
  5. NsisSettings: Similar to WixSettings.

So, it forms a bit chaos for bundling application.

Reproduction

No response

Expected behavior

  1. The License should be clubbed into 1 universal option under package config.
  2. license_file option should be used instead of license appropiately.

Full tauri info output

Latest Tauri dev branch

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions