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)]
|
#[derive(Clone, Debug, Parser)]
|
||||||
pub struct Bundle {
|
pub struct Bundle {
|
||||||
/// The package types to 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)]
|
#[clap(long)]
|
||||||
pub package_types: Option<Vec<crate::PackageType>>,
|
pub package_types: Option<Vec<crate::PackageType>>,
|
||||||
|
|
||||||
|
|||||||
@@ -191,16 +191,42 @@ pub struct CustomSignCommandSettings {
|
|||||||
pub args: Vec<String>,
|
pub args: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug, clap::ValueEnum)]
|
||||||
pub(crate) enum PackageType {
|
pub(crate) enum PackageType {
|
||||||
|
/// The macOS application bundle (.app).
|
||||||
|
#[clap(name = "macos")]
|
||||||
MacOsBundle,
|
MacOsBundle,
|
||||||
|
|
||||||
|
/// The iOS app bundle.
|
||||||
|
#[clap(name = "ios")]
|
||||||
IosBundle,
|
IosBundle,
|
||||||
|
|
||||||
|
/// The Windows bundle (.msi).
|
||||||
|
#[clap(name = "msi")]
|
||||||
WindowsMsi,
|
WindowsMsi,
|
||||||
|
|
||||||
|
/// The NSIS bundle (.exe).
|
||||||
|
#[clap(name = "nsis")]
|
||||||
Nsis,
|
Nsis,
|
||||||
|
|
||||||
|
/// The Linux Debian package bundle (.deb).
|
||||||
|
#[clap(name = "deb")]
|
||||||
Deb,
|
Deb,
|
||||||
|
|
||||||
|
/// The Linux RPM bundle (.rpm).
|
||||||
|
#[clap(name = "rpm")]
|
||||||
Rpm,
|
Rpm,
|
||||||
|
|
||||||
|
/// The Linux AppImage bundle (.AppImage).
|
||||||
|
#[clap(name = "appimage")]
|
||||||
AppImage,
|
AppImage,
|
||||||
|
|
||||||
|
/// The macOS DMG bundle (.dmg).
|
||||||
|
#[clap(name = "dmg")]
|
||||||
Dmg,
|
Dmg,
|
||||||
|
|
||||||
|
/// The Updater bundle (a patch of an existing app)
|
||||||
|
#[clap(name = "updater")]
|
||||||
Updater,
|
Updater,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user