Describe the bug
Hi everyone .
I'm having an issue while trying to generate different bundle types for Linux (deb and appimage).
This command works fine and generates an AppImage bundle:
tauri build --bundles appimage --target x86_64-unknown-linux-gnu
This command also works fine and generates a .deb bundle:
tauri build --bundles deb --target x86_64-unknown-linux-gnu
The bundles option should be able to take multiple parameters, as says the documentation. But when i try this command:
tauri build --bundles appimage deb --target x86_64-unknown-linux-gnu
It fails with the following error:
error: Found argument 'deb' which wasn't expected, or isn't valid in this context
Also tried with:
tauri build --bundles appimage --bundles deb --target x86_64-unknown-linux-gnu
This time it worked, but it only generated an appimage bundle, the second occurrence of the --bundles option was apparently silently ignored.
After looking at the source code, it seems that the error originates from the Clap arguments parser.
The bundles member of the Clap derived struct apparently has a correct type (Option<Vec<String>>) but Clap does not want to parse more than one value and consider it as an error.
NOTE: this problem might affect other options when using the CLI, not only this one.
Thanks !
Reproduction
Launch the tauri build command with multiple values for the --bundles option.
Expected behavior
It should generate bundles based on each value provided with the --bundles option.
Platform and versions
Using CLI version 1.0.0-rc.10 on Linux.
Stack trace
No response
Additional context
No response
Describe the bug
Hi everyone .
I'm having an issue while trying to generate different bundle types for Linux (
debandappimage).This command works fine and generates an
AppImagebundle:tauri build --bundles appimage --target x86_64-unknown-linux-gnuThis command also works fine and generates a
.debbundle:tauri build --bundles deb --target x86_64-unknown-linux-gnuThe bundles option should be able to take multiple parameters, as says the documentation. But when i try this command:
tauri build --bundles appimage deb --target x86_64-unknown-linux-gnuIt fails with the following error:
error: Found argument 'deb' which wasn't expected, or isn't valid in this contextAlso tried with:
tauri build --bundles appimage --bundles deb --target x86_64-unknown-linux-gnuThis time it worked, but it only generated an
appimagebundle, the second occurrence of the--bundlesoption was apparently silently ignored.After looking at the source code, it seems that the error originates from the Clap arguments parser.
The
bundlesmember of the Clap derived struct apparently has a correct type (Option<Vec<String>>) but Clap does not want to parse more than one value and consider it as an error.NOTE: this problem might affect other options when using the CLI, not only this one.
Thanks !
Reproduction
Launch the
tauri buildcommand with multiple values for the--bundlesoption.Expected behavior
It should generate bundles based on each value provided with the
--bundlesoption.Platform and versions
Stack trace
No response
Additional context
No response