tauri_bundler::bundle

Struct 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) -> Arch

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

Source

pub fn main_binary(&self) -> Result<&BundleBinary>

Returns the file name of the binary being bundled.

Source

pub fn main_binary_mut(&mut self) -> Result<&mut BundleBinary>

Returns the file name of the binary being bundled.

Source

pub fn main_binary_name(&self) -> Result<&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 publisher

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 license(&self) -> Option<String>

Returns the bundle license.

Source

pub fn license_file(&self) -> Option<PathBuf>

Returns the bundle license file.

Source

pub fn homepage_url(&self) -> Option<&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 file_associations(&self) -> Option<&Vec<FileAssociation>>

Return file associations.

Return the list of deep link protocols to be registered for this bundle.

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 local_tools_directory(&self) -> Option<&Path>

Returns the directory for local tools path.

Source

pub fn deb(&self) -> &DebianSettings

Returns the debian settings.

Source

pub fn appimage(&self) -> &AppImageSettings

Returns the appimage settings.

Source

pub fn rpm(&self) -> &RpmSettings

Returns the RPM settings.

Source

pub fn dmg(&self) -> &DmgSettings

Returns the DMG 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.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.
Source§

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

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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>,

Source§

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T