fix: messy ui for package types in bundle
This commit is contained in:
2 files changed
+27
-12
No files matched your search
@@ -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>>,
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user