pub struct Settings { /* private fields */ }
Expand description
The Settings exposed by the module.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn set_log_level(&mut self, level: Level)
pub fn set_log_level(&mut self, level: Level)
Sets the log level for spawned commands.
Sourcepub fn project_out_directory(&self) -> &Path
pub fn project_out_directory(&self) -> &Path
Returns the directory where the bundle should be placed.
Sourcepub fn binary_arch(&self) -> Arch
pub fn binary_arch(&self) -> Arch
Returns the architecture for the binary being bundled (e.g. “arm”, “x86” or “x86_64”).
Sourcepub fn main_binary(&self) -> Result<&BundleBinary>
pub fn main_binary(&self) -> Result<&BundleBinary>
Returns the file name of the binary being bundled.
Sourcepub fn main_binary_mut(&mut self) -> Result<&mut BundleBinary>
pub fn main_binary_mut(&mut self) -> Result<&mut BundleBinary>
Returns the file name of the binary being bundled.
Sourcepub fn main_binary_name(&self) -> Result<&str>
pub fn main_binary_name(&self) -> Result<&str>
Returns the file name of the binary being bundled.
Sourcepub fn binary_path(&self, binary: &BundleBinary) -> PathBuf
pub fn binary_path(&self, binary: &BundleBinary) -> PathBuf
Returns the path to the specified binary.
Sourcepub fn binaries(&self) -> &Vec<BundleBinary>
pub fn binaries(&self) -> &Vec<BundleBinary>
Returns the list of binaries to bundle.
Sourcepub fn package_types(&self) -> Result<Vec<PackageType>>
pub fn package_types(&self) -> Result<Vec<PackageType>>
If a list of package types was specified by the command-line, returns that list filtered by the current target OS available targets.
If a target triple was specified by the command-line, returns the native package type(s) for that target.
Otherwise returns the native package type(s) for the host platform.
Fails if the host/target’s native package type is not supported.
Sourcepub fn product_name(&self) -> &str
pub fn product_name(&self) -> &str
Returns the product name.
Sourcepub fn bundle_identifier(&self) -> &str
pub fn bundle_identifier(&self) -> &str
Returns the bundle’s identifier
Sourcepub fn icon_files(&self) -> ResourcePaths<'_>
pub fn icon_files(&self) -> ResourcePaths<'_>
Returns an iterator over the icon files to be used for this bundle.
Sourcepub fn resource_files(&self) -> ResourcePaths<'_>
pub fn resource_files(&self) -> ResourcePaths<'_>
Returns an iterator over the resource files to be included in this bundle.
Sourcepub fn external_binaries(&self) -> ResourcePaths<'_>
pub fn external_binaries(&self) -> ResourcePaths<'_>
Returns an iterator over the external binaries to be included in this bundle.
Sourcepub fn copy_binaries(&self, path: &Path) -> Result<Vec<PathBuf>>
pub fn copy_binaries(&self, path: &Path) -> Result<Vec<PathBuf>>
Copies external binaries to a path.
Returns the list of destination paths.
Sourcepub fn copy_resources(&self, path: &Path) -> Result<()>
pub fn copy_resources(&self, path: &Path) -> Result<()>
Copies resources to a path.
Sourcepub fn version_string(&self) -> &str
pub fn version_string(&self) -> &str
Returns the version string of the bundle.
Sourcepub fn copyright_string(&self) -> Option<&str>
pub fn copyright_string(&self) -> Option<&str>
Returns the copyright text.
Returns the list of authors name.
Returns the authors as a comma-separated string.
Sourcepub fn license_file(&self) -> Option<PathBuf>
pub fn license_file(&self) -> Option<PathBuf>
Returns the bundle license file.
Sourcepub fn homepage_url(&self) -> Option<&str>
pub fn homepage_url(&self) -> Option<&str>
Returns the package’s homepage URL, defaulting to “” if not defined.
Sourcepub fn app_category(&self) -> Option<AppCategory>
pub fn app_category(&self) -> Option<AppCategory>
Returns the app’s category.
Sourcepub fn file_associations(&self) -> Option<&Vec<FileAssociation>>
pub fn file_associations(&self) -> Option<&Vec<FileAssociation>>
Return file associations.
Sourcepub fn deep_link_protocols(&self) -> Option<&Vec<DeepLinkProtocol>>
pub fn deep_link_protocols(&self) -> Option<&Vec<DeepLinkProtocol>>
Return the list of deep link protocols to be registered for this bundle.
Sourcepub fn short_description(&self) -> &str
pub fn short_description(&self) -> &str
Returns the app’s short description.
Sourcepub fn long_description(&self) -> Option<&str>
pub fn long_description(&self) -> Option<&str>
Returns the app’s long description.
Sourcepub fn local_tools_directory(&self) -> Option<&Path>
pub fn local_tools_directory(&self) -> Option<&Path>
Returns the directory for local tools path.
Sourcepub fn deb(&self) -> &DebianSettings
pub fn deb(&self) -> &DebianSettings
Returns the debian settings.
Sourcepub fn appimage(&self) -> &AppImageSettings
pub fn appimage(&self) -> &AppImageSettings
Returns the appimage settings.
Sourcepub fn rpm(&self) -> &RpmSettings
pub fn rpm(&self) -> &RpmSettings
Returns the RPM settings.
Sourcepub fn dmg(&self) -> &DmgSettings
pub fn dmg(&self) -> &DmgSettings
Returns the DMG settings.
Sourcepub fn macos(&self) -> &MacOsSettings
pub fn macos(&self) -> &MacOsSettings
Returns the MacOS settings.
Sourcepub fn windows(&self) -> &WindowsSettings
pub fn windows(&self) -> &WindowsSettings
Returns the Windows settings.
Sourcepub fn updater(&self) -> Option<&UpdaterSettings>
pub fn updater(&self) -> Option<&UpdaterSettings>
Returns the Updater settings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more