tauri_bundler::bundle

Struct BundleSettings

Source
pub struct BundleSettings {
Show 23 fields pub identifier: Option<String>, pub publisher: Option<String>, pub homepage: Option<String>, pub icon: Option<Vec<String>>, pub resources: Option<Vec<String>>, pub resources_map: Option<HashMap<String, String>>, pub copyright: Option<String>, pub license: Option<String>, pub license_file: Option<PathBuf>, pub category: Option<AppCategory>, pub file_associations: Option<Vec<FileAssociation>>, pub short_description: Option<String>, pub long_description: Option<String>, pub bin: Option<HashMap<String, BundleSettings>>, pub external_bin: Option<Vec<String>>, pub deep_link_protocols: Option<Vec<DeepLinkProtocol>>, pub deb: DebianSettings, pub appimage: AppImageSettings, pub rpm: RpmSettings, pub dmg: DmgSettings, pub macos: MacOsSettings, pub updater: Option<UpdaterSettings>, pub windows: WindowsSettings,
}
Expand description

The bundle settings of the BuildArtifact we’re bundling.

Fields§

§identifier: Option<String>

the app’s identifier.

§publisher: Option<String>

The app’s publisher. Defaults to the second element in the identifier string.

Currently maps to the Manufacturer property of the Windows Installer and the Maintainer field of debian packages if the Cargo.toml does not have the authors field.

§homepage: Option<String>

A url to the home page of your application. If None, will fallback to PackageSettings::homepage.

Supported bundle targets: deb, rpm, nsis and msi

§icon: Option<Vec<String>>

the app’s icon list.

§resources: Option<Vec<String>>

the app’s resources to bundle.

each item can be a path to a file or a path to a folder.

supports glob patterns.

§resources_map: Option<HashMap<String, String>>

The app’s resources to bundle. Takes precedence over Self::resources when specified.

Maps each resource path to its target directory in the bundle resources directory.

Supports glob patterns.

§copyright: Option<String>

the app’s copyright.

§license: Option<String>

The package’s license identifier to be included in the appropriate bundles. If not set, defaults to the license from the Cargo.toml file.

§license_file: Option<PathBuf>

The path to the license file to be included in the appropriate bundles.

§category: Option<AppCategory>

the app’s category.

§file_associations: Option<Vec<FileAssociation>>

the file associations

§short_description: Option<String>

the app’s short description.

§long_description: Option<String>

the app’s long description.

§bin: Option<HashMap<String, BundleSettings>>

Configuration map for the apps to bundle.

§external_bin: Option<Vec<String>>

External binaries to add to the bundle.

Note that each binary name should have the target platform’s target triple appended, as well as .exe for Windows. For example, if you’re bundling a sidecar called sqlite3, the bundler expects a binary named sqlite3-x86_64-unknown-linux-gnu on linux, and sqlite3-x86_64-pc-windows-gnu.exe on windows.

Run tauri build --help for more info on targets.

If you are building a universal binary for MacOS, the bundler expects your external binary to also be universal, and named after the target triple, e.g. sqlite3-universal-apple-darwin. See https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary

§deep_link_protocols: Option<Vec<DeepLinkProtocol>>

Deep-link protocols.

§deb: DebianSettings

Debian-specific settings.

§appimage: AppImageSettings

AppImage-specific settings.

§rpm: RpmSettings

Rpm-specific settings.

§dmg: DmgSettings

DMG-specific settings.

§macos: MacOsSettings

MacOS-specific settings.

§updater: Option<UpdaterSettings>

Updater configuration.

§windows: WindowsSettings

Windows-specific settings.

Trait Implementations§

Source§

impl Clone for BundleSettings

Source§

fn clone(&self) -> BundleSettings

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 BundleSettings

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for BundleSettings

Source§

fn default() -> BundleSettings

Returns the “default value” for a type. 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<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
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