Skip to content

Commit

Permalink
fix(cli): Hide updater bundle target in help output (#12801)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars authored Feb 25, 2025
1 parent d6520a2 commit c116dfc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/tauri-cli/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ impl FromStr for BundleFormat {
impl ValueEnum for BundleFormat {
fn value_variants<'a>() -> &'a [Self] {
static VARIANTS: OnceLock<Vec<BundleFormat>> = OnceLock::new();
VARIANTS.get_or_init(|| PackageType::all().iter().map(|t| Self(*t)).collect())
VARIANTS.get_or_init(|| {
PackageType::all()
.iter()
.filter(|t| **t != PackageType::Updater)
.map(|t| Self(*t))
.collect()
})
}

fn to_possible_value(&self) -> Option<PossibleValue> {
Expand Down

0 comments on commit c116dfc

Please sign in to comment.