Struct tauri_bundler::bundle::Settings
source · 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) -> &str
pub fn binary_arch(&self) -> &str
Returns the architecture for the binary being bundled (e.g. “arm”, “x86” or “x86_64”).
sourcepub fn main_binary_name(&self) -> &str
pub fn main_binary_name(&self) -> &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 homepage_url(&self) -> &str
pub fn homepage_url(&self) -> &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 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 deb(&self) -> &DebianSettings
pub fn deb(&self) -> &DebianSettings
Returns the debian 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.
sourcepub fn is_update_enabled(&self) -> bool
pub fn is_update_enabled(&self) -> bool
Is update enabled