Skip to content

Commit

Permalink
fix: messy ui for package types in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Jan 16, 2025
1 parent 19d5fae commit cd121f2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
11 changes: 0 additions & 11 deletions packages/cli/src/cli/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ use super::*;
#[derive(Clone, Debug, Parser)]
pub struct Bundle {
/// The package types to bundle
///
/// Any of:
/// - macos: The macOS application bundle (.app).
/// - ios: The iOS app bundle.
/// - msi: The Windows bundle (.msi).
/// - nsis: The NSIS bundle (.exe).
/// - deb: The Linux Debian package bundle (.deb).
/// - rpm: The Linux RPM bundle (.rpm).
/// - appimage: The Linux AppImage bundle (.AppImage).
/// - dmg: The macOS DMG bundle (.dmg).
/// - updater: The Updater bundle.
#[clap(long)]
pub package_types: Option<Vec<crate::PackageType>>,

Expand Down
28 changes: 27 additions & 1 deletion packages/cli/src/config/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,42 @@ pub struct CustomSignCommandSettings {
pub args: Vec<String>,
}

#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, clap::ValueEnum)]
pub(crate) enum PackageType {
/// The macOS application bundle (.app).
#[clap(name = "macos")]
MacOsBundle,

/// The iOS app bundle.
#[clap(name = "ios")]
IosBundle,

/// The Windows bundle (.msi).
#[clap(name = "msi")]
WindowsMsi,

/// The NSIS bundle (.exe).
#[clap(name = "nsis")]
Nsis,

/// The Linux Debian package bundle (.deb).
#[clap(name = "deb")]
Deb,

/// The Linux RPM bundle (.rpm).
#[clap(name = "rpm")]
Rpm,

/// The Linux AppImage bundle (.AppImage).
#[clap(name = "appimage")]
AppImage,

/// The macOS DMG bundle (.dmg).
#[clap(name = "dmg")]
Dmg,

/// The Updater bundle (a patch of an existing app)
#[clap(name = "updater")]
Updater,
}

Expand Down

0 comments on commit cd121f2

Please sign in to comment.