Struct tauri_bundler::bundle::Settings

source ·
pub struct Settings { /* private fields */ }
Expand description

The Settings exposed by the module.

Implementations§

source§

impl Settings

source

pub fn set_log_level(&mut self, level: Level)

Sets the log level for spawned commands.

source

pub fn log_level(&self) -> Level

Returns the log level for spawned commands.

source

pub fn project_out_directory(&self) -> &Path

Returns the directory where the bundle should be placed.

source

pub fn target(&self) -> &str

Returns the target triple.

source

pub fn binary_arch(&self) -> &str

Returns the architecture for the binary being bundled (e.g. “arm”, “x86” or “x86_64”).

source

pub fn main_binary_name(&self) -> &str

Returns the file name of the binary being bundled.

source

pub fn binary_path(&self, binary: &BundleBinary) -> PathBuf

Returns the path to the specified binary.

source

pub fn binaries(&self) -> &Vec<BundleBinary>

Returns the list of binaries to bundle.

source

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.

source

pub fn product_name(&self) -> &str

Returns the product name.

source

pub fn bundle_identifier(&self) -> &str

Returns the bundle’s identifier

source

pub fn publisher(&self) -> Option<&str>

Returns the bundle’s identifier

source

pub fn icon_files(&self) -> ResourcePaths<'_>

Returns an iterator over the icon files to be used for this bundle.

source

pub fn resource_files(&self) -> ResourcePaths<'_>

Returns an iterator over the resource files to be included in this bundle.

source

pub fn external_binaries(&self) -> ResourcePaths<'_>

Returns an iterator over the external binaries to be included in this bundle.

source

pub fn copy_binaries(&self, path: &Path) -> Result<Vec<PathBuf>>

Copies external binaries to a path.

Returns the list of destination paths.

source

pub fn copy_resources(&self, path: &Path) -> Result<()>

Copies resources to a path.

source

pub fn version_string(&self) -> &str

Returns the version string of the bundle.

source

pub fn copyright_string(&self) -> Option<&str>

Returns the copyright text.

source

pub fn author_names(&self) -> &[String]

Returns the list of authors name.

source

pub fn authors_comma_separated(&self) -> Option<String>

Returns the authors as a comma-separated string.

source

pub fn homepage_url(&self) -> &str

Returns the package’s homepage URL, defaulting to “” if not defined.

source

pub fn app_category(&self) -> Option<AppCategory>

Returns the app’s category.

source

pub fn short_description(&self) -> &str

Returns the app’s short description.

source

pub fn long_description(&self) -> Option<&str>

Returns the app’s long description.

source

pub fn deb(&self) -> &DebianSettings

Returns the debian settings.

source

pub fn macos(&self) -> &MacOsSettings

Returns the MacOS settings.

source

pub fn windows(&self) -> &WindowsSettings

Returns the Windows settings.

source

pub fn updater(&self) -> Option<&UpdaterSettings>

Returns the Updater settings.

source

pub fn is_update_enabled(&self) -> bool

Is update enabled

Trait Implementations§

source§

impl Clone for Settings

source§

fn clone(&self) -> Settings

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Settings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.